Coding Practices

Good coding practices can contribute significantly to developing a secure system. Coding practices are the patterns used by developers in developing their code. Good coding practices include a broad range of habits from ensuring that the code is well documented to ensuring that the formatting of the code is consistent. Simple practices, such as determining whether a curly bracket that starts a set of statements goes on its own line or is at the end of the previous line with the conditional can be important. The choice of where the bracket goes is not important; what is important is that wherever it goes, it goes there consistently.

Good coding practices also require management of the ego and attitude of the developer. Some developers ...

Get Secure Software Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.