Archive for the ‘Tip of the day’ Category

URLs should express output-format, not source-format

Posted on July 1, 2009, 00:14, in Tip of the day, User-experience, Web development | 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 […]

Tip of the day: A good old SSH-timesaver

Posted on June 10, 2009, 10:50, in Tip of the day | No Comments

Combining SSH-aliases with public key authentication, and then I reduced the amount of typing by about 34 chars (from 41 to 7) for each time I connect to one of my usual SSH-servers. In a day that’ll probably save enough time to go and get me a nice cold beer. Mmm! Ah, those little things 🙂

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

Posted on May 27, 2009, 10:23, in Tip of the day, Web development | 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” […]

Little ad-bummer by komplett.no / Tip of the day

Posted on May 26, 2009, 21:15, in Humor, Tip of the day | No Comments

Just a little amusing notice. I came recently across some ads by Komplett.no via Google Ads. The title read “The Legend Of Zelda?”, which – when clicked – took the user to direct search in komplett’s catalog. Too bad the search returns zero hits. Rephrasing the query to “legend of zelda” instead of “the legend […]