Most people quickly think of Scrum when they think of software development. However, did you know that the 5S Lean principles are also essential for writing maintainable and reliable code?
Here, of course, it is not the case that a tidy workplace will lead to good software. No, essential to good software quality is clean code. And as James Coplien notes a tad surprisingly but oh so rightly in the book Clean Code, the 5S principles are perfectly applicable for “clean” code.
Good example follows good practice: when it is already a mess, little attention will be paid to making an addition neat. After all, extra debris on a mess doesn’t stand out. This is true of any workspace, but it is certainly true of code as well. Indeed, when developing new code, either consciously or unconsciously, surrounding code is used as inspiration for the new one.
Another very important principle of the 5S methodology is the well-known floor marking in factories or the shadow board for tidying up tools. People like to clean up stuff, but it should be clear to everyone where something should be cleaned up. After all, when tidying up, it is very important that everyone uses the same layout. And nothing could be further from the truth in software development. Clearly structured code will not only have to be easy to understand, it will also have to make it obvious where new functionality needs to be added.