[ Blog ]

It's Not Just Vibes

Yes, you can vibe code your own application. What you don't know is how.

We know you kids out there think you know everything with your blue jeans and your rock and roll music. Your ideas are A-OK but are you building applications that can take you into orbit?

There are a lot of reasons a vibe coded app may fail even if it is based on a great idea. One major issue is the code is fragile: as more functionality is added or current functionality is changed the code gets more likely to break and harder to keep working. For example, let's say you start out with a page that uploads text files for processing. Now three months later you need another page where images need to be uploaded. You need to make sure however you are writing the code, slightly different versions of the functionality aren't added in other parts of the code. Or if it does extend the file upload code, it doesn't break anything that was there already.

This isn't a problem with LLMs. They build what you ask, they don't think about future needs you haven't even thought about yet. This is a well known problem and in web development it is fixed by using one of a number of software "frameworks." A framework is prebuilt code the unique code you are writing lays on top of that forces the application to be built to mitigate all of these issues. Programmers don't have to figure out how the parts of the system interact, they write the code necessary for a specific application. One of the greatest compliments one developer ever told me about another is "I couldn't tell where my code ended and his started." Using the framework forced the code to be easily maintainable.

Even better for you, the LLM doesn't come up with its own way of building the app. As long as it follows standard conventions later developers, either human or AI, will have a much easier time trying to understand what the code does and how to maintain it.

The frameworks also have testing suites built in. Alongside developing the code, developers write tests to confirm the code works. When new code is added, all of the tests are rerun to make sure the new functionality hasn't broken the old. Most LLMs come with "skills" that make sure it will write these automatically, which means integration bugs will be caught early in the process. Having said that, before you begin every project the first prompt should include instructions to make sure unit tests are built and used. You of course are carefully QAing anyway when you push code to users, that doesn't go away. It just means you'll have less chance of missing a bug when it does go live.

We have our favorite framework here, but you are building your own apps so you should check them out and "pick the tool that fits your hand." Below are some of the most popular. There are a ton of others but these are the most popular and thus easiest to get support for.

Outgrowing one of these is one of those good problems you want to have.

The downside for you for this is you are going to have to set up your work to be able to test and develop for this. That sounds daunting and you start getting to do some weird commands but they aren't that hard, it just seems confusing because it is new. Whatever kind of computer you are reading this on there are tools to make setting up your computer easier. It's about as frustrating as home plumbing work, but done sooner and you don't have to wash your hands after doing it.

There's more to it than jazz cigarettes and a good idea. There is a way to do this, and you can learn it. Next time: security.

AI · Vibe Coding · Frameworks · Laravel · Testing