Web developers: Beware framework bloat
Summary: Web design frameworks can be useful tools but be wary of adding too much bloat to your website app.
Another week, another contract, another project. And another framework.
In the next few weeks I'll mostly be using the Twitter Bootstrap framework, with the Haml markup language and the Sass CSS preprocessor.
The whole idea of Bootstrap is to provide everything you need to get a website up running very, very quickly. There's a CSS grid, CSS styles, jQuery and jQuery plugins, heck, even the buttons are styled nicely. You hardly have to think.
And therein lies the problem. The danger of switching off your brain and letting default take over. Versus getting the job done.
Luckily for me, my noble predecessors on my new project have customised Bootstrap, getting rid of some stuff that's not needed and creating a 10-pixel grid.
At the other extreme is starting from scratch. My favourite framework is from Rachel Andrew:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
I have started with this template on numerous projects, and then started adding what was required. Perhaps this approach is a way forward. The idea of a library is that you take out the books you need as you need them, not a whole mobile library lorry load.
Frameworks such as Bootstrap, Boilerplate and Blueprint provide all that you need, including the kitchen sink, to get your website up and running with minimal effort.

Maybe a library should come to mean something like the JavaScript detection library Modernizr, where you configure your production build by adding the features you need.
Do let me know if there's an equivalent CSS library out there in the wild.
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.
Talkback
I thought that framework and bload were synonymous?
In the software engineering world's matter vs anti-matter:
Excellence and fast time to market are mutually exclusive.
~~~~~~~~~~
To get a better education it is sometimes not possible to choose the curriculum. Ultimately, this is okay; the lessons we don't feel inclined to learn are often those we can benefit from the most.
~ Phil Booth
Wexelblat's Scheduling Algorithm:
Choose two:
• Good
• Fast
• Cheap
Choose a job you love, and you will never have to work a day in your life.
~ Confucius
Oops I meannt Bloat
Lol, meant...