Followers 0

# pseudocode!

## 9 posts in this topic

Pseudocode is writing steps in English? I'm kinda mixed up by some of this. I found an example that confuses me:

Pseudocode to me would be just write simple steps in English. Like for example:

wake up,
get a shower,
get dressed,
have something to eat,
etc, etc.
0

##### Share on other sites

I find it strange that some people would write their pseudocode almost like they are writing actual code.  IMO, if you have to worry about syntax, then might as well write the code.

I sometimes find writing pseudocode helpful that way in that it then becomes the first step of a TDD cycle. I'm not heavy on TDD but it has gotten me to write some of my functions quicker.

0

##### Share on other sites
The first time you try and write 30 curly braces on a whiteboard during an exam/interview, you'll be cured of adding excessive syntax to your pseudocode.

I tend to stick with a very minimalist style (somewhat pythonic, I guess): indentation indicates scope, statements are plain english plus various mathematical operators.

main:
for each line in input file
calculate running average of columns 2,3
output final averages
0

##### Share on other sites

I use the #typedef function to create psuedo-code prototypes....

0

##### Share on other sites

youre practically giving a label to a complicated set of instruction that would make it appear as if it were english

0

##### Share on other sites

Thanks for the feedback. Seems there are many ways to use Pseudocode and I understand it now.

0

## Create an account

Register a new account