Writing Maintainable Code

One of the biggest motivations for creating and following coding standards has to do with the software development life cycle. The software development life cycle basically has just four steps:

1. Get an idea.

2. Plan how to turn your idea into reality.

3. Turn your idea into reality by writing the code.

4. Keep your idea-turned-reality alive and relevant by fixing bugs and adding features (maintenance).

These four steps do not all take the same amount of time. Getting an idea can take about 5 seconds while you are in the shower. Planning how to actually build your idea should take a lot longer than 5 seconds, but we’re often so excited to get to Step 3 that we skip over this one (guilty). The process of turning your ...

Get Learning to Program 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.