The Purpose of Code Tests: Coding in Small parts
Learn how building up your program with small pieces of code helps.
We'll cover the following
Clear thinking, specifically about what confuses you, remains the best antidote to buggy code.
Ideal approach
Many beginner programmers have probably had the experience of launching into an assignment, coding it in its entirety, and then running it, only to find that it is riddled with bugs. Coding like a bricklayer is one effective solution to this problem, wherein we lay a course of bricks, leveling each one when it’s placed. Once that’s done, we come back and ensure that they remain level, aligned, and plumb. After this, we build the next course. The analogy in coding is building your code with pieces as small as they can practically be, and ensuring that each piece works.
Get hands-on with 1200+ tech skills courses.