From Emmet to AI: It's Just Another Tool
The kid with the shortcut
When I first learned HTML, CSS, and JavaScript in school, everyone around me was typing every tag by hand. Open bracket, tag name, close bracket. Then the closing tag. Then do it again for the next line.
Then I found Emmet (opens in new tab). Emmet is a little tool built into most code editors that turns short abbreviations into full code. I could type something like ul>li*5 and press Tab, and it would instantly expand into a list with five items, every bracket in place.
While my classmates were still counting angle brackets, I was building whole sections of a page with a few keystrokes. It felt like a cheat code. I still remember that rush the first time a short line exploded into a full block of code: a little hit of dopamine, the kind that makes you grin at your screen and immediately want to try it again. Every new abbreviation I learned felt like unlocking a secret move. But it wasn't magic. It was just a tool that understood a pattern and wrote the boring part for me.
Then came the command line
Later, I moved on to frameworks like Laravel and NestJS. Laravel has Artisan and NestJS has the Nest CLI: command-line tools that you talk to by typing short commands.
Instead of creating dozens of files and folders by hand, you type one line, add a few options (we call them flags), and the CLI sets up a whole project or a new module for you. Same idea as Emmet, just bigger. You describe what you want in a compact way, and the tool fills in the structure.
The part I loved most was that you could make the output yours. In Laravel, running php artisan stub:publish copies the templates Artisan uses into your project, so every new controller or model comes out with your own structure and habits baked in. NestJS lets you point its CLI at your own set of templates (it calls them schematics), so nest generate builds modules the way your team likes them. Set it up once, and the tool keeps scaffolding in your style forever.
How I see AI
So when AI tools arrived, I felt that same dopamine rush. One sentence in, a whole working draft out. It looked like magic, but I didn't see a mysterious digital brain. I saw the same pattern I'd been using since school, just running on a much bigger engine. Here's my mental model:
- Config. You give it setup and background: skills, context, rules, examples. Like the flags you pass to Artisan or the Nest CLI, and like custom stubs and schematics, this is where you make the output yours.
- Input. You give it a prompt, the actual request. Like the Emmet abbreviation.
- Parsing. It breaks your words into small pieces called tokens, the units it can work with.
- Processing. It runs those tokens through its model to work out the most fitting response.
- Output. It turns the result back into text, code, or whatever format you asked for.
Config plus input goes in, structured output comes out. That's the same deal I had with Emmet and with every CLI I've used. The better you describe what you want, the better the result. And just like a published stub, once you set up your skills and context, the AI keeps working in your style.
Way more powerful, still a tool
To be fair, AI is on another level. Emmet only knows a fixed set of shortcuts. A CLI only does what its makers programmed. AI can handle messy, open-ended requests and produce things nobody wrote a template for. I'm not pretending those are the same.
I also know my comparison is a simplification. Emmet and CLIs follow fixed rules and give the same output every time. AI works on probabilities, so the same prompt can give different answers, and sometimes wrong ones. My five-step model skips over a lot of what happens inside, like how the model was trained and how it weighs one token against another. It's not meant as a technical explanation. It's the mental model that helps me decide how to use AI: as a tool I direct and check, not something I hand my judgment to.
But the bigger the tool, the more it matters who's holding it. AI doesn't decide what's worth building, and it doesn't know whether the result is right for your situation. You still need to understand the basics, check the output, and make the calls.
Emmet didn't make me a web developer. It made me a faster one. That's how I see AI: not a replacement for thinking, just the latest and most powerful shortcut in a long line of them. It's just another tool, and I plan to use it well.