Web Development (7)
Google and HTML/CSS Code Quality
For much of Google’s life time there have been few Google web pages of high code quality. That had changed over the last years, but now there are regressions. On the rise and fall of Google’s websites.
#134 · · html, css, conformance, quality
CSS, DRY, and Code Optimization
Why we should minimize repetition in style sheets—perhaps through using declarations just once—, focus more on CSS optimization, and consider that avoiding problems is also a way of solving them.
#133 · · css, maintainability, optimization
On Declaration Sorting in CSS
I keep on seeing people advocate to sort declarations “by type.” And every time I wonder, why is this idea still going around? Type sorting is extraordinarily ineffective, for it’s extremely slow and consistently unreliable…
#132 · · css, maintainability
HTML and Specifying Language
Questioning the importance and ways of marking up language in HTML documents, in particular changes in language.
#131 · · html
Code Responsibly, Explained
A professional web developer focuses on at least ten priorities in his work. That’s the populist claim Code Responsibly has made since 2008. It was time to explain why these things matter.
#130 ·
On Web Documents and Web Apps
I’ve just elaborated about research and production code, and why that distinction matters. And I hinted at but put off another distinction: that between web documents and web apps. Pronounced distinction seems important to protect existing document practices…
#129 ·
All Code Is Not Equal: On Research and Production Code
Web development is at a point at which we need to make more fundamental distinctions. One of them is a more determined one between web documents and web apps, another one is between research and production code.
#128 · · quality
5 Questions Web Developers Always Need Answers For
In web development, just as in other fields, it can easily appear as if there are clear-cut solutions for everything. That’s at least the case for many of us neurotic perfectionists, as our world is built on clear-cut solutions. Alas, there aren’t always, and here are five general questions to consider.
#127 ·
On Links and Accessibility
Hyperlinks and the underlying ubiquitous <a> elements are what make the Web. Just a few weeks back, Christian Heilmann wrote a little about why and how links are important; here it’s about accessibility aspects.
#126 · · accessibility
CSS: When to Use Generated Content
Generated content means a special option in CSS to embed content in documents. It’s achieved through the content property. Fast forward, generated content should only be used for non-critical content; there it can be a very sharp instrument.
#125 · · css
HTML Explained in 123 Tweets: The Google #htmltuesday Archive
Did you know that Google’s Webmaster Team tweeted short statements about all HTML elements, every week, for two and a half years? It was called “#htmltuesday” and ran from 2011 to 2013. All of these tweets are now available in one place: here.
On Writing a Book With Google Docs and Amazon KDP
Google Docs is okay to write short books and when making limited use of the comment feature. Amazon KDP’s HTML format is a technical disgrace, and Amazon needs to fix it. A few thoughts and tips on completing a book using either.
#123 · · misc
CSS, HTML, and the Problem of Spec Fragmentation
We have not one but two fundamental problems with CSS. One is unrestricted growth and complexity leading to poor understanding and poor code. Another one is spec fragmentation, also an issue with HTML, which results in inefficiencies. We should look for a better balance.
“No” to DRM in HTML
It has been quiet around DRM lately so I like to share my opinion, in brief: DRM doesn’t belong into nor anywhere near HTML.
#121 · · html
The Curious Case of Breadcrumbs in HTML
We had an interesting thread about breadcrumbs on W3C’s public-html the other day. At first just targeting delimiters, it spawned a debate about the appropriate markup. Here’s my view on breadcrumbs in HTML.
About Cost in Web Development
Cost is an interesting topic. Oftentimes we think of cost as in “this costs so-and-so much.” Like, the software license costs $2,500. Or three man hours cost $450. I’m not an economist but I like to think of this as something like primary cost. Yet, there’s more…
#119 ·
A URL Policy for Web Projects
Do your projects suffer from URL inconsistencies? I just noticed how mine do. I also noticed that I did some unnecessary things, like omitting protocols when they were actually useful. And I noticed that I’ve seen similar problems in corporate projects before. So I jotted down a quick “policy.”
#118 ·
Object-Oriented HTML, and OOCSS
“Object-oriented CSS” is the idea of treating page elements as objects, giving all these objects classes, treating objects’ classes as single entities in style sheets, and taking it from there. I reviewed the old OOCSS site and Smashing Magazine’s introduction.
How to Order CSS Selectors
There are a number of ways to write style sheets. The domain of style guides, many of them go into some detail. What I, despite my work on a number of guides, have so far missed, is a reference to sort selectors and rules, as proposed here.
#116 · · css
The CSS Problem
CSS is growing too large while CSS 2 has not nearly been understood by authors. This non-sustainable growth is a big problem for CSS.
#115 · · css
On Browser Testing
The primary goal for cross-browser testing is to make sure that documents are usable and consistent across different user agents and devices. Even if you understand this to include both functionality and design, the definition of “usable” is interesting.
#114 ·
HTML and Non-Script Styling
If you are to style a document differently based on whether certain technology is available, you should keep two things in mind: HTML itself is static and separation of concerns is important for maintainability…
#113 · · html, maintainability
Maintainability: One Story and Three Concerns
To make this a little story, for a long time in my career I wasn’t very concerned about maintainability. I was maintaining projects but didn’t have an idea about whether what I maintained was actually effective to maintain. I got a sense that things weren’t quite right…
#112 · · maintainability
“window.scrollTo()” or: When to Stay Clear of User Agents
If you were to ask me whether you as a web designer or developer should do anything about user agent issues, my answer was a clear “no.” It’s not your responsibility. You may lack important insight into decisions made on the user agent side…
#111 ·
On Semantics in HTML
As web developers we like to talk about “semantic markup,” a somehow inaccurate short form for “markup that is meaningful and used how it’s supposed to be used.” But where is all that meaning coming from? Let’s take a look.
Print Style Sheets and URLs
Print style sheets are awesome. They’re easy to write, too. Site owners and developers who care about print typically know what to do. Alas there’s one thing that’s done rather the wrong than in any right way: printing URLs…
Web Development Principles: Develop for What Is, Not What Could Be
For any given project, web developers fare best when focusing on what is, not what could be. To fend off the first misunderstandings, that focus includes what absolutely will be.
#108 ·
Exposing Reset Style Sheets
Finally, a Chrome extension to highlight alternative approaches to CSS.
#107 ·
HTML, “@width”, and “@height”
As the width and height attributes are to remain part of HTML, limit their use. The reason to avoid @width and @height is that they are presentational and hence constitute potential maintainability issues.
#106 · · html, maintainability
Testing Tricks: CSS Bookmarklets
On complex development environments and CSS bookmarklets as a testing complement. Complement as in you’ve done everything you can but want to err on the safe side.
#105 · · css
One Photo: Reset Style Sheets
It never gets boring.
#104 ·
The Secret of Web Development
Playfulness.
#103 ·
CSS: How to Host Right-to-Left Styling
For international projects, don’t use separate style sheets for right-to-left (RTL) styling: use natural (@dir) or artificial (@id, @class) hooks instead. The only exception are unbearable performance issues due to hundreds of RTL rules…
#102 · · css, maintainability
On Solutions
Solutions require problems. If you don’t have a problem, you don’t need a solution. This is exactly why you should, whenever someone proposes a solution—which includes design and technical changes—ask what problem that solution solves…
#101 · · misc
CSS Validation and Vendor Extensions: Throw Warnings, Not Errors
If you understand valid code as a quality baseline, you validate your code. If you validate style sheets, you come across errors like “Property -moz-border-radius doesn’t exist’”…
#100 · · css, conformance
Real Web Developers Don’t Need Debugging Tools
Bottom line: Try to limit your use of web dev debugging tools—like Firebug or Chrome’s Developer Tools—in order to grow your skills.
#99 ·
“px” Is Dead, Long Live “px”
It’s over. There is no ban on px anymore. The only reason why we as web developers had to adjust coding practices were user agents that failed to meet user agent accessibility guidelines.
#98 · · css
How to Become a Solid Web Developer, the Short Version
Every once in a while people ping me on how to master web development and design. Given how much there’s still to learn for me this makes me blush. Chronically short on time I typically reply in just a few sentences…
#97 ·
WDR #4: Having Conversations in HTTP
The Web Dev Report, issue #4.
#96 ·
HTML/CSS Frameworks: Useful, Universal, Usable, Unobtrusive
A high quality HTML/CSS framework needs to have four attributes: useful, universal, usable, and unobtrusive. The four U’s.
#95 · · html, css, frameworks, quality
The 3 Ground Rules for Writing HTML
The fundamentals every web developer should know: on respecting syntax and semantics, avoiding presentational and behavioral markup, and leaving out everything that is not absolutely necessary.
#94 · · html, conformance, semantics
HTML, CSS, and Web Development Practices: Past, Present, and Future
Articles with a title consisting of more than 15,000 characters don’t need an introduction.
#93 · · html, css, maintainability
Website Optimization Measures, Part VII
In this episode: Unquoted attribute value syntax, q elements, Google Friend Connect, feed styling, work/life balance. Served in no time.
#92 · · optimization
“HTML 5” or “HTML5”?
It’s “HTML5,” not “HTML 5,” declares the most recent post on the WHATWG blog. A seemingly trivial matter, yet it’s inconsistent.
#91 · · html
The True Advantage of CSS
Despite CSS being around for a long, long time, there are still some myths around it. Reading Mike’s post on CSS evangelism again I couldn’t only relate to Mike’s concerns, I also felt reminded of…
#90 · · css, maintainability
Diagnostic Styling Reloaded
Eric cultivated the concept of “diagnostic styling,” meaning using CSS to track down problems within HTML documents. I’ve been working with diagnostic style sheets for general quality assurance…
WDR #3: Optional Tags, Unquoted Attribute Value Syntax
The Web Dev Report, issue #3.
#88 · · html
Microformats, Key Flaws
I like the idea behind microformats, but I’m not convinced of the way that idea is brought to life. I see three major flaws that appear to make microformats stand in their own way.
XHTML, RIP
Let’s end this week of morbid posts: The XHTML 2 Working Group is expected to stop their work end of 2009. “Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009…”
#86 · · html
“handheld” Media Type, RIP?
Website authors don’t use handheld as it’s barely supported; mobile device manufacturers don’t support handheld because it’s barely used. This is kind of the situation I think we’re facing, and it’s a problem.
#85 · · css