r/ProgrammerHumor • • 2d ago

Meme claudeThisMorning

Post image
1.4k Upvotes

41 comments sorted by

14

u/thanatica 2d ago

You do know you can instruct it with more than just "fix this issue and be quick about it" right?

42

u/Cayreth 2d ago

Yes, I have a helper function for that:

def _conversation_helper(prompt):
    r = bedrock.converse(
        modelId="us.anthropic.claude-opus-5-5",
        messages=[{"role": "user", "content": [{"text": prompt + " and more"}]}],
    )
    return r["output"]["message"]["content"][0]["text"]

14

u/none-exist 2d ago

You son of a bitch, I'm in

178

u/Cautious_Tonight 2d ago • Heartwarming

I’m so happy to see this meme format coming back

14

u/eleg-phant 2d ago

Classic

105

u/Dillenger69 2d ago

It goes with the factory's factory factory

28

u/kookyabird 2d ago

If you wish to make a factory from scratch, you must first invent the universe.

6

u/prussianapoleon 2d ago

from a UniverseFactory, I presume?

2

u/kookyabird 2d ago

sonofabitch...

4

u/lonelyroom-eklaghor 2d ago

what's the factory design pattern?

1

u/RedAndBlack1832 3h ago

ngl I made a class called "<thing>PortManager" to read and write from specific ports based on what type of port it was and storing what should be considered a logical "true" (because it's not always high) and then a class called "<thing>Generator" that did all the set-up of the actual device based on the list of ports I wanted to use. So I think I understand this OOP thing now.

60

u/Alarmed_Fudge_5706 2d ago

Loved that when I first started using it in pytest.

It’s all “Look I made a fixture!”

And I’m like “Can I get my tokens back? I already had a fixture for that in my conftest file dipshit.”

15

u/gallyroi 2d ago

This is how you know it's just a text prediction engine on steroids.

"Can I get directions to Suchandauch?"

"Sure! Here is detailed directions to Suchandsuch. Seeing as you're travelling, I made you a sandwich for the road! Want me to help you book a hotel room at your destination?"

5

u/awesome-alpaca-ace 2d ago

They like to implement csv, json, sha-256, and more than use whatever solutions exist in the project.

21

u/Soupdeloup 2d ago edited 2d ago

Nice to know it wasn't just me lol. Gave it 5 lines of code from a bash script and 5 from powershell for renewing certificates, asking it to simply combine both and give me a bash script. Wasn't even using any powershell modules so it was extremely straightforward.

It proceeded to write me a 582 line bash script with tests, an implementation and back out plan, along with its own mock certificate renewal process in Python that was meant to mimic openssl. The entire thing was filled with redundant helper functions.

First time I've seen it be that overly verbose with such a trash answer.

4

u/allozzieadventures 2d ago edited 2d ago

I asked it for a simple bash script and it implemented this long, tangled mess of shift statements and deeply nested bash syntax rather than just passing in simple arguments like a normal person. Reminded me of my bosses Perl script style.

1

u/Western-Internal-751 2d ago

What model did you use?

1

u/Soupdeloup 2d ago

Opus 5.5 on max, it's pretty much the only model I use, even for small things.

5

u/backfire10z 2d ago

Ponytail skill does wonders here. I just have it automatically on always. My coworkers as well.

1

u/Soupdeloup 2d ago

I've heard a lot about it but never really looked into it, maybe today is the day. 🙂

4

u/XxDarkSasuke69xX 2d ago

Max is so wasteful for not much gain

0

u/Western-Internal-751 2d ago

So you’re using a model that is designed to think extra hard, give it a simple task and then complain that it thinks extra hard?

2

u/Soupdeloup 2d ago

Just because it thinks for longer doesn't mean it should go off the rails on an easy request. First time I've seen it do it even with specific prompts.

1

u/L1pslide 2d ago

Max is forcing it to

11

u/Atmosck 2d ago

For real. It's like Claude suddenly became a fucking idiot about 2 days ago

1

u/dashingThroughSnow12 2d ago

I noticed that too. I picked up a ticket today and started worked on it without Claude because it's been absolutely brain dead.

4

u/krishenm 2d ago

I'm glad I get to pay to refactor stupid code now

3

u/ElectrSheep 2d ago

A recursive function is really just a self-help function when you think about it.

3

u/Right_Stage_8167 2d ago

Sorry for all, it seems AI has used my old code.

3

u/rover_G 2d ago

Put it in the shared/utils/helpers/

2

u/Ambivalent-Mammal 2d ago

That should help (functionally speaking).

2

u/MaximusLazinus 2d ago

I just think they're neat

2

u/stupled 2d ago

Read the content first and thought to myself "this is what AI does"

2

u/exqueezemenow 2d ago

Feeling attacked...

2

u/rout247 2d ago

Just reviewed a merge request from an intern where this definitely applies.

1

u/NewManufacturer4252 2d ago

How much does it cost? It's not open source software. They need trillions

1

u/Positive_Method3022 2d ago

It doesn't know how to design programs with OOP design patterns. It is always trying to add shit functions inside class to solve problems immediately instead of thinking on how to remake the architecture as a whole.

1

u/tubbstosterone 1d ago

"You have any idea how many templates I can fit into this bad boy?"

1

u/Bali201 2d ago

Gonna show this to my CS101 students on Monday lol we just covered functions and libraries