me

Archive for the ‘Uncategorized’ Category

Site Redesigned. Finally!

Saturday, July 25th, 2009

So finally I decided to revamp the look of the blog. It took me nearly three days to get it done. The code was written on PHP Designer 2007 and graphics were made on Gimp. The CSS used is valid. Usability and accessibility issues were considered while designing.

Did you like the design? Or found a bug? Please post it in your comments.

Creating a class in PHP

Wednesday, July 1st, 2009

With the release of  its fifth version PHP has become a multi paradigm language(well, mostly) providing extensive object oriented support. I have been trying my hands on some of the new oo features in PHP.

Defining a class

A class provides a blue print for objects. It is, in simple terms, much like a datatype.  It contains properties and methods. Properties are the variables linked to a class and Methods are the functions.

A class is created by the following code

class Myclass
{
// properties
// methods
}

Thats it!

This class contains nothing but some comments. It wont do anything but all that is being done by us is defining the class.

Beautiful Text-Editors For Programming Productivity

Saturday, June 13th, 2009

One of the reasons why I loathe Notepad for doing my programming is because of its unpleasant looks. I believe that to be productive while programming its important to choose a text-editor that renders my codes beautifully. The syntax highlighting not only helps me eliminate syntax errors but also makes the code look pleasant.

For the past two years I was having Oracle as a part of our computer course in my school. I realized that the reason why I didn’t like the SQL*PLUS editor that is bundled with the package was because of the bold courier fonts. So I switched to a much beautiful courier font and it made the code much readable. It is a bit trivial to change the fonts in oracle but this trick makes it possible.

I use PHP Designer 2007 for most of my programming and I love its subtle, elegant looks that blend naturally, giving the code primacy. Please post the text-editor you use whose beauty enhances your productivity.