r/ProgrammerHumor • • Oct 09 '26

Meme promptEngineering

Post image
505 Upvotes

31 comments sorted by

View all comments

67

u/howarewestillhere Oct 09 '26

900 option switch case in a single file
“Reduce cyclomatic complexity.”

900 class files.
“No, not like that.”

9

u/aberroco Oct 09 '26

> 900 class files

901. 900 with exactly one `if`, and one with `for` loop.

1

u/quagzlor Oct 10 '26

How would you even reduce that, that's just 1 level

1

u/nein_va Oct 15 '26

Fucking belly laugh and that never happens when I read reddit

1

u/howarewestillhere Oct 15 '26

Best part is that was a real conversation between me and a senior. The entire page was 900+ options to generate a form. It was only used as a manual check when the automated process went wrong.

I was newly brought on and asked about this monstrosity when my complexity scan came back.

It was pretty much, “Wow, that’s impressive. Any thoughts on a refactor?” “Well, I could make it hundreds of class files.” “OMG no, don’t do that.” And we all laughed about it.

I just ignored that file in my complexity scans from then on.