“Google's Antigravity has deleted my entire hard drive”. This how the new forum system started: with a chance reading of a Reddit post. It had become a bit of a meme although from what I understand, the hard drive was actually deleted. This piqued my interest so I decided to find out what Google's Antigravity was. It is an AI-powered vibe coding system based around Visual Studio Code. Which in English means: you give it written instructions in English and it writes the code for you. I was firmly in the "that is not really going to work for any serious application" camp, so I thought I would demonstrate that for myself. How wrong I was.
The old forum system is a bit long in the tooth and has one or two issues that make its administration far more cumbersome than it needs to be. It is slow, partially because of the host it is on, and has regular issues which are difficult to solve. It is under heavy load, with it regularly reporting 1,200 online users.
With that in mind I set Antigravity about solving this problem and implementing a new forum system. I gave it some vague written instructions, which within fifteen minutes, it had turned into a simple forum system. To say I was amazed is an understatement, so I decided to give it more tasks, more complication in the forum system, more features I wanted. It handled most things that I asked it to do with ease. It produces a plan detailing the changes required which I can annotate and change. Once I am happy it makes the changes. The trickiest part was that it had calculation limits so I would regularly have to leave it for a day or two while these reset. These seem to have been widened so it's not as much of an issue now. Within a couple of weeks of sporadic AI prompting I had most of the system you see now.
The old adage of "80% of the work takes 20% of the time" certainly holds in this case. 90% of the work probably only took 2% of the time. Most of the my time was converting the old forum data into the new Markdown syntax. I wrote that so it took quite a long time - I am sure I could have asked the AI to do it but there were thousands of posts and I wanted to check some of them as they went along. The system as it stands now is probably 90% AI code and 10% mine. Most of the 10% I wrote was derived from the AI code anyway. Because it gives you source code, it makes it quite easy to make subtle changes. It's often easier to make small changes than describe it to the AI.
Just as I was writing this post, Kenneth Smith posted some code for plotting complex functions and I thought it would be good if it was easy to post a graphic. I thought about it for a while and then asked Antigravity:
“I am trying to think of a way to allow users to upload photos with their replies in Topic.cshtml. These photos can then be used, somehow, in their reply. If they do not post the reply then the images will need to be discarded.”
It took about a minute to formulate a plan then I said
“Further to this plan, would it be possible to incorporate a pasted image from the clipboard? Is that even possible?”
Two minutes later I had code that you can use right now in the forum to post images! Except that it didn't work… and that takes us back to the Antigravity "deleted my hard disk" meme. For the code it wrote to work there must be a new database table that tracks the images and it had written code to update the database and create the table. These AI systems seem all-knowing but actually they're not. They're not even running on your machine; they're running on a server somewhere so they can't see the forum database and one or two little tweaks I had made had fooled the AI. In the interactions I had with it to get around this issue, I could see it could easily have produced code that could have deleted quite a lot of the database. Fortunately, I spotted this issue and helped the AI solve the problem.
A forum system is actually quite simple; at its heart it's just three database tables: topics, posts and users. So this might have played into Antigravity's sweet spot but there's no doubt it has done a fantastic job. I have used it in a completely different area of programming. I have an iPhone app and it has an issue with the latest iOS versions where the on-screen keyboard could cover up the form that is being typing into. I had spent quite a lot of time trying to figure out what the problem was and had given up several times. I asked Antigravity: I gave it the source code and told it what the problem was. Within 45 minutes and several iterations of me making the changes it suggested ‘we’ had solved the problem!
AI coding isn’t going to go away that is for sure.