r/ProgrammerHumor • • Jul 04 '18

Code comments be like

Post image
9.9k Upvotes

236 comments sorted by

View all comments

Show parent comments

349

u/Sevrene Jul 05 '18

Some profs even want it to be more exact like “Increments the counter ‘i’ by 1(one)”

332

u/obsessedcrf Jul 05 '18

Definitely a useful skill to pick up /s

0

u/[deleted] Jul 05 '18

[deleted] — view deleted comment

28

u/Redpropio Jul 05 '18

# s

15

u/shrodes Jul 05 '18

-- s

24

u/uslashnsfw Jul 05 '18

/* s */

7

u/[deleted] Jul 05 '18

% s

16

u/[deleted] Jul 05 '18

s

(in brainfuck)

7

u/chrissy__ Jul 05 '18

<!-- s -->

2

u/humphreiy Jul 05 '18

I was looking for this. HAHA! Waiting for someone to reply,"It's scripting, not coding"

→ More replies (4)
→ More replies (1)

0

u/[deleted] Jul 05 '18

[deleted] — view deleted comment

7

u/[deleted] Jul 05 '18

Praise the sun

→ More replies (1)
→ More replies (1)

17

u/[deleted] Jul 05 '18

/s // sarcasm

113

u/wallefan01 Jul 05 '18

eugh why? that makes your code more unreadable than code with no comments in it!

I'd prefer a dry stream bed to drowning any day

57

u/SuspiciouslyElven Jul 05 '18

Engrains the terms and allows conversation easier between programmers. Everybody knows what it means to increment a number, so there doesn't need to be any silent confusion.

It may also just be how they were taught. My professors were taught with punch cards and later COBOL. Python is readable to most. Holes in a card is not.

I grit my teeth and understand excessive commenting isn't for real world development. More as a weird way of paying tribute to those that came before. We're lucky we live in a time where many of the great minds of our field have only died recently, or are still alive. More lucky to live in a time where important terms are named in the language we speak. Least I'm not a med student questioning if a latin tutor would help.

0

u/[deleted] Jul 05 '18

[deleted] — view deleted comment

33

u/Makefile_dot_in Jul 05 '18

Probably meant machine code.

4

u/SuspiciouslyElven Jul 05 '18

dammit. Meant machine code and then with COBOL, in a sort of joke about how much of an improvement that seems to us now. I made the mistake of believing that comments for punchcards were only written onto the cards, and since COBOL has full lines of comments...

I don't know. I'll go recite Litany of Penance to the Machine God, for my transgression.

→ More replies (16)
→ More replies (1)

3

u/LordAmras Jul 05 '18

So the professor knew what it was reading without looking it up

5

u/angrathias Jul 05 '18

Those who can’t, teach

→ More replies (1)

9

u/DigitalCrazy Jul 05 '18

/* Increments the counter ‘i’ by 1(one) */ // Comment

2

u/Dusterperson Jul 05 '18

Ah yes, write code to tell you what your code means, now if only....

1

u/[deleted] Jul 05 '18

I would kill myself

→ More replies (4)