#aiprogramming

Doc Edward Morbius ⭕​dredmorbius@toot.cat
2025-05-04

When I hear about AI-based programming, I think back several decades to a time when I was dealing with a hairy set of data, and I wrote a pretty complex bit of code generating an even more complex bit of SQL. I don't remember now if it ended up proving useful or not, though I think it did. But that's not the point.

The point was when I came back to it after a few months ... I couldn't figure it out at all. Neither the generator, nor the generated code.

And I HAD WRITTEN IT. Myself, from scratch, sorting out what I wanted and how to get there.

There's a principle in programming that debugging and maintenance are far harder than coding. Which means you should never write code that you are too stupid to debug and maintain. Which is precisely what I'd failed in my anecdote.

And of course, Management, in its infinite wisdom, typically puts far greater emphasis on new development than on testing, or Heavens Forefend!!! maintenance. So all the brightest talent (or so perceived, at any rate) goes to New Development.

(There's a great essay from about a decade ago, "In Praise of Maintenance, which you, and by "you" I mean "I", should really (re)read: freakonomics.com/podcast/in-pr).

With AI-based code generation, presuming it works at all, we get code that's like computer-chess or computer-Go (the game, not the lang). It might work, but there's no explanation or clarity to it. Grandmasters are not only stumped but utterly dispirited because they can't grok the strategy.

I can't count the number of times I've heard AI referred to as search or solution without explanation, an idea I'd first twigged to in the late 2010s. That is, if scientific knowledge tells us about causes of things, AI ML GD LLM simply tells us the answer without being able to show its work. Or worse: even if it could show work, that wouldn't tell us anything meaningful.

(This ... may not be entirely accurate, I'm not working in the field. But the point's been iterated enough times from enough different people at least some of whom should know that I tend to believe it.)

A major cause of technical debt is loss of institutional knowledge over how code works and what parts do what. I've worked enough maintenance jobs that I've seen this in all size and manner of organisations. At another gig, I'd cut the amount of code roughly in half just so I could run it in the interactive environment which made debugging more viable. I never really fully understood what all of that program did (though I could fix bugs, make changes, and even anticipate some problems which later emerged). Funny thing was when one of the prior Hired Guns who'd worked on the same project before my time there turned up on my front door some years later ... big laughs from both of us...

But this AI-generated code? It's going to be hairballs on hairballs on hairballs. And at some point it's gonna break.

Which leaves us with two possible situations:

  • We won't have an AI smart enough to deal with the mess.
  • Or, maybe, we will. Which as I think of the possibility whilst typing this seems potentially even more frightening.

Though my bet's on the first case.

#AI #AiProgramming #Hairballs #WarStories #Maintenance #TechnicalDebt

Leanpubleanpub
2025-05-02

Patterns of Application Development Using AI (The Course) leanpub.com/courses/leanpub/pa by Obie Fernandez is the featured course on the Leanpub homepage! leanpub.com

@gnat

So I code with ChatGpt/Claude.

First, it's not like ordinary coding.
If you expect to vibe code, you are going to have a very bad time.

Second. The more definitions you give the #AI, the better.
Give parameters what you want to expect.

Third, spec it. Give as much specifications as you can. You want that text window to scroll?
Propose an array or a list structure.
Leave as little to imagination as possible, the thing has very little of it and it will try to please you hard, it will make shit up.

Fourth. Give overall instructions. I usually say something along the lines of "Do not code unless clear instructions are given". Else the thing will launch into code at the first prompt.

Fifth, I used to get it to Pseudocode. Now I just usually say "Restate the problem". Just to make sure the machine understands what it's doing.

Checkpoint. When you have code that works, designated it as "Version X.1" because inevitably the machine will fuck it, esp if you're introducing a notable change.

Seventh, learn #promptengineering, most people have NFI how to use the #LLM esp. if they are naturally hostile towards the tech.
E.g. If I really want the model to pay attention, I will say something like: DIRECTIVE: Blah blah.

Lastly, this should go without saying, the free models suck, pay the broligarch tax for the smarter engine.

It helps if you understand a little how LLMs work, today for example I gave a prompt to just keep latest checkpoint and specs and flush everything else from the session context as it tied itself into knots

There are other tips.

#aiprogramming

P.S. If this is not your sport, just mute and move on, don't be rude

N-gated Hacker Newsngate
2025-04-17

Ah, yet another riveting tale from the cryptic world of GPG-encrypted env vars 🕵️‍♂️—because code, like our lives, just isn't complicated enough. But don’t worry, GitHub Copilot is here to save the day with AI that'll write shoddy code faster than you can say "Oops!" 🤖💥
github.com/waj/shell-secrets

N-gated Hacker Newsngate
2025-04-11

🎉 Wow, someone finally made Mbed-TLS work on a vintage Macintosh OS, because who doesn't need cutting-edge on their 30-year-old computer? 🚀 Meanwhile, GitHub's just over here, throwing around like "Copilot" and "Codespaces," hoping we forget we're still waiting for AI to write code that *actually* works. 😜
github.com/bbenchoff/MacSSL

2025-03-30

I’m probably one of the few that advocates for 100% Code Coverage.

There may be some justifiable exceptions, but overall it’s just a good practice to avoid something that doesn’t work as expected.

Ayesha Millerayehsam55
2025-03-26

Discover the top AI programming languages in 2025! From Python to Julia, find out which language suits your next big project and why it matters for cutting-edge innovation.
Source: xicom.biz/blog/top-ai-programm

2025-03-18

Is there any difference between computing AI workloads in Vulkan, OpenCL and CUDA?

I know that some people say that NVIDIA doesn't support (quite well) OpenCL or Vulkan, performance is achieved by using CUDA. But what is the story for other vendors (Intel, AMD, QualComm, Apple) ?

Can AI-generated code be more concise without losing clarity?

Our latest blog explores the Claude-Code & CodeConcise experiment, testing how AI balances brevity and readability in #SoftwareDevelopment: ter.li/89qckd

#GenerativeAI #AIProgramming #LLM #SoftwareEngineering #Tech #Blog

Distractionsdistractions
2025-03-08

(2) this little node.js proof of concept was created using Aider(1), which works similar to Copilot. Funny little side project; creating bulk of code never has been this fast.

(1) aider.chat/

Tuvoc Technologiestuvoc
2025-02-21

Top 10 AI Programming Languages to Learn for a Successful Career in 2025

tuvoc.com/blog/top-10-ai-progr

Discover the top 10 AI programming languages to master in 2025 for a successful career. Stay ahead with the best languages for AI, machine learning, and data science.















Tuvoc Technologiestuvoc
2025-02-18

10 Future Programming Languages to Watch in 2025

tuvoc.com/blog/10-future-progr

Discover 10 emerging programming languages that will shape the future of software development in 2025. Stay ahead with the latest trends in coding and technology.












Joaquim Homrighausenjoho@mastodon.online
2025-01-08

.. continued ..

I've been coding since the mid 1980's and was wondering how other developers think about the potential issues with "AI" generated code possibly including parts of, or whole, pieces of code that is covered by an Open Source license like GPLv2 or AGPLv2, without you knowing it.

Regardless companies' and people's disclaimers, etc, this, to me, seems like a potential can of worms, from a legal perspective, no? 🤔

#ai #programming #programmer #opensource #license #aiprogramming

Joaquim Homrighausenjoho@mastodon.online
2025-01-08

I'm still at the "entry level" (or "LEGO-level" as I'd like to call it) when it comes to "AI". I do find it interesting, and even (sometimes) fascinating. I'm not so impressed with some of the "code solutions" presented by Code Copilot (ChatGPT), but that's probably just me.

.. continued ⬇️ ..

#ai #programming #programmer #opensource #license #aicode #aiprogramming #code

@david_chisnall

I do #AI assisted coding too.

I have experienced issues of the exact nature you describe.

I have applied a few self taught techniques to make it better.

The latest one, I was using the wrong model.
I was using Claude Sonnet which is billed as the most intelligent.
Where as, you get better results with Opus model. Although it seemingly burns my computer faster.

I think this is emerging tech, and for me at least, this is not the first time I play with emerging tech.

My lived experience is that while the beginning is usually painful and often frustrating, it usually gets more fun and exciting.

#aiprogramming

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst