Live data from Hacker News

Tips for programmers to stay ahead of generative AI

spectrum.ieee.org

261–270 of 319 posts

Re: Tips for programmers to stay ahead of generative AI

#261
post #94

Earlier quoted context omitted.

>What is the point of using lots of libraries if AI can generate the code we need directly? Theyve been debugged.

At some point the models will produce code with a lower error rate than existing libraries.

How do you ensure quality?

Review and testing.

Reviewing is easier when there is less code (i.e. libraries are in use)

Re: Tips for programmers to stay ahead of generative AI

#262

Earlier quoted context omitted.

Me too. I'm not an expert, but I'd say I'm a strongly average vim user. But even at that skill level with vim, I haven't seen an area where LLMs would increase my velocity. Quite the opposite. It would completely interrupt my flow to have to constantly stop and do a code review while I'm writing. With good plugins, templates and macros in vim/vscode - velocity writing code isn't the issue. The stuff that takes all th…

Have you tried to develop in a language or environment that you have 0 familiarity with? I find in those cases I'm up and running at least 3-4x as fast, cutting weeks off the learning curve.

Yes but did you actually learn it? Is watching a videotaped course from Berkeley about gauge theory the same as sitting in the class doing the homework, etc? I learn by doing.

Do you know where the bugs are when CI fails or when something shows up in QA or worse, when a customer files a bug report? The hard part of programming never was generating boiler plate, it's designing programs with the context of the problem and preexisting code keeping in mind the customer and company goals. That's what good developers do in my opinion.

Re: Tips for programmers to stay ahead of generative AI

#263

Is programming even the hard part about programming? In all seriousness, what we would really need from an AI to start really saving me time would be for it to interview all the customers/partners involved on the project, determine the scope of function needed, boil all that down to a set of sensible domain models that make sense to everyone, identify where/when messages need to be passed, determine which things can…

> the code can almost write itself My 2c: I've been an eng for around 15 yrs. I semi-recently had a brain injury so haven't been able to dedicate anywhere near as much mental cognition to programming recently. That's why I've been unable to maintain full-time work. I started using chatgpt around 3 months ago. Initially skeptical, I started giving it fun and weird logical/semantic puzzles to satisfyingly "prove" my in…

Yeah, it’s (3.5 and 4) good at writing code overall. I’ve had it write me entire programs (of smaller size) and mostly I just have to correct for library usage (because it’s built on outdated docs) or small things like explicit casting in a language like Python where that’s needed.

Re: Tips for programmers to stay ahead of generative AI

#264
post #194

Earlier quoted context omitted.

It doesn't work. I asked GPT-4 to migrate the following PHP code to JS: $csv = array_map('str_getcsv', file($argv[1])); And this is the result: const csv = readFileSync(filename, 'utf-8').split('\n').map(line => line.split(',')); You can't parse CSV this way, because you need to respect delimiters. Counter example: 1,"1,5",2 "1,5" being the German notation for "1.5". Hence, a simple split(',') will break this thing.…

You couldn't get it to work, but it certainly does work: https://chat.openai.com/share/774fbe29-00b9-4e1f-815c-268707...

This is very cool. Interestingly GPT appears to be incorrect when it suggests in the differences, that str_getcsv would not parse correctly quoted parts. It does look like the php function has support for the "enclosure" character hence something like "1,5" should parse correctly.

Re: Tips for programmers to stay ahead of generative AI

#265
post #240

>> One of the most integral programming skills continues to be the domain of human coders: problem solving. Analyzing a problem and finding an elegant solution for it is still a highly regarded coding expertise. Yeah right. I'm on windows 11 now, with English (Europe) as the system language and a double English and Greek layout. Windows continues to shit itself and randomly add two new languages and two new keyboard…

That isn't the slam dunk you think it is. Just because they won't doesn't mean they can't. MS have decided it isn't important enough to fix. Fwiw I view MS as a terrible (software) product company. All of their products fall short of delivering, in my opinion. I think of them as the "80 percenters" - their prpduxts do 80% of what any user reasonably expects as UX of their products, or of what their competition offers…

>> Just because they won't doesn't mean they can't.

In other words it means just because they can pay programmers to write good software, doesn't mean they will, and just because they don't have to cut down on costs by using some hapless LLM code generator instead of good programmers, doesn't mean they won't. They will.

That's the point. If you have industry leaders that suck so terribly at making good software, because they have no incentives to do so, software is going to suck even more when they realise they have no incentives not to make it suck even more, and it's easy to do (by LLM).

Re: Tips for programmers to stay ahead of generative AI

#266
post #85
post #54

Occurs to me as a retired 69 year old former coder that AI makes us old geezers and geezesses somewhat competitive again with our younger colleagues. Need to learn yet another new framework? Let AI do the nitty gritty bit. Capitalize on your experience and higher level know how.

I’m reminded of those pro StarCraft players who retire at like 30 because, while their strategy is perfect, their fingers simply can’t click or hotkey as fast as the twenty somethings.

I imagine it is the same for any elite level sport. Except perhaps chess.

Re: Tips for programmers to stay ahead of generative AI

#268

Earlier quoted context omitted.

it is not widely appreciated that openAI will at some point finish training one of their models and there, in that room where the terminal is, total power will exist and be under the control of whoever happens to be in there. “GTP10, please recreate NSO exploits and launch a campaign to download all data of the global population. hack and commandeer other data-centers if necessary, discreetly of course. begin an oper…

[flagged]

[flagged]

Re: Tips for programmers to stay ahead of generative AI

#269

Earlier quoted context omitted.

So much this. The thing hallucinates far more than the hyperventilation seems willing to acknowledge. You really need to be quite competent in the thing you're asking it to do in order to ferret out the hallucinations, which greatly diminishes the potency of GPT in the hands of someone who has no knowledge of the relevant language/runtime/problem domain/etc.

Try paying for GPT-4 - it barely hallucinates at all, at least as far as I've noticed.

I use GPT-4 it for sure does if you do a bit different things off the beaten path

Re: Tips for programmers to stay ahead of generative AI

#270

Earlier quoted context omitted.

So much this. The thing hallucinates far more than the hyperventilation seems willing to acknowledge. You really need to be quite competent in the thing you're asking it to do in order to ferret out the hallucinations, which greatly diminishes the potency of GPT in the hands of someone who has no knowledge of the relevant language/runtime/problem domain/etc.

Hallucination is less a problem for programming compared to other use case, because finally program must be run.

It's a huge problem on many levels, but in this case it so much more time intensive. Diminishing it's use.
Post reply on HN