AI Is A Tool
The use of AI in development is an extremely contentious topic, but as usual I find myself drawn to the unpopular middle ground.
I’ve tried writing this post about a thousand times, and keep getting bogged down in … well, all of it. So I’ll just try to explain my own position, rather than trying to lay out everyone else’s.
So Many Issues
On the face of it, there are a lot of things wrong with the desperate leap into the Brave New World of AI; despite all the effort to tell us that it will solve the world’s problems and do all our work for us, the reality is rather different.
AI Can’t (or Shouldn’t) Build Systems
An LLM’s ability to generate large volumes of functional, maintainable code right now simply isn’t there in any meaningful or reliable form. Leaving aside the chance that the code produced won’t even compile or run (although with the right models, that’s improved a lot), the very nature of the way it’s generated results in the unthinking code paths and copy-pasted boilerplate that makes bad code so hard to diagnose and fix.
I completely understand the lure, especially to people who either aren’t programmers, or aren’t confident programmers. If you’re patient, and willing to spend the time negotiating (and you can afford the tokens!) then yes, you can iterate to something that, on the face of it, kinda works for now - in exactly the same way that you would have done 5 years ago pasting together answers from Reddit or StackOverflow.
But then you’re left with code that you can’t really trust, and definitely can’t understand because it was built without understanding.
AI Won’t Make You Learn
I spend a lot of time lurking in discord servers and other communities, where inexperienced users often end up asking how to do something with their tech, or how to sort out a mess they’ve worked their way into.
And it’s great. Honestly; there is nothing better than someone who doesn’t know how to do something, has dived in and poked at it anyway, and just needs a nudge in the right direction to get out of it. That’s how you learn. It’s how I learn.
A few years ago, the phrase that struck fear into my heart (and, frankly, made me lose interest in helping) was “I found this code on StackOverflow / Reddit / some other random website and it won’t run, why not?”. Now, it’s “I asked ChatGPT why doesn’t it work” because those people weren’t interested in working out their mistakes, or learning. They just wanted someone to fix their problem for them (and would then, invariably, vanish without even saying thank you).
My answer now tends to mirror my answer then - don’t ask me, ask ChatGPT. Or I just ignore them.
AI Is Ethically Dubious
Everybody knows that the current generation of LLMs are all trained on data that was, to be charitable, questionably obtained. Just about anyone who runs a website is probably painfully aware of the constant, brutal assault by their scrapers, which don’t obey any requests to limit or eliminate their requests.
The copyright question of code generated by such tainted systems remains a bit of a legal grey area. And even if it wasn’t, given a lot of data was taken without consent, there is a risk of being the unwary beneficiary of the act.
Then there’s the energy consumption; by the end of the decade projections suggest the AI power bill will be higher than the whole of Japan - although that rather assumes that the bubble doesn’t burst by then.
And that’s before you get into the tricky issue of just about every LLM being owned and monetised by arguably some of the worst examples of corporate excess, lobbying and deceit.
On The Other Hand
So, it’s a questionable tool that can’t do what it’s advertised as doing - so throw it in the bin and shun anyone who disagrees, right? Well, everyone is entitled to use whatever tools they choose, and even the most hardened Emacs user never refused to work on a project because someone else runs Vi instead.
AI Is A Better Search
Not that it’s better than search can be. It probably still isn’t as good as the days of Alta Vista, when the internet was smaller and mostly hand-coded by geeks.
But it’s better than search right now. The combination of SEO spam, vast quantities of inaccurate or so-wrong-if-feels-deliberate code on wastelands like StackOverflow has become, or Reddit, or any of the big sites means that trying to find the answers to fairly basic questions has become more of an epic quest.
LLMs can pull together more context sensitive answers, and while yes you have to eye them up as having dubious provenance the same applies to answers you used to get from Google.
AI Is Still Eliza
Anyone of a certain age will know ELIZA; a very early chatbot. It was, in modern terms, incredibly simplistic and would often generate into saying “why do you think that (x)” to every prompt than mentioned (x).
But despite it’s apparent primitive nature, people talked to it. A lot. About all sorts. And it worked as a pretty good rubber duck.
An idiotic sounding board is, for my money, one of its best features, then and now. Throwing ideas about a project at someone who will ask awkward questions and come up with the daftest hot takes is really helpful at the design stage and, unlike a hapless human, AI doesn’t get bored or demand tea during the process.
AI Can Help You Learn
In contrast to my earlier comment that it won’t make you learn if you just get it to do everything for you, AI can help you learn if you want it to.
Probably the most powerful aspect of this I’ve seen is learning (computer) languages. Something like Rust is well documented, and has a huge amount written about it, but there are precious few resources explaining specific idioms in terms that make sense to an old-fashioned C programmer.
It can also do pretty well at translating official documentation into something that humans can actually comprehend, which shouldn’t be necessary but… well, that’s where we are. A lot of projects are - to be charitable - indifferently documented and while yes, there’s always a chance that AI will make up something that isn’t true… I have some news for you about the accuracy of that human documentation.
(this isn’t a dig at other people’s documentation - I get it. documentation is boring and programmers, generally, just want to program. but I still need to know how to use things and gone are the days you could just check header files and work it all out)
AI Is A Better Designer Than Me
I admit it; my web design skills are weak (look around you!). I can waste acres of time fiddling with a colour palette, or find tools online that claim to build “perfect” colour schemes. Or, I can give some vague pointers to an AI, and with a little back and forth find something that looks nice.
See also layout. It’s all pretty safe (you can’t introduce security flaws with a bad colour scheme) and it saves me time, and protects everyone else from my terrible taste.
In Conclusion
I get that some people love AI.
I get that some people hate AI.
It’s a tool. It’s not a person-replacement. It’s not perfect - hell, it’s not even close, but it’s not terrible and is improving.
You can use it really badly. Like, dangerously badly. Hand it the keys to the kingdom. Let it loose on machines and codebases. Treat it like a programmer and your house of cards will probably collapse.
Or, you can use it well. Assume it’s an idiot. Feed it small, tightly defined parcels of work. Use it as a rubber duck. Use it for the ‘boring’, unimportant bits.
Or don’t. I’m not your mother.