Mon 11 Feb 2013
The only proper way to finish the title sentence is “… I don’t write code”. The way that it absolutely not be finished is “…I just use vi”. Here are the reasons people seem to claim for using vi most often:
- It’s always there.
- It’s always the same.
But there’s more to it than just that. Insisting on relying on vi for your editing needs is a pride thing. The pride of walking into the wilderness with nothing but a knife.
That’s right. We all want to believe we’re able to rush out into the wilderness with nothing but a knife, able to survive for days like John “Yes, I do have a first name” Rambo. After all, it’s not just a blade. It also has a compass, a couple of waterproof matches, and a needle and thread in case we need to stitch a large gash up ourselves. You picture yourself, looking rugged with a headband and makeshift burlap shirt, running through a rocky ravine and stopping to check the compass built into the end cap of the handle (an image which I looked for for literally hours, impeded by copyright police and the fact that I can’t remember which Rambo movie it was in – so please take a second to paint the mental picture). The truth is you look more like Michael Scott out in the woods wearing his pants on his head (an image I spent absolutely no time looking for – if you’ve never seen The Office (the U.S. version), Michael Scott is a man who is far too dumb to breathe, and he tries to prove he is clever enough to walk into the woods wearing just what he has on and survive. He’s not, and somehow he winds up wearing his pants on his head. It is marginally funnier than it sounds).
So, we’ve established that vi is like a survival knife with a blade and little else except a compass and some waterproof matches and enough needle and thread to stitch up a cut yourself.
A slightly more acceptable answer for why you don’t need SlickEdit is that you use whatever editor is included in your modern IDE. The IDE editor tends to be sort of like a Leatherman tool.
(Leatherman is a trademark, but I think they were first in this space, I’ve used their products for over 20 years. Although I am not a paid spokesperson, I am completely willing to be. Just contact me here by leaving a comment below). The Leatherman type multi-tool is sort of like a Swiss Army knife that is actually usable. It has usable screwdrivers (different types and sizes), pliers, wire cutters, scissors, a saw, and of course a knife. They have different models that have different types and numbers of tools, and any knife maker worth their salt has their own version. And these can be used for more reasonable tasks. I’ve never had to stitch myself up, but I have found myself needing pliers, a screwdriver, file, saw, etc. You could actually use one to perform an emergency car repair. Pliers are not ideal for this sort of thing, but in a pinch, you could probably use this to change a belt, and certainly use it to replace a hose. But you can’t use it to rebuild an engine. There are a number of reasons why. But here’s a big one:
This is a piston ring compressor. It is a specialized tool used to compress the rings on a piston when you put them back in an engine. And there is probably a way to get a piston into the cylinder without one. It probably involves cutting up a beer can and using a strap wrench, getting a really nasty cut, and making it worse trying to stitch yourself up with the thread in your survival knife, then going to the doctor who informs you that you should never, ever try to stitch yourself up again unless you’d like to lose your hand, and finally going to an auto parts store on the way home to buy a piston ring compressor. You could probably do something like that. But I wouldn’t try it. If I were doing serious work on engines day in and day out, I would try to have the right tools on hand.
And that’s the thing. If you’re reading this, odds are you’re not a guy who is not making emergency code repairs on the side of the road. Odds are you are a guy who is building and rebuilding engines (race car engines, right?), or at least maintaining them, every day. You won’t do your job effectively with a survival knife or a multi-tool. You need a tool box. A big one.
And this tool box is SlickEdit. A great deal of it is stocked when you get it. There are other tools that you have to put in the box, but it leaves a nice drawer there for you. It’s customizable, so you can cut a piece of foam out to fit your special tools.
Quit trying to build engines with a pocket knife. Get the tools that will best help you do your job. Some of my best friends are mechanics. They have to buy their own tools and move them from job to job. They don’t buy cheap ones.