Articles in the Articles Category

The programming “zone”. Fiction or myth?
By paan
Posted in Articles, Rants on 4 August 2008
Stats: 1,417 views and 3 Comments

The programming craft
Programming is a creative process. Despite the technical nature of programming codes, the process of coding is involves a lot of creative thinking and problem solving. Paul Graham talks of “Hacker and Painters” and compares the work of us code ninjas to the creative process of painting. And like all other creative task [...]

6 tips to make your fellow coders love you
By paan
Posted in Articles on 30 July 2008
Stats: 2,917 views and 9 Comments

6 tips to make your fellow coders love you
Code readability is paramount in an environment where you are not the only one reading and writing the code. And even if you are the only developer of your system, I know more than a few coders that read a code that they wrote last week and [...]

A shell script for creating a selfsigned cert.
By paan
Posted in Articles on 25 July 2008
Stats: 867 views and 1 Comment

Intro
A selfsigned cert is a digital certificate that is created by using a certification authority certificate that is issued by yourself. This is usefull for backend communications between servers that need the protection of a SSL tunnl but don’t need the ‘assurance’ provided by a regonized and trusted third party certification authority (and the charges [...]

Filter you output with HTML Purifier
By paan
Posted in Articles on 21 July 2008
Stats: 745 views and No Comments

Now that you set up a rich text editor to you phpLD directory you would want to set up some filtering to prevent sites from doing nasty things like maybe insert a javascript in your site. Most phpld templates is already doing this. But they are using the smarty ‘escape’ modifier which will escape ALL [...]

Rich text editor
By paan
Posted in Articles on 21 July 2008
Stats: 715 views and 1 Comment

After seeing countless phpld directory submission form. One thing strike me as strange. It’s that they still use your plain old text area as the input field for the site description. I’ve always thought that a rich text editor will be so much nicer. So long as you keep an eye on it and filter [...]

Powered by phpLD
By paan
Posted in Articles on 21 July 2008
Stats: 487 views and No Comments

Powered by phpLD is a series that I made to follow me as I poke under the hood of phpLD. I will share my experience as a first time directory owner for the directory site xerie.net and also my experience as I go poking into the source of phpld. I hope that the whole experice [...]

Wordpress 2.6. An improvement all around.
By paan
Posted in Articles, News on 17 July 2008
Stats: 1,819 views and No Comments

Intro
For the past couple of days I ‘ve been breaking in the new wordpress 2.6. And all around I am impressed by the improvements of this version. But before I go to any details. The most obvious questions is of course “Should I upgrade?”. My answer to this is a big YES!. This main reason [...]

Defensive programming
By paan
Posted in Articles on 8 July 2008
Stats: 425 views and No Comments

Intro
No, defensive programming is not getting all defensive when someone comment on your code. Defensive programming is the art of designing software that can handle any “bad” situation gracefully, this involves writing codes that handles error that should not, in normal program execution, happen.
For example you have a calculator program that after you push the [...]

PHP web based application performance tuning
By paan
Posted in Articles on 29 May 2008
Stats: 863 views and No Comments

I’ve been doing a lot of research on this lately, both for my personal sites and also for work. And by using some of the techniques here. You can increase the responsiveness of you web application.
I try to make this as general as possible but mostly they apply to php/mysql development as that is what [...]