Pseu-Pseu-Pseudo…Code

No, it’s not a follow up to Phil Collins’s hit, “Sussudio”.

It’s using English to solve your problem before you attempt solving it with code. For example, if you were attempting to solve how to calculate the tax on a product you might type something like this:

In this way, you can work out what you need to solve without having to code anything.

A common mistake by those new to programming is to immediately attempt to code out the solution. This is rarely the best course of action.

Writing things out in English (or your native language) may seem like a waste of time but it can reduce the time it takes to solve a problem exponentially.

Pseudo code helps you to define what the actual problem is. It also helps to break the problem up into smaller parts, allowing you to solve one section at a time. You don’t need to attempt to solve the problem in 1 line.

Here’s another example using an if statement:

Another benefit of pseudo code is that when you get stuck (and you will), it will be easy for others to see what you are trying to accomplish and easier for them to help you.

--

--

--

Unity Developer

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

Recommended from Medium

App Makers or App Builders: To Really Take the Plunge or Not?

What I’ve learned in Encora Apprentice: Week 11

Element ELEFW328R 32in 720p HDTV (Renewed)

Project Management — Classical vs Agile

35. Jolsport Kurztriathlon Kirchbichl 2021' Livestream | LIVE° [Fullᴴᴰ]

READ/DOWNLOAD& The Finite Element Method and Applications in Engineering Using ANSYS® FULL BOOK PDF…

【Git, GitLab & GitHub】How to Make a Branch, Commit & Push

INDEXING-SELECTION-FILTERING IN PANDAS LIBRARY

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
Mike Brisson

Mike Brisson

Unity Developer

More from Medium

Git Commands

Improving Upon Selection Highlighting in Our Game — Part 1

Voice Recognition using Dictionaries

Why you should write in Pseudo code