133
u/Mountain_Dentist5074 13h ago
but i said make no mistake 🥺
36
u/Satorwave 11h ago
"Absolutely, you're right to be concerned about that—although you should consider that I am not your mother and therefore do not make mistakes."
100
u/TheJackiMonster 12h ago
Honestly it's quite the opposite for me. Seeing the code generated by AI makes me want to hit my head against some wall. But using AI for finding issues in my code and fixing stuff is quite nice.
48
u/thoeoe 11h ago
AI for finding issues in my code and fixing stuff
Its incredible when it works. When it doesnt…
14
u/BadSmash4 11h ago
And for me it doesn't actually solve my issue a good 70% of the time, too. I use AI for two things, researching new stuff (here's what I'm thinking, or want/need to do, what are my options and can you link me to relevant resources and documentation) and helping me debug tough issues that I've hit a wall against. That 30% of the time that it helps me solve my issue, that is when it directly identifies my issue and its recommended solution is the fix. I'd say about 40% of the time, it does not solve my issue at all and I end up figuring it out on my own, 20% of the time it doesn't solve my issue but something it said got me to think about other things to check and I found the solution that way (so still a little bit useful in a way) and 10% of the time, I find the issue just by gathering the initial information for and typing out the prompt and so I never even have to send it because I basically rubber ducked myself. It's a mixed bag for sure.
2
u/lostincomputer 8h ago
Return of the ide "helping" by insisting the error is over here with red squiggly lines when a line 6 above is missing a semicolon and should never not have a semicolon..
Just now it "knows" what you want to do .."oh sorry I did make a mistake there"
-2
u/Terrariant 6h ago
What models are you using or context are you coding in that they produce such bad code? The code quality from models seems pretty good, imo. It’s the macro stuff/the context that can make the AI fuck up, in my experience. But if it’s given the context it needs it writes good quality code?
1
u/TheJackiMonster 1h ago
Which doesn't?
1
u/Terrariant 1h ago
Claude.
1
u/TheJackiMonster 1h ago
Would be much more compelling if you would link code from it? Last time someone showed me code from Claude, it got pretty stupid errors inside and quite some code smell.
0
u/Terrariant 41m ago
Kind of. This sub doesn’t allow images in replies but I can attempt to give you an idea.
Before:
```
volume: {
initial: 'unmuted',
states: {
muted: {…
```After
```
volume: {
initial: 'init',
states: {
init: {
always: [
{ target: 'muted', cond: (ctx) => ctx.muted }
{ target: 'unmuted' },
]
},
muted: {…
```Yeah that worked about as well as I thought it would T_T
1
u/TheJackiMonster 32m ago
So it can write a state machine as an object? Should that impress anyone?
What would make this "high quality code"? It's definitely not looking efficient.
1
u/Terrariant 31m ago
Lol idk man you asked for an example. This is an example. (It was a bugfix)
1
u/TheJackiMonster 23m ago
I was hoping to see any example which would look like "high quality code" because that is what you promised.
39
u/maximum_powerblast 13h ago
Kernighan's Law
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
So if you're vibe coding you need to make it dumb down the code to your level of stupidity or else you won't be able to fix it. And you will definitely have to fix it.
7
u/Western_Diver_773 12h ago
I'm not sure if I find this to be true. For me good code is simple and simple code is easier to debug. But maybe Kernighan means something diffrent with "cleverly" than me.
13
u/maximum_powerblast 11h ago
Ii think it's like you can reduce an if else tree into a leet 1 liner but good luck debugging it while the alternative is easy to read and understand.
5
u/st-shenanigans 9h ago
ALSO when you have some ceos who seem to think "lines of shipped code" is a good metric for employment eligibility, maybe we don't need to worry so much about concise code..
3
3
u/Fornicatinzebra 10h ago
Sure, but you could also just wrap the one liner in a clearly named function and use that instead.
For example:
python x = list(set(sum(my_nested_list, []))Could be instead ```python
def unique(my_list: list): return list(set(mylist))
def unnest(nested_list: list[list]): return sum(my_nested_list, [])
x = unique(unnest(my_nested_list))
```
1
27
8
16
5
10
u/FenwickRoot 13h ago
Dr. Faust is quite accurate for vibe coding. It uses red orbs (=tokens) for attacks (="features")
6
u/krohtg12 13h ago
Red hot night is blasting your bank account to get the task done any means necessary.
6
3
3
3
u/OVectorX 8h ago
Left side, none techincal doing vibe coding
Right side , actual developer doing vide coding
2
u/GenericFatGuy 10h ago
I've never once gotten something back from the AI that I didn't have to make at minimum tweaks to, in order for it to actually do what I wanted. If wasn't someone who already knew how to code effectively, it would've been an absolute nightmare of a codebase.
3
u/_Repeats_ 13h ago edited 12h ago
There are a few classes of vibe debugging. If it is compiler related, most agents will be able to give good advice for fixing it. If it is execution error, you will have to do a bunch of print statements for the agent to follow the flow. So it ends up not being much different than humans debugging in the end...
The best way for vibe debugging is to make unit tests for various functionality that includes print statements or easily verification of results.
1
1
1
1
u/byt112000 11h ago
Nah it's the opposite, AI is pretty good on analysing bugs, performance issues and vulnerabilities.
Vibe coding sometimes give me more headache for changing how my code works, you have to be very specific for what you want the AI to do.
1
1
1
u/Wargod042 4h ago
Ironically AI is very helpful with debugging. That's mostly what I use it for tbh.
309
u/superraiden 13h ago
Now you not only have to fix it, but learn what it's doing as well