this post was submitted on 26 Feb 2025
102 points (96.4% liked)

Programmer Humor

33705 readers
355 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 25 points 4 days ago (1 children)

Whenever i ser apps built with ai assitance i just think:"wait until an exploit pops up and no one knows how to fix it. Since it was hallucinated by ai from 2009 code"

[–] [email protected] 24 points 4 days ago (1 children)

sometimes it feels like they're doing it on purpose.

yesterday, i asked for it to create a basic rest api authentication function/method and it gave me something back that explicitly disabled ssl and when i asked why; it simply said "oops".

[–] [email protected] 11 points 4 days ago (1 children)

i like the idea that AI is actually competent enough to insert exploits

[–] [email protected] 10 points 4 days ago* (last edited 4 days ago)

i think its dumb enough to put exploits in because someone on stackexchange thought it made it more difficult 9 years ago.

[–] [email protected] 11 points 4 days ago* (last edited 4 days ago)

Yes, but bad example pics are used bcs the right panel example is also built by humans and is very efficient for the intent.

So both pics are great examples for the left panel - the AI would produce a clusterfuck of convoluted multilevel railways that would never see irl implementations in the railway business.

[–] [email protected] 5 points 4 days ago (1 children)

You all realize pretty soon no human is going to update an existing code-base?

Who wants to spend their time understanding 10 year old legacy code? They'll just feed it into an AI and tell it to add or fix a feature, then generate tests, and file a PR.

If it ends up having an airplane do a loop on take-off or sending your paycheck to Antarctica 🤷🏻‍♂️

[–] [email protected] 1 points 3 days ago (1 children)

I think what's really going to happen is that programming will focus on writing contracts that AI agents have to fulfill. You'd specify the behavior you want, memory constraints, runtime complexity, etc. And then the agent has to figure out how to produce code that meets the specification.

[–] [email protected] 1 points 3 days ago (1 children)

Isn't this COBOL or 4GL or something?

[–] [email protected] 1 points 3 days ago

I'm thinking something more along the lines of Haskell or Idris type definitions. You can use that to specify the function signature, and that becomes the contract that the function has to fulfill.

[–] [email protected] 1 points 4 days ago

How are people making apps with LLMs? I can't even make the fuckin thing to write a me a short story