Right, businesses do. As long as this is the state of vibe coding I am not worried one bit about job security lmao

Reply to this note

Please Login to reply.

Discussion

I didn’t say anything about job security. I actually think it’s a great tool for great devs and makes them that much more invaluable.

Yes I agree. The issue I see is that modern juniors might not even catch that there is a big problem with the code snippet generated in the picture above that might cost the business a lot of money. But if they would instead tried to read up how to build a message queue that would have immediately avoided that.

This is the very single issue I have with vibe coding. You might take away the opportunity to learn from yourself

Yeah, I understand. I never planned on learning so it works for me but I can see how it may harm those who do want to be full time devs and do it correctly.

You're comparing a bad coder with AI against a good coder without AI. What you should be worried about if at all is a good coder with AI.

Good or bad, everyone will use AI. Once it exists there is no going back. If anyone denies it and tries to get by without it, they will be uncompetitive with the rest.

This is not about whether seniors should use AI (they should). The only thing I am worried about is juniors who use AI instead of learning.

A friend of mine told me that most of his classmates “cheated” through their DSA class using AI. I see no future in software for those people.

Juniors who don't use AI should worry about their careers too. Just like they should if they can't actually code (which was already the case before).

nevent1qqsfkfay82z5p6653t68s9s9amtdg70tls8kxah63dxndjqcqyrclus5xlqyg

If you don't use AI as a dev, your job isn't secure.

Thanks for your thoughts. Do you use it regularly?

Constantly, for years at this point.

I think AI is really helpful to give you more brain space for the good stuff.

How long before the dev isn't needed at all?

What devs do isn't limited to either trivial apps or near exact copies of existing programs.

All programs we have, and which AI copies, have been written before.

So basically for as long as we will need complex programs based on new ideas.

But developers need to actually be competent.

If you use AI as a dev, your code isn't secure.

Don't underestimate it based on a bad result. If it's you against AI, it will win.

I am not against AI. I am against Vibe coding as it was defined by Andrej

Why?

Out of interest, what don't you like about the code?

The time complexity of dequeue in this snippet is O(n), while if it were implemented correctly it would be O(1). A queue is usually implemented using a singly linked list and not an array.

I feel like this examples illustrates the dangers of vibe coding best. This code will not throw an error, it will run just fine and there is nothing that will make someone who does not know better look twice, but it will cost you.

besides the obvious ai smell of having comments that describe what's obvious by just reading the code, and no checking of anything whatsoever, it's not implementing a queue in any way, that's just an array with extra steps, it loses all the benefits of a real queue.

It probably stole that code from someone who doesn't understand data types either.

A queue has a pointer to a start and end; it has a limited size, and depending on the implementation and what you're trying to achieve it should either circularly wrap if it achieves the size limit, or it should throw an error.

Enqueuing and dequeueing should be constant time (O(1)), that means that adding and removing elements should always take around the same time.

Arrays wrappers like what chatgpt there created get progressively slower over time, as they work in linear time (O(n)).