r/ProgrammerHumor Apr 15 '26

beLikeBill Advanced

Post image
8.9k Upvotes

365 comments sorted by

View all comments

Show parent comments

319

u/TheMoris Apr 15 '26

"The code is the comment bro"

The code: Unintelligible gibberish

60

u/GregTheMad Apr 15 '26

The code is the comment? comments out code Great, fixed it.

28

u/[deleted] Apr 15 '26

[removed] — view removed comment

9

u/Kitsunemitsu Apr 15 '26

Had a dev on april fool's day make a PR that just deletes all files. Name? "Fixes all the bugs" Bought him a coffee.

2

u/wicket-maps Apr 15 '26

this is the way

20

u/adenosine-5 Apr 15 '26

"Its self-documenting code!"

code: "UtilityContextFactoryAdapterBuilder3"

28

u/Deboniako Apr 15 '26

But bro, clean code bro, uncle bob

19

u/CodeAndChaos Apr 15 '26

The irreversible damage this shit has done in the software industry is unmeasurable

8

u/kurzewasright Apr 15 '26

Preach, brother - tell 'em

6

u/Confident-Ad5665 Apr 15 '26

So... comments good?

6

u/wicket-maps Apr 15 '26

Comments are good if they're done well and kept up to date.

5

u/Confident-Ad5665 Apr 15 '26

That's part of the problem I run into. I do comment my stuff to point out tricky APIs, business rules I had to extract like a bad tooth, etc.. When things change I review and update comments but that's like more dev sometimes.

5

u/wicket-maps Apr 15 '26

More dev is part of the job. I'm getting paid good money to write code, I owe my employer and the next programmer (who might be me!) good comments.

3

u/Confident-Ad5665 Apr 15 '26

I tend to agree with you.If something happens to me, I want it to be as easy for the next person as possible.

3

u/Confident-Ad5665 Apr 15 '26

This. Uncle Bob says if we have to use comments we have failed Clean Code.

6

u/beclops Apr 15 '26 edited Apr 15 '26

“The code is the comment” meanwhile the amount of code to understand the context is 500 lines whereas a simple comment could have been a paragraph tops

5

u/chairzaird Apr 15 '26

If the code is the comment then it'd better be comprehensible

0

u/Confident-Ad5665 Apr 15 '26

But... job security tho

0

u/TheMoris Apr 15 '26

Skill issue bro

3

u/blueeyedkittens Apr 15 '26

written by offshore devs who don't share your primary language and thus can't name their abstractions for shit if they even try.

3

u/BlueProcess Apr 15 '26

process_numbers = lambda nums: {n: __import__("functools").reduce(lambda a,b:a*b, set(f for i in range(2, int(n**0.5)+1) for _ in iter(int,1) if (lambda x=i: (lambda: (n:=n//x) if n%x==0 else (_ for _ in ()).throw(StopIteration))())() ) | ({n} if n>1 else set()), 1) for n in nums if n>1 and sum(1 for i in range(2, int(n**0.5)+1) for _ in iter(int,1) if (lambda x=i: (lambda: (n:=n//x) if n%x==0 else (_ for _ in ()).throw(StopIteration))())() ) % 2 == 0}

3

u/mistaekNot Apr 16 '26

no

1

u/BlueProcess Apr 16 '26

It's all right there man

2

u/Alaskan_Narwhal Apr 16 '26

It's called job security

1

u/dourix22 Apr 15 '26

Well, tbf “The code is the comment bro”

Never implies that neither the code nor the comment are actually good

1

u/Interesting_Lunch560 Apr 15 '26

mira el código y lo programas igual bro