Archive for the ‘coding’ Category

JavaScript: Tools, Coding Standard and Guidelines

Monday, February 8th, 2010

We're currently devoting an hour each Monday to collectively work our way through JavaScript. Our aim is to point to the key areas of interest and improvement, and to dig into each area one by one. We are maintaining a TOC for our JS-discussions here. Development Tools Firebug is the most important development ...

Enterprise JavaScript Coding

Monday, February 1st, 2010

Not many years ago, people would giggle and think of enterprise and JavaScript as an oxymoron. Not so much anymore. If you want to be a serious actor even in (or maybe especially in) the enterprise software market, you have to take JavaScript seriously. Large parts of your product's business ...

MySQL Query Cache

Thursday, October 22nd, 2009

The following article is an in-depth look at Query Cache, mentioned briefly in our post about Caching Strategies. With Query Cache, the result set from SELECT queries are cached with the query command itself as key. Meaning that if a SELECT query initially executes in ten seconds, consecutive times the _exact_ ...

Why Pair Programming?

Wednesday, May 27th, 2009

I am a sucker for rationale. I've been struggling with rationale on the Extreme Programming (XP)-practice of pair programming for quite some time. What at first looks like one person writing code, and the other one watching, has admittedly been very counter intuitive to me. Let me share my current ...

Mother Of All UTF-8 Checklists

Friday, December 19th, 2008

I believe we have overcome all future encoding challenges. And that's the cue-word here; believe. Encoding has a way of sneaking up on you, kicking you in the butt when you least expect it. We'd like to share with you what we believe have proven to bring us from encoding hell ...

Encoding – Getting Those Strange Characters to Behave

Wednesday, August 13th, 2008

The problems surrounding encoding is slowly starting to get the attention of web developers around the world. Previously content was mainly written in English, so we only needed support for the characters used in the English language. As pages in other languages started to appear they needed a way to ...

PHP Sessions – Mysterious Timeouts Explained

Monday, August 11th, 2008

I recently found out something I think worth writing a couple of lines about. Have you ever tried to make a HTTP request from PHP to a second script and preserve the session and ending up with the request hanging? Let me give you an example. home.php: session_start(); ... $url = "http://url/admin.php?PHPSESSID=".session_id(); $fp = fopen($url, ...

Writing Responsive Code in Javascript

Thursday, June 5th, 2008

So, in the beginning all the things you've done in Javascript runs quick as the rabbit and your application feels very snappy. But after a while as your code is getting more complex and growing in size, you'll probably experience that the application is not as responsive as you wish. ...