3. Getting to maintainable

In this chapter, I’ll look at how the ideas introduced in the previous chapter can be applied to real-world code: new code and legacy code. I’ll also talk about distributing code - by setting up a private NPM server.

Let’s start with a bit of big-picture principles, then talk about legacy - and finally some special considerations re: new code. Today’s new code is tomorrows’ legacy code; the best you can do is delay falling into the bad patterns.