Archive for the ‘Webdevelopment’ Category

URLs should express output-format, not source-format

Posted on July 1, 2009, 00:14, in Tip of the day, User-experience, Webdevelopment | 22 Comments

I’m the kind of guy who always tries to optimize my ways, especially when it comes programming. Over the last years I’ve worked on/against a multitude of CMS, frameworks and API’s, and quite often make some thoughts how things could be better, easier and more intuitive. One of these things are regarding how to format [...]

table-row-highlighter.js – now as jQuery-plugin

Posted on June 6, 2009, 14:37, in Webdevelopment | 1 Comment

In an effort to make it easier integratable to existing environments, I have now created a jQuery-plugin as well. Thanks to Mats as well for suggesting it! See the original blogpost – for information of the concept – or go straight to the demo-page or jquery-demo-page to watch it in action.

table-row-highlighter.js

Posted on June 4, 2009, 00:50, in User-experience, Webdevelopment | 4 Comments

This article is about my solution to an issue/request mentioned in my “Usability-tips for your application (Part I)” regarding highlighting corresponding table-rows when keys are pressed.

Take a look at the demo-page and play a little around.

Long live Semantic HTML

Posted on June 3, 2009, 00:24, in Webdevelopment | No Comments

Some time ago when I was hired to refactor an existing CMS, I came across som nice pieces like this: <table border=”0″ width=”100%”> <tr> <td class=”h1″ align=”center”>Page-header<td> </tr> </table> Just gotta love it!

Tip of the day: Loose comparisons in PHP gives edgy behaviour

Posted on May 27, 2009, 10:23, in Tip of the day, Webdevelopment | No Comments

This is an occasionally recurring issue: Using loose comparison (i.e. “==”, “!=”), instead of strict (i.e. “===”, “!==”), in PHP can give some unexpected results. Some of those are pretty logical – like an empty array compared to 0 or false, returns true – but others not quite that logical. Example // returns true “string” [...]