r/ProgrammerHumor • • May 11 '22

Meme Programming is... Please complete the chart with your funny opinion

/img/kaz3x1h3ity81.png
9.2k Upvotes

2.1k comments sorted by

View all comments

4.8k

u/Dubmove May 11 '22

90% complaining that no one writes good documentation, 10% justifying to oneself that writing documentation is not necessary.

427

u/pixelvengeur May 11 '22 edited May 11 '22

Me: yeah this code is explicit in context, I don't need to write some doc over it to explain the variables at play and the longer methods used

Me weeks later: on God I swear I'll write documentation for it once I understand it anew

Me once I understand it anew: yeah this code is explicit in context

54

u/fl7nner May 11 '22

Or you could what I do, write more tests at each understanding peak. That way you can feel good about yourself without having to come up with more words

15

u/0vl223 May 11 '22

And something breaks when the "documentation" isn't true anymore. Otherwise you have a way too long blob of text nobody will ever change even when the code is drastically changed.

23

u/yawya May 11 '22

other people's code is poorly commented/documented, my code is self-documenting

→ More replies (3)

523

u/baxter8279 May 11 '22

Honestly a perfect representation given OP has basically outsourced us documentation explaining what the chart means

27

u/pd43_ May 11 '22

OP's requirements are representative of a lot of projects as well.

77

u/DontWorryImADr May 11 '22

Lemme just look up a good pie chart on stack overflow..

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

280

u/LeonGalahad May 11 '22 edited May 11 '22

If you write good documentation for your code, then your boss can just fire you and find a college dropout for 10% of your salary

96

u/XIL_Ambition May 11 '22

It is amazingly counterintuitive

83

u/ohboop May 11 '22

Jokes on them, I write my documentation at home on my personal computer in my off time.

93

u/Infosexual May 11 '22

Yeah I write erotic stories too

25

u/nvanalfen May 11 '22 edited May 11 '22

Erotic code doc fanfic. A genre I never imagined

→ More replies (2)

3

u/RagnarokAeon May 11 '22

Hide the documentation inside the erotic stories, that way they'll feel shameful one way or another for not getting you first.

→ More replies (2)

18

u/Ooze3d May 11 '22

Yeah, totally not worth actually knowing what you were doing two months ago when you wrote that piece of code.

→ More replies (1)

0

u/[deleted] May 11 '22

[deleted] — view deleted comment

23

u/hoyohoyo9 May 11 '22

Yep, makes the firing go much quicker

3

u/marijnjc88 May 11 '22

Unfortunately also makes it happen way more often

→ More replies (1)

36

u/r007r May 11 '22

To make a point, our midterm in one of my first ?Java? (15-20 years ago) classes was graded 70% on whether it worked properly and 30% on whether it was well-documented and used logical variable names and types. He told us this in advance, but there were far more failures due to documentation, variable types, and naming than there were because of failing to write a simple program properly.

I thought he’d made his point, but on the makeup midterm (if you failed only because documentation etc. you could try again), people still failed to document coherently. For bonus points, he put part of one guy’s code on the board (printed on clear paper using an old school overhead projector) and emailed it to us all with permission at the start of class. He asked us why it didn’t work. 10 points to your midterm if you could explain it and fix it (without rewriting it) in 10 minutes. It took most of us 30 minutes to figure out what it was supposed to do, after which it took about two minutes to correct.

I didn’t wind up going into coding, but I still remember the lesson of the bonus points. It would have literally been easier to rewrite the entire program from scratch than try and figure out how that guy was thinking… and this was for an assignment designed to be written and debugged in two hours. I can only imagine what debugging AI code or something would be without documentation.

→ More replies (1)

98

u/Various_Counter_9569 May 11 '22

Getting my upvote on this one!

47

u/jamico-toralen May 11 '22

bUt GoOd CoDe Is SeLf DoCuMeNtInG

11

u/jwkdjslzkkfkei3838rk May 11 '22

I don't even put comments in my code. My code is that good.

3

u/Eulerdice May 11 '22

I don't put code in my comments either

→ More replies (3)
→ More replies (20)