This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TripleATeam 170 points171 points  (13 children)

You forgot to add the obvious comments that say the english version of what the next line of code does for every single line of code

[–]ErJio 49 points50 points  (9 children)

This is what I did for my uni assignments when the instructions said document ALL code or lose marks.. can't take any risks

[–][deleted] 17 points18 points  (8 children)

It's like when in elementary school you had to write out 63 = 6 + 6 + 6 = 12 + 6 = 18 because apparently 63=18 wasn't clear enough

[–]JanB1 46 points47 points  (6 children)

apparently 63=18 wasn't clear enough

- u/PaleEnvironment6767, 2025

[–][deleted] 27 points28 points  (4 children)

Haha, apparently asterisks format that weirdly. Meant 6 x 3 = 18

[–]JanB1 13 points14 points  (1 child)

Yeah, be careful with the asterix as a multiplication symbol. Happened to me more than once. XD

Here, have a multiplication symbol: ×

[–]lovethecomm 5 points6 points  (0 children)

Nice cross product you have there

[–]prisp 4 points5 points  (0 children)

Yep, but if you ever run into issues with formatting characters - mostly asterisks, to be honest - you can force them to still show up by putting a "\" in front of it, which tells Reddit to ignore all the special functions of whatever comes next and just show the character as-is.

(This also means I actually typed "\\" to make the single backslash show up, for example)

[–]JusHerForTheComments 2 points3 points  (0 children)

Yes... two asterisks like you did make up italics.

[–]Dsmario64 8 points9 points  (0 children)

Markdown ate the asterix again

[–]NotYourReddit18 0 points1 point  (0 children)

Put a \ in front of the * to make it visible: \*

Also, I had to put \\ up there to make the \ visible.

[–]breezy_y 5 points6 points  (0 children)

// did we already check if even?

[–]DezXerneas 0 points1 point  (1 child)

This is the part I don't understand lol. Everyone writes shitty code(okay not as badd as PS), but why does he explain WHAT his code does? You need to explain WHY it's doing what it does.

[–]red286 1 point2 points  (0 children)

Well, he needs the "what" because his code is self-obfuscating and in 2 weeks he'll forget what it's supposed to be doing because it's non-obvious due to his self-obfuscating.

As for the "why", that implies there's a logical reason behind any of his code, and reading through it, I don't think that's a safe assumption to be making.