phpfunk.com


Archive for March, 2010

the importance of design patterns

Thursday, March 18th, 2010

Once you get a grasp of object-oriented programming you will find yourself faced with the challenge of trying to create good classes. What are good classes? They obey the principles of object-oriented design: 1) has a single purpose 2) is a blackbox (ie it has interface you can use but you do not know how [...]

Learn efficient mysql

Wednesday, March 17th, 2010

Having a good understanding of database schema design, how to use indices and write table joins is important for any developer. If you use mysql there is an excellent book that covers such information in a clear and concise manner. Click on the cover image to visit amazon.com:

learn jquery in five minutes

Thursday, March 11th, 2010

I am switching from prototype to jquery as a javascript library. So far so good. Here’s how you do the basic tasks you need to do: Selecting an element by id having the id “fubar”…doing this you get a jquery object and get use all the methods and attributes thereof: var elem = $(‘#fubar’); Create [...]

object oriented javascript: inheritance

Thursday, March 11th, 2010

Here’s the short explanation of how to do inheritance with javascript. This was the best site I found on the subject and I tell the same story albeit tersely. I defined a base class, called Base just to be clear: Base = function() { } Base.prototype.say = function(foo) { return foo; } Then I defined [...]