A Place for Everything and Everything in Its Place

You might have noticed as you went through the kittenbook code that some of the instructions are not really related to any of the jobs we listed. Every line of code in our project should be helping to accomplish the goals of our program. The unnecessary code was a lot harder to identify before we added functions, but now we can clearly see that we can get rid of some code. The practice of deleting unneeded code can be rewarding. If you have code that is not helping you accomplish the goal of your program, throw it out.

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.