Hand Coding
Glenn Fleishman over at TidBITS (no relation) recently published an interesting article about hand coding HTML/CSS versus using WYSIWYG editors, “Hand Coding HTML Is Still in Vogue”. To quote:
It’s therefore rather amusing to recognize that after 14 years of such editors - FrontPage, PageMill, GoLive, Dreamweaver, and many others, with few surviving the hecatomb - hand coding still rises to the top as the preferred method of building pages.
To build rich, complex sites with ever-changing and expanding content, you almost certainly need to get under the hood and get your fingers dirty with some sort of templating system.
Glenn’s basic point: since web sites are no longer static pages—instead they consist of idiosyncratic combinations of databases, templates, scripting, etc.—it’s much faster to simply code freehand because no WYSIWYG editor would be able to cope with the complexity of today’s sites.
A Different Point of View
I wholeheartedly agree with their opinion that hand coding always beats WYSIWYG, though I would qualify that it only does so if—and this is a big if—you have the technical chops and desire to do so. I’m good with HTML and CSS, so I write it by hand. However, you’re not going to find me trying to hand code Word documents any time soon. I don’t have the skills to do so, and although formatting can get very annoying and inconsistent from time to time, Word is a good enough WYSIWYG editor. Many people have the same attitude about HTML.
So, why aren’t more people using WYSIWYG editors to write web pages? Although I agree with Glenn’s points about the complexities of modern sites precluding the use of WYSIWYG editors, my take on it is that WYSIWYG editors failed to gain a hold with web developers for the following reasons:
- When WYSIWYG editors first came out, they produced sloppy code
- The sloppy code generated by these editors displayed inconsistently across browsers
- As web developers eventually looked for ways to make their sites appear consistent across browsers, they learned about standards compliance
- Web developers were able to switch to standards-compliant coding practices more quickly if they did so by hand than if they waited for the software companies to update their WYSIWYG editors
- Web developers also realized that they had more control over the explicitness of their code if they wrote it by hand
WYWIWYG
There will always be demand for some form of WYSIWYG editor when it comes to producing web content, but if you regularly edit, build, or maintain web sites, it’s almost imperative that you have a decent level of experience writing code by hand. After all, hand coding is the only way you’ll know that what you write is what you’re going to get.
Sound off if you can think of other reasons why WYSIWYG editors are not the tools of choice.
