Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Abdullah AlBeirouti
Abdullah AlBeirouti
2,057 Points

What are the steps before starting to type a code? (Computation thinking)

Before starting to even write the code, how could I use a pencil and paper and break down the problem I want to solve or the job I want the program to do? For example, if I want to create a code that does what an ATM machine does, what are the things I should break down, how to start and from where? I'm sure there is a generic way that could be then tailored to the mindset of the developer, but at least there should be some basic steps. Hope my questions make sense.

1 Answer

Steven Parker
Steven Parker
231,110 Points

A common method of working out program functionality before coding involves creating what is called a flowchart.

A flowchart is a type of diagram that represents an algorithm, workflow or process, showing the steps as boxes of various kinds, and their order by connecting them with arrows.

Here's a simple example from the Wikipedia page which also contains more details on the process itself:
flowchart