Pseudo-Code — Why Writing Them?

Pseudo-code, as the name suggests, is not real code, but rather a description of what needs to be done and how. In other words, it describes the algorithmic steps that need to be taken to solve a problem.

“Problem-solving” is really the key here. Since every program can essentially be boiled down to solving a specific problem, pseudo-code can find its playground almost everywhere, as long as there are a problem and a sequence of logical steps that need to be taken to tackle the problem.

Then why not write code directly? Why even bother writing the pseudo-code?

My personal take is that we are all humans after all. Yes, the code is written for the computer to understand and execute; however, as the problem solver ourselves, we need to sort out our chaotic thoughts first, regardless of what platform and what coding languages we use.

As a developer-in-progress, I find the greatest benefit of writing pseudo-code is to OVERCOME the FEAR of CODING. The process of writing pseudo-code reminds me that I am solving a problem, rather than trying to be a perfect “computer” that writes perfect code. It gives me the chance to clarify the problem, break it down into small steps, and declutter my thoughts, making the entire coding process — surprisingly — more enjoyable than daunting.

There are many ways of writing pseudo-code, here is a flow that I personally like to follow:

  1. Identify (define) the variables
  2. Clarify the conditions (can be an Input, a value comparison, a Switch between cases, an iteration through a list or an array, etc.)
  3. Clarify the outcome (can be an output, a function call, etc.)

--

--

--

Technologist and Unity developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

(0b)101 ways to containerize your Spring Boot Application

CS371p Spring 2021 Week 12

Approaches To Problem Solving #17(Tree | DFS)

election 1 ~Vulnhub~Walkthrough

*Friend function :

[Mal Series #8] PE Fixing & Unpacking

AWS Free Courses!

A Day at Auth0 & World Product Day with Glenn Block

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
YShu

YShu

Technologist and Unity developer

More from Medium

A Global Pandemic Can’t Stop Making Girls In STEM a Priority

6 Benefits Of Quality Images To eCommerce Businesses | The Build Media

Am I made to weave?

Landfall