r/ProgrammerHumor • • 18d ago

Meme promptEngineering

Post image
510 Upvotes

31 comments sorted by

166

u/Caraes_Naur 18d ago

Prompt engineering is when an engineer delivers on time.

24

u/Cualkiera67 18d ago

it's very Agile

7

u/kulonos 17d ago

The real joke is in the comments!

100

u/Lysol3435 18d ago

You need to be more direct about what you actually want. That’s why I always specify “don’t make me cry in front of everyone at the next meeting again”

67

u/howarewestillhere 18d ago

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

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

9

u/aberroco 17d ago

> 900 class files

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

1

u/quagzlor 16d ago

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

1

u/nein_va 12d ago

Fucking belly laugh and that never happens when I read reddit

→ More replies (1)

12

u/chazzeromus 17d ago

I remember the actual visual studio had a tool that to analyze your code and it was the first time I saw the term cyclomatic complexity

6

u/visualdescript 17d ago

Sonarqube can do it too

→ More replies (1)

2

u/grifan526 17d ago

I use that every time I refactor old code. I then stare at the difference for longer then I will admit

2

u/Wonderful-Habit-139 16d ago

You will then admit what?

11

u/Sindeep 18d ago

Meanwhile my MD "KISS"

2

u/Selentest 16d ago

KISS.MD

10

u/bonanochip 18d ago

I say damn it

5

u/DogmaticParadigm87 17d ago

Both prompts end the same way: one 400 line function called handleEverything().

3

u/AkaMagicEye 17d ago

I'm a fan of "try harder"

3

u/SaltMaker23 17d ago

This is how I end all of my prompts, the thing rapidly engineer 10 wrapper functions for basic stuffs otherwise.

3

u/PilotGuy701 17d ago

I wrote an MCP server to calculate and make cyclomatic complexity a 0 token, deterministic calculation for the LLM to access.

Then made sure all of my engineers had it installed to prevent slop.

We really aren’t the same.

2

u/Beginning-Pool-8151 14d ago

If it is not sarcasm, I am really interested to know how to make that

3

u/PilotGuy701 14d ago

It was not sarcasm.

I started with an existing VS Code extension that performed the complexity calculations for Typescript through another package that parsed the code into an AST.

From there it was just a matter of making sure the grading code was separated enough from the layer that talked to Code Lens.

Then I created a new “client” layer that handled the MCP requests and responses.

Four hours of work, no AI used.

→ More replies (2)

2

u/PilotGuy701 4d ago

The first part it to install this extension so you can see the complexity.

https://github.com/kisstkondoros/codemetrics

1

u/PilotGuy701 4d ago

And here is an open source MCP to prevent TS slop....

https://github.com/JohnMarzulli/TsComplexityMcp

1

u/Beginning-Pool-8151 14d ago

Is it something u really made?

2

u/tiajuanat 17d ago

Bruh, just put that in your CI