DEV Community

Calin Baenen
Calin Baenen

Posted on

If there are LayMan's Terms in English, is there "LayMan's Code"?

Top comments (11)

Collapse
 
benjaminjess profile image
benjaminjess

like pseudocode?

Collapse
 
baenencalin profile image
Calin Baenen

"Pseudocode"? What does that mean?

Collapse
 
aarone4 profile image
Aaron Reese

Looks like code, but doesn't actually compile or run

Thread Thread
 
baenencalin profile image
Calin Baenen

That's not LayMan's then, that's just nonsense.
That's the equivalent of saying stuff that sounds useful, but actually isn't.

Thread Thread
 
benjaminjess profile image
benjaminjess • Edited

It is though? It's plain language that emulates sequential / procedural programming.

Following a recipe is a good example of pseudocode: it's step by step instructions on how to bake a cake, for example.

Computer's don't need to compile it, it's human readable, and if you follow the algorithm with the right inputs (ingredients & equipment) you get the right output (cake).

edit: I may not have replied to the right comment...

Collapse
 
wannabehexagon profile image
ItsThatHexagonGuy

Based on the comments you've made, I feel like you've just misunderstood what it means to explain something in "layman's terms". It just refers to a simplified explanation, and that can be done in a lot of ways when it comes to code. Pseudocode, UML diagrams, and self-documenting code are a few examples to achieve that goal.

For example, I can write some code that would add collision physics to an animated object, and to explain in "layman's terms" I would either use pseudocode or a UML diagram. Maybe even document/make comments in non-technical wording. Thus simplifying the intention of what the code is trying to achieve. The code itself doesn't have to do it, just like how I don't have to use words specifically to explain something in layman's terms, I could use a diagram, a video, or literally anything.

Collapse
 
arswaw profile image
Arswaw

Do comments count?

Collapse
 
baenencalin profile image
Calin Baenen • Edited

Well, I mean, not really, since that would just be using LayMan's terms in the comments.
Β―\(ツ)/Β―

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘

That's easy, hire someone named "Mr. Layman" and make him write the code.

Collapse
 
baenencalin profile image
Calin Baenen

Who doesn't love some sas every once and a while?
It's like spicy writing. Even the word sounds like it has some heat. ;)

Collapse
 
thefern profile image
Fernando B πŸš€

Layman: means to simplify a complex process/procedure/etc to a person not familiar with the subject. You can use it for anything though I've never heard anyone in tech use that term.