Baby, Bathwater, and Dreamweaver
July 20th, 2007At a recent meeting with the DTLT group, I was pounced on (okay…I exaggerate…let’s call it “challenged”) about my using Dreamweaver to edit code for Wordpress. I felt sheepish and a bit embarassed. Afterall, if you read the Wordpress documentation, there is a huge caveat emptor about using any type of WYSIWYG editing for Wordpress. One of my dear DTLT buddies said, “But, Dreamweaver SO wants to manage the site.”
I skulked away later, and went back home to try what they were using: an FTP client (there was some debate about Bluehost’s filemanager vs. “Transmit”) and a free Mac text editor (Text Wrangler). That experiment lasted one non-productive day, and I went back to Dreamweaver. Heresy? Just used to Dreamweaver? I’m not sure. Herein is my argument about using it.
1) I am hacking, not just using, Wordpress.
Unlike my spirited colleagues, I am digging deeper into the code to change the php, and to design custom themes and skins. For this purpose, it’s necessary to perform some global searches to find functions and variables in their various places within the Wordpress file tree. You could go online all day to find references to this stuff in the Wordpress support, but every theme is a little different. So, you need to quickly find references to various code snippets so you can piece together how what you are doing will affect you. In my non-Dreamweaver day, my search was manual and spotty, and no code came out of that day that I could use. The next day, I went back to Dreamweaver, located the five lines of code I needed withing about 5 minutes, and spent the day busily testing variations, eventually solving the problem and moving on.
2) Dreamweaver has built-in FTP.
I kind of like that I can edit and upload in the same program that gives me a global search and replace. I’m lazy that way.
3) Dreamweaver doesn’t add any proprietary code if you are not using the site management function
If you don’t want Dreamweaver to manage your site, just decline its occasional offers to do so (e.g., “Update links?” click “no” and get on with it).
4) Dreamweaver site management is not all bad.
You can use cloaking if you want to update a function within one theme but not another. And a log is generated, giving you ongoing documentation of what you are doing as you happily hack away.
5) Dreamweaver gives me color-coded text.
Text Wrangler did this, too, but didn’t really do it on a granular enough level for me. Dreamweaver knows what the code means, and color-codes comments, queries, and the like, for easy scanning. Again, a productivity plus, particularly with my over-40 eyesight (my DTLT buddies are much more youthful).
So, call me a 90s style coder, but I see absolutely nothing wrong with using Dreamweaver when you’re hacking Wordpress. If all you want to do is change a font color, or upload a header image, it’s an elephant gun for a mouse, for sure. But, if you really want to get a handle on what’s under the hood, I think I’d prefer to use a program designed to do just that, and very well.
Sorry, friends!