this post was submitted on 27 May 2025
2035 points (99.4% liked)

Programmer Humor

23549 readers
2152 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 86 points 4 days ago (11 children)

All programs can be written with on less line of code. All programs have at least one bug.

By the logical consequences of these axioms every program can be reduced to one line of code - that doesn't work.

One day AI will get there.

load more comments (11 replies)
[–] [email protected] 12 points 4 days ago (11 children)

Honest question: I haven't used AI much. Are there any AIs or IDEs that can reliably rename a variable across all instances in a medium sized Python project? I don't mean easy stuff that an editor can do (e.g. rename QQQ in all instances and get lucky that there are no conflicts). I mean be able to differentiate between local and/or library variables so it doesn't change them, only the correct versions.

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

Itellij is actually pretty good at this. Besides that, cursor or windsurf should be able to. I was using cursor for a while and when I needed to reactor something, it was pretty good at picking that up. It kept crashing on me though, so I am now trying windsurf and some other options. I am missing the auto complete features in cursor though as I would use this all the time to fill out boilerplate stuff as I write.

The one key difference in cursor and windsurf when compared to other products is that it will look at the entire context again for any changes or at least a little bit of it. You make a change, it looks if it needs to make changes elsewhere.

I still don't trust AI to do much though, but it's an excellent helper

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

Not reliably, no. Python is too dynamic to do that kind of thing without solving general program equivalence which is undecidable.

Use a static language, problem solved.

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

I use pycharm for this and in general it does a great job. At work we've got some massive repos and it'll handle it fine.

The "find" tab shows where it'll make changes and you can click "don't change anything in this directory"

load more comments (2 replies)
[–] [email protected] 3 points 4 days ago

most IDEs are pretty decent at it if you configure them correctly. I used intelliJ and it knows the difference. use the refactor feature and it'll crawl references, not just rename all instances.

load more comments (7 replies)
[–] [email protected] -1 points 4 days ago (2 children)

Laugh it up while you can.

We're in the "haha it can't draw hands!" phase of coding.

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

AI bad. But also, video AI started with will Will Smith eating spaghetti just a couple years ago.

We keep talking about AI doing complex tasks right now and it's limitations, then extrapolating its development linearly. It's not linear and it's not in one direction. It's a exponential and rhizomatic process. Humans always over-estimate (ignoring hard limits) and under-estimate (thinking linearly) how these things go. With rocketships, with internet/social media, and now with AI.

[–] [email protected] 7 points 4 days ago (6 children)

someone drank the koolaid.

LLMs will never code for two reasons.

one, because they only regurgitate facsimiles of code. this is because the models are trained to ingest content and provide an interpretation of the collection of their content.

software development is more than that and requires strategic thought and conceptualization, both of which are decades away from AI at best.

two, because the prevalence of LLM generated code is destroying the training data used to build models. think of it like making a copy of a copy of a copy, et cetera.

the more popular it becomes the worse the training data becomes. the worse the training data becomes the weaker the model. the weaker the model, the less likely it will see any real use.

so yeah. we're about 100 years from the whole "it can't draw its hands" stage because it doesn't even know what hands are.

load more comments (6 replies)
[–] [email protected] 8 points 4 days ago (1 children)

I've used it extensively, almost $100 in credits, and generally it could one shot everything I threw at it. However: I gave it architectural instructions and told it to use test driven development and what test suite to use. Without the tests yeah it wouldn't work, and a decent amount of the time is cleaning up mistakes the tests caught. The same can be said for humans, though.

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

How can it pass if it hasn't had lessons.. Well said. Ooh I wonder if lecture footage would be able to teach AI, or audio in from tutors..

[–] [email protected] 35 points 4 days ago* (last edited 4 days ago) (9 children)

Its like having a junior developer with a world of confidence just change shit and spend hours breaking things and trying to fix them, while we pay big tech for the privilege of watching the chaos.

I asked chat gpt to give me a simple squid proxy config today that blocks everything except https. It confidently gave me one but of course it didnt work. It let through http and despite many attempts to get a working config that did that, it just failed.

So yeah in the end i have to learn squid syntax anyway, which i guess is fine, but I spent hours trying to get a working config because we pay for chat gpt to do exactly that....

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

Man, I can't wait to try out generative AI to generate config files for mission critical stuff! Imagine paying all of us devops wankers when my idiot boss can just ask Chat GPT to sort all this legacy mess we're juggling with on the daily!

load more comments (8 replies)
[–] [email protected] 34 points 4 days ago

Ctrl+A + Del.

So clean.

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

cant wait to see "we use AI agents to generate well structured non-functioning code" with off centered everything and non working embeds on the website

[–] [email protected] 47 points 4 days ago (2 children)

I’ve heard that a Claude 4 model generating code for an infinite amount of time will eventually simulate a monkey typing out Shakespeare

load more comments (2 replies)
load more comments
view more: ‹ prev next ›