DEV Community

Cover image for Make Your Pseudocode Your Real Code

Make Your Pseudocode Your Real Code

Rob Cameron on October 19, 2017

If you've been coding for any amount of time you've probably come across the concept of pseudocode: a quick "mockup" of a class, object or algorith...
Collapse
 
ben profile image
Ben Halpern

Very very well explained. This applies to all sorts of languages, but it's extremely true in Ruby. The language's cleanliness is lost if you don't leverage it.

Collapse
 
cannikin profile image
Rob Cameron

Thanks! I was working on a random controller or presenter in Rails a couple of months ago and after some refactoring I sat back and looked at it and realized it almost looked like some pseudocode that I'd write on a whiteboard when planning. I looked through the codebase and ended up seeing that pattern everywhere and realized that's basically what most "good" code ends up looking like—I just hadn't heard anyone phrase it as such!

Collapse
 
aeddi13 profile image
Patrick Decker

Great advice!
Code should always be written in a way that it is easy to read and understand. Even if it takes longer to write.
Always keep in mind. Code is only written once, but it can be read infinite times.

Collapse
 
olusamimaths profile image
Olusola Samuel

This forum is a blessing for a beginner like me. I would heed to this keenly🤔

Collapse
 
imthedeveloper profile image
ImTheDeveloper • Edited

Really like this. Human readable is one thing I hear discussed by clean coding posts but human understandable is what this really gives!