Most active commenters
  • LPisGood(4)

←back to thread

420 points serjester | 19 comments | | HN request time: 1.434s | source | bottom
Show context
joshdavham ◴[] No.43536242[source]

My rule of thumb has thus far been: if I’m gonna allow AI to write any bit of code for me, then I must, at a bare minimum, be able to understand that code.

There’s no way I could do what some of these “vibe coders” are doing where they allow AI to write code for them that they don’t even understand.

replies(4): >>43536457 #>>43536559 #>>43537637 #>>43538600 #
1. AlexandrB ◴[] No.43536559[source]

I think there's a lot of code that gets written that's either disposable or effectively "write only" in that no one is expected to maintain it. I have friends who write a lot of this code for tasks like data analysis for retail and "vibe coding" isn't that crazy in such a domain.

Basically, what's worse? "Vibes" code that no one understands or a cascade of 20 spreadsheets that no one understands? At least with the "vibes" code you can stick it in git and have some semblance of sane revision control and change tracking.

replies(6): >>43536629 #>>43536711 #>>43536898 #>>43537300 #>>43537330 #>>43537477 #
2. Centigonal ◴[] No.43536629[source]

> I have friends who write a lot of this code for tasks like data analysis for retail and "vibe coding" isn't that crazy in such a domain.

I think this is a great use case for AI, but the analyst still needs to understand what the code that is output does. There are a lot of ways to transform data that result in inaccurate or misleading results.

replies(1): >>43536694 #
3. LPisGood ◴[] No.43536694[source]

Vibe coders focus on writing tests, and verifying function/correctness. It’s not like they don’t read _any_ of the code. They get the vibes, but ignore the details.

replies(3): >>43537314 #>>43537895 #>>43541938 #
4. pton_xd ◴[] No.43536711[source]

> I have friends who write a lot of this code for tasks like data analysis for retail and "vibe coding" isn't that crazy in such a domain.

That sort of makes sense, but then again... if you run some analysis code and it spits out a few plots, how do you know what you're looking at is correct if you have no idea what the code is doing?

replies(1): >>43537346 #
5. liveoneggs ◴[] No.43536898[source]

two wrongs don't make a right

6. cube00 ◴[] No.43537300[source]

> I have friends who write a lot of this code for tasks like data analysis for retail and "vibe coding" isn't that crazy in such a domain

Considering the hallucinations we've all seen I don't know how they can be comfortable using AI generated data analysis to drive the future direction of the business.

7. cube00 ◴[] No.43537314{3}[source]

> Vibe coders focus on writing tests

From the boasting I've seen, Vibe coders are also using AI to slop out their tests as well.

replies(2): >>43537365 #>>43540179 #
8. inetknght ◴[] No.43537330[source]

> what's worse? "Vibes" code that no one understands or a cascade of 20 spreadsheets that no one understands? At least with the "vibes" code you can stick it in git and have some semblance of sane revision control and change tracking.

You can for spreadsheets too.

9. kibwen ◴[] No.43537346[source]

> how do you know what you're looking at is correct if you have no idea what the code is doing?

Does it reaffirm the biases of the one who signs my paychecks? If so, then the code is correct.

replies(2): >>43537964 #>>43538069 #
10. kibwen ◴[] No.43537365{4}[source]

Worry not, we can solve this by using AI to generate tests to test the tests.

replies(1): >>43540188 #
11. palmotea ◴[] No.43537477[source]

> think there's a lot of code that gets written that's either disposable or effectively "write only" in that no one is expected to maintain it. I have friends who write a lot of this code for tasks like data analysis for retail and "vibe coding" isn't that crazy in such a domain.

> Basically, what's worse? "Vibes" code that no one understands or a cascade of 20 spreadsheets that no one understands?

Correction: it's a "cascade of 20 spreadsheets" that one person understood/understands.

Write only code still needs to work, and someone at some point needs to understand it well enough to know that it works.

12. hooverd ◴[] No.43537895{3}[source]

Huh. The whole promise of vibe coding is that you don't have to pay attention to the details.

replies(2): >>43538058 #>>43540165 #
13. usui ◴[] No.43537964{3}[source]

LOL thanks for the laughs. But yes seriously though, most kinds of data analysis jobs several rungs down the ladder where the result is not in a critical path amount to reaffirming what upper people believe. Don't rock the boat.

14. namaria ◴[] No.43538058{4}[source]

"You're programming wrong wrong" /s

15. AlexandrB ◴[] No.43538069{3}[source]

Lol, that's definitely a factor. Actually plotting is the perfect example because python is really popular in the space and matplotlib sucks so much. While an analyst may not understand Python very well, they often understand the data itself through either previous projects or through other analysis tools. It's kind of like vibe coding a UI for a backend that's hand built.

16. LPisGood ◴[] No.43540165{4}[source]

Yeah, of course. I don’t think what I described could possibly be misconstrued as someone paying attention to details.

17. LPisGood ◴[] No.43540179{4}[source]

Yeah and tests are much easier to validate than functions.

18. LPisGood ◴[] No.43540188{5}[source]

Testing the tests is pretty much the definition of being a vibe coder.

19. achierius ◴[] No.43541938{3}[source]

This seems optimistic -- prescriptive, rather than descriptive. From what I've observed, vibe coders largely do not include tests; they do verify functionality/correctness, but not rigorously or repeatably.