Don’t live with a broken IDE
Jan. 16th, 2009 09:44 amIntegrated Development Environments are all the rage these days, with Eclipse being the sort-of break-out winner. I don’t use an IDE, exactly, I use that ancient rustbucket of a text editor, Emacs, and while Emacs isn’t exactly an IDE, this rule applies: don’t live with a broken IDE.
For the past six months, I’ve been working with Emacs 21 on my desktop at work. I do development in a number of different languages that require syntax highlighting and proper indentation: C, Python, HTML, CSS, and Javascript. The Javascript highlighting engine did not work correctly: the indentation interpereter was almost alway wrong, leaving me with poorly-indented code that was hard to read. I ended up wasting, I’m sure, hours hand-indenting the code so that I could see what I was doing.
I finally got tired of this rigamorale and asked if I could please update the Emacs install by hand. We’re discouraged from putting into the base OS anything that’s not approved by Red Hat, but he said sure, if I needed it and could build it by hand, if they ever had to restore my OS I obviously could do it again. So I quickly built Emacs from scratch and installed it in /usr/local, which I then immediately backed up to the virtualization drive to make sure it would be there if I needed it in the future.
It has made all the difference in the world. Emacs 22’s javascript-mode just works, and it does indentation at four spaces per closure properly. Not only was I able to actually see the syntactical error I was making in a javascript configuration pass in Ext-JS, but I could see how the entire dialog manager could be abstracted out further into a metahandler and reduced my code duplication by half. Now that’s programmer efficiency.
Just a simple reminder: if your IDE doesn’t work exactly the way you want it to, it is slowing you down. It’s worse than having no IDE and no smart editor, because a broken IDE distracts your from the task at hand, drains time and will you have allocated to the programming task at hand, and introduces errors into your attention. Managing your attention span is the number one skill for the Internet age, and a tool that comes between you and that successful management is a disaster.
This entry was automatically cross-posted from Elf's technical journal, ElfSternberg.com
no subject
Date: 2009-01-16 07:15 pm (UTC)I miss Eclipse.
And this, oddly, is why I've stuck with using flat text editors for so long.
Date: 2009-01-16 07:19 pm (UTC)I've made a lot of changes since giving things second chances lately, I may have to look into some of the IDE's or at least better editors out there again.
no subject
Date: 2009-01-17 10:01 am (UTC)But recently I found Kdevelop. It works much better than vi, is significantly easier to use, and will run code on remote servers (I've been programming in PHP, mostly these days, and while I don't use it, it supports various version control software for automatic updates when you save) just like it was on localhost. What I really like about it though is how it embeds Konqueror into the program. Not only does this mean executing your code like it was local, it means that online documentation is built right into the software. Just open another tab and you've got php.net right there for reference.
Ahem. Sorry, it looks like I was proselytizing. I blame lack of sleep.