Live data from Hacker News

How to not use AI to code for you

mandaputtra.id

1–10 of 25 posts

Re: How to not use AI to code for you

#2
I sat next to a young aspiring software engineer, I just met him. And it's annoy me, to look at how he works. Prompting again - again and again till something is fixed, it's not how you do things. I think, if the AI could not answer it in the first place, you should fix it your self ~ or give it more context.

I'm sorry, It's just ~ I don't think that's how I want to use AI to code.

So I tell him, he needs to level up or else ~ the civilization will collapse, lol.

Again this is just opinion

Re: How to not use AI to code for you

#5

I sat next to a young aspiring software engineer, I just met him. And it's annoy me, to look at how he works. Prompting again - again and again till something is fixed, it's not how you do things. I think, if the AI could not answer it in the first place, you should fix it your self ~ or give it more context. I'm sorry, It's just ~ I don't think that's how I want to use AI to code. So I tell him, he needs to level up…

I think what that young guy actually did was practice for the next job application as "vibe programmer / Claude". Joke.

I think he did "vibe" coding, but (may be) on a piece of code that doesn't throw errors. Code assistance then doesn't know/understand what went wrong - more context would help. BUT!

I have had an logical problem once that I couldn't resolve with my quarter-pounder only. So I used cgpt and asked to give it to me. And, you guessed, it didn't work out.

I did not really expect it to work out, but at least give me the logical structure as the worst case. So I asked and got garbage. So I asked again, again, again - more context than the context I gave was out of reach, as I needed the logical structure firstly to be able to comprehend it myself and to add further context.

Then, at some point, I got something delivered that looked promising from the perspective of logical structure. So I took this and formulated a new prompt - and. Yes! You guessed it. It didn't work out in code.

So, I did a quick truth table of expectations, formulated the prompt with the given logical structure and truth table and told assistant to check on the given code... AAA AND! You guessed it. I sent 10 times the same prompt "here truth table, here code, ....".

I noticed, the code changed more or less each time, with introduction of newish loops and methods and and and..

And somewhen then, it worked flawless out of nothing.

Sometimes it makes sense just to write "it doesn't work out":

- in case one doesn't know how to formulate the actual problem, because it's out of scope. It's not the same as not being able to program, but it may be just to difficult to grasp the logic/algorithms with own brain (even own/custom one)

- to get alternative suggestions which may even be better than earlier suggested ones.

So, as long I don't know why this young guy did what he did, as long I can't judge what he did. May be he is like me - is able to code, but has big problems to sustain that knowledge and skill, because of Claude!!!!!

Re: How to not use AI to code for you

#7

> Its just trivial problem like centering things in CSS Maybe it’s not trivial for them? How do you know they weren’t trying to learn?

I have been using CSS since, well, they were invented back in 1995 but not continuously (when I need them). And I can never remember how to properly center things or how to do a lot of supposedly simple things. The specs has a lot of confusing naming (the naming have some logic, but nevertheless a confusing) and of course a lot of interrelated effects.

We used to have css editors that helped.

But I’m glad LLMs can now write CSS for me, and it nearly works perfect every time (I sometimes have to dig and fix things, and to push it to use the latest specs not old obsolete tricks)

Re: How to not use AI to code for you

#8

> Its just trivial problem like centering things in CSS Maybe it’s not trivial for them? How do you know they weren’t trying to learn?

It may be trivial now with flex... But back then, let me tell you...

Back then we had tables!

Re: How to not use AI to code for you

#9

I sat next to a young aspiring software engineer, I just met him. And it's annoy me, to look at how he works. Prompting again - again and again till something is fixed, it's not how you do things. I think, if the AI could not answer it in the first place, you should fix it your self ~ or give it more context. I'm sorry, It's just ~ I don't think that's how I want to use AI to code. So I tell him, he needs to level up…

Right, I'll have one main chat open for high level planning and guidance. It can knock out big chunks for me. But as soon as I take it on a side quest to fix something that doesn't work, it often starts going off the rails. Better to open a separate context for that fix. And often there's a good reason that it created the issue, like it patterned itself into a wall and a dead-end. At that point you should either start back from where it started drifting or take over (but still starting at the pre-drift point.)

Re: How to not use AI to code for you

#10

> Its just trivial problem like centering things in CSS Maybe it’s not trivial for them? How do you know they weren’t trying to learn?

It may be trivial now with flex... But back then, let me tell you...

You still have to remember which flex property to use, unless it's something trivial like `margin: auto`. I always have to find the right combination in DevTools first before commuting to changing the stylesheet, even after extensively working with flex since its inception.
Post reply on HN