ŷ

Jump to ratings and reviews
Rate this book

Martin Fowler Signature Book

Refactoring HTML: Improving the Design of Existing Web Applications

Rate this book
Like any other software system, Web sites gradually accumulate “cruft� over time. They slow down. Links break. Security and compatibility problems mysteriously appear. New features don’t integrate seamlessly. Things just don’t work as well. In an ideal world, you’d rebuild from scratch. But you can� there’s no time or money for that. Fortunately, there’s a You can refactor your Web code using easy, proven techniques, tools, and recipes adapted from the world of software development.

In Refactoring HTML, Elliotte Rusty Harold explains how to use refactoring to improve virtually any Web site or application. Writing for programmers and non-programmers alike, Harold shows how to refactor for better reliability, performance, usability, security, accessibility, compatibility, and even search engine placement. Step by step, he shows how to migrate obsolete code to today’s stable Web standards, including XHTML, CSS, and REST—and eliminate chronic problems like presentation-based markup, stateful applications, and “tag soup.�

The book’s extensive catalog of detailed refactorings and practical “recipes for success� are organized to help you find specific solutions fast, and get maximum benefit for minimum effort. Using this book, you can quickly improve site performance now—and make your site far easier to enhance, maintain, and scale for years to come.

Topics covered include

� Recognizing the “smells� of Web code that should be refactored
� Transforming old HTML into well-formed, valid XHTML, one step at a time
� Modernizing existing layouts with CSS
� Updating old Web replacing POST with GET, replacing old contact forms, and refactoring JavaScript
� Systematically refactoring content and links
� Restructuring sites without changing the URLs your users rely upon

This book will be an indispensable resource for Web designers, developers, project managers, and anyone who maintains or updates existing sites. It will be especially helpful to Web professionals who learned HTML years ago, and want to refresh their knowledge with today’s standards-compliant best practices.
This book will be an indispensable resource for Web designers, developers, project managers, and anyone who maintains or updates existing sites. It will be especially helpful to Web professionals who learned HTML years ago, and want to refresh their knowledge with today’s standards-compliant best practices.

340 pages, Hardcover

First published April 22, 2008

98 people want to read

About the author

Elliotte Rusty Harold

45books7followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (10%)
4 stars
9 (30%)
3 stars
15 (50%)
2 stars
2 (6%)
1 star
1 (3%)
Displaying 1 - 2 of 2 reviews
Profile Image for James Stewart.
38 reviews6 followers
May 23, 2008
Despite years of progress by web standards advocates, and a significant improvement in the quality of the HTML on the web, many of us still end up grappling with outmoded, broken HTML on a regular basis. When confronted with a large site filled with broken pages it can be hard to know where to start. Elliotte Rusty Harold’s Refactoring HTML offers a step by step recipe book for migrating such sites to clean, semantic code.

Harold’s is a well known name in the XML world, and that background shows through in how he approaches the book. While a general audience will probably find useful content, the reader needs to be prepared for a series of command-line and Java-based examples. Tools like tidy are featured prominently, as is the use of regular expressions to seek out broken code to fix and, in the music-to-my-ears category, automated testing.

If you’re equipped to do so, following these steps will lead to much cleaner, more manageable sites, but I found myself wondering how many of those comfortable with command line tools and regular expressions are in the market for a book like this.

In general I suspect the key audience for this will be IT departments inside large organisations tasked with refreshing or extending an intranet. For those developers, who maybe don’t spend much of their time working with HTML and like the idea of using scripting tools similar to those in their regular workflow, this book’s worth a look. If you’re already familiar with current trends in web development, then there are probably other ways of picking up on the scattering of techniques that might be new to you.

Disclaimer: I was sent a copy of this book for review by the publisher.
Profile Image for Adam Norwood.
14 reviews2 followers
January 13, 2009
Really a good resource for those looking to clean up their sites to be more standards and usability compliant. Reads like a reference book, a format that I think works well for the material.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.