With HTML5 there came the great power of using the browsers built-in validation methods for <input> fields. Some days ago I heared a co-worker arguing that it's not possible to style the error messages generated by the browser. It's just wrong. You can style them, they are using pseudo classes and, of course, every browser uses different pseudo classes:
Firefox: https://developer.mozilla.org/en/CSS/%3ainvalid
Chrome [Webkit]: http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css (search for 'bubble' there)
Sadly, if you want to use it today, you have to implement a fallback for IE.
programmer: a device to convert coffee into software
programmers: fixing other people's mistakes since 1908
programmer: are expected to know how to do things they've never done before
and estimate how long they will take
There are 10 types of people in this world. Those who know base 3, those who don't & those who expected a binary joke.
Dienstag, 30. August 2011
Donnerstag, 25. August 2011
Coding Backwards
Now this is a really cool idea how to get a gerneral idea of the design you really need (and this is NOT the design that comes to your mind FIRST):
"I decided that I’d [...] write out a script using the yet unwritten API. I’d reverse-engineer a good design by pretending I’d already written one!"
"A better design quickly appeared when I forced myself to preemptively eat my own dogfood. Instead of shoehorning use-cases into a class structure I’d already designed, I coded backwards and the opposite happened: a design evolved from daydreaming about an API that I’d like using."
SOURCE: http://jameso.be/2011/08/19/coding-backwards.html
"I decided that I’d [...] write out a script using the yet unwritten API. I’d reverse-engineer a good design by pretending I’d already written one!"
"A better design quickly appeared when I forced myself to preemptively eat my own dogfood. Instead of shoehorning use-cases into a class structure I’d already designed, I coded backwards and the opposite happened: a design evolved from daydreaming about an API that I’d like using."
SOURCE: http://jameso.be/2011/08/19/coding-backwards.html
Abonnieren
Posts (Atom)