January 25, 2021

Agilists

News for Agilists

Is Your Code on the Naughty List? Ask Yourself Why.


Christmas is coming and Father Christmas is making those last minutes checks to see if you’ve been naughty or nice!  But what about your code?  Would it make it onto the nice list or has it been naughty this year?

The Santa Claus of Development is on the lookout for code with technical debt; lots and lots of technical debt. But how did we get here? We can all identify technical debt and know that the chance of paying it back are slim, yet we carry on adding it.  No presents for this code 😔

Technical debt is “a concept in software development that reflects the implied cost of additional rework caused by choosing an easy (limited) solution now instead of using a better approach that would take longer.” (Wikipedia)

Get a 10% discount on any training course booked in December 2020 or January 2021 – just use discount code FESTIVE10 when booking.

The reasons for the accrual of technical debt are rarely straight-forward. Pointing the finger at the development team is often unfair, and sometimes the causes of technical debt are outside of their control.

If there is a command & control culture, the development team are often given work with fixed scope, fixed cost and fixed deadlines – the first thing to slip in this scenario will be quality (and then probably the deadline). Even in an agile environment, many teams prioritise features over maintenance and it’s common to see too much work in an iteration.

If the focus is on project rather than product, the development team may not be concerned about the longer-term underlying product quality, and only be concerned about meeting the project scope on time. This is especially true if teams are created and disbanded on a per-project basis. It’s also true if teams are offered a bonus for delivering on time – this encourages an at-all-costs mentality.

That’s not to say that the fault never lies with the development team, and while it’s rare that developers don’t actually care about the work they do, there are a number of other reasons why developers can be the cause of technical debt.

If development teams/departments don’t set and monitor quality standards, you can end up with a wild-west approach to development, where anything goes! This creates a codebase which is unlikely to be full of readable code, and where different internal designs fight against each other. Working with this sort of code is difficult – mistakes are easy to make, and the tendency is just to hack more code in and get out ASAP.

shutterstock_361977515.jpg

It’s also possible that developers themselves are naïve when it comes to good development practices. Are they aware of the SOLID principles?  Have they heard of design patterns (and anti-patterns) and GRASP? Do they know what refactoring is and have they heard of Uncle Bob?

The best way to avoid technical debt is to not incur it in the first place. This approach to technical debt avoidance is an active one, and here’s a good starting list of things you can put in place to kick-start this approach:

  •      Empower the development team[s].  Make them the only people that can decide how developments are implemented, and, most importantly, let them decide how long things will take.
  •      Create quality standards collectively as a department and then for each product. Make sure that, wherever possible, these are monitored through automation. There are good tools (like FxCop, FindBugs or Sonar) where standards can be configured directly into the development environment or checked as part of the build process.
  •       Build these standards into version control policies and continuous integration cycles. Many aspects of quality can be checked automatically every time your codebase changes.
  •       Encourage collective ownership of your code. Individuals should not own particular areas. This creates bottlenecks and single points of failure. Use techniques like pair programming to quickly build shared understanding across your codebase. Each developer can then contribute to more areas and will ultimately be more productive – they’ll also broaden their skill-set!
  •      Create development teams around a product or products and make them long-lived.  Bring the work to these teams rather than spinning teams up and tearing them down like cloud instances.  These teams will become high-performing and their estimates will be pretty good!
  •      Give your development teams an environment that encourages collaboration.  We’re mostly working from home at the moment, so give them the tools and the access they need to collaborate in a digital environment.
  •      Encourage your developers to continuously strive to improve. There are many ways to do this, such as team meetings to talk about a particular topic/technology/technique or to look to the wider development community. This can be a quick and informal route to improving the development skills of individuals. Most importantly, your developers need time to improve.
  •       If you have a lot of technical debt, allocate some capacity each iteration to tackling it. Create a technical debt backlog and work on the code that causes you the most problems first. Start by breaking it down into smaller parts then creating some tests – these can give you fast feedback on the safety of the changes being made.

Addressing technical debt is not simply a case of patching individual instances of it – if you’re serious about tackling it, you need to find the root cause, and you need to be prepared to look beyond the codebase and development team.

Hopefully the Santa Claus of Development will see that while your code may be naughty, it has a heart of gold. Who knows, maybe he’ll bring the development team a nice Agile pilot project or perhaps even an Agile Business Transformation?

Learn more about avoiding technical debt and Agile software development – check out our Certified Scrum Developer® or SAFe® Agile Software Engineering courses from the training portfolio.

 

Get a 10% discount on any training course booked in December 2020 or January 2021 – just use discount code FESTIVE10 when booking.

 

Find a Developer course

 

Did you know that Radtac is also offering a wide range of technical IT training, such as Oracle, MySQL, Red Hat, UNIX, Linux, Web development & programming?

Explore Technical IT Training courses

 

 





Source link