Chapter 1Turning Problems into Code

If you’re new to programming, you may wonder how experienced developers can look at a problem and turn it into runnable code. It turns out that writing the actual code is only a small part of the process. You have to break down the problem before you can solve it. If you’ve ever watched an experienced programmer, it may look like they just cracked open their code editor and banged out a solution. But over the years, they’ve broken down hundreds, if not thousands, of problems, and they can see patterns. If you’re just starting out, you might not know how to do that. So in this chapter we’ll look at one way to break down problems and turn them into code. And you can use this approach to conquer the problems ...

Get Exercises for Programmers 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.