this post was submitted on 27 May 2025
2076 points (99.5% liked)

Programmer Humor

24932 readers
1108 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 2) 50 comments
sorted by: hot top controversial new old
[–] sturger@sh.itjust.works 12 points 1 month ago (10 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.

[–] lapping6596@lemmy.world 11 points 1 month 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)
[–] derpgon@programming.dev 10 points 1 month ago

IntelliJ IDEA, if it knows it is the same variable, it will rename it. Usually works in a non fucked up codebase that uses eval or some obscure constructs like saving a variable name into a variable as a string and dynamically invoking it.

[–] Irelephant@lemm.ee 6 points 1 month ago (1 children)
load more comments (1 replies)
[–] killabeezio@lemm.ee 6 points 1 month 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

load more comments (6 replies)
[–] TheGiantKorean@lemmy.world 11 points 1 month ago

Did it try to blackmail him if he didn't use the new code?

Context

[–] ikidd@lemmy.world 9 points 1 month ago* (last edited 1 month ago) (1 children)
[–] antihumanitarian@lemmy.world 8 points 1 month 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.

load more comments (1 replies)
[–] Owlboi@lemm.ee 7 points 1 month ago (6 children)

well, it only took 2 years to go from the cursed will smith eating spaghetti video to veo3 which can make completely lifelike videos with audio. so who knows what the future holds

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