Skip to content

Jackson's Blog

Random ramblings at it's finest

Monthly Archives: January 2008

iTouch

As a christmas present from work, I got an apple ipod touch! iTouch for short. It’s almost like an iphone, except it’s not a phone. I was super stoked for about 15-30 minutes, but afterwards, I realized that I would most likely never use it solely as a music player. The fragility and relative cost …

Continue reading “iTouch”

Posted byJackson LeungJanuary 14, 2008Posted inProgrammingLeave a comment on iTouch

Factories

Today, while reading some of my PHP books, I’ve came across a simple and clear definition for what a “factory” is and I decided to share it. A factory is a class or method with the responsibility for generating objects. I’m obviously not writing this post for those who are already well-versed in the ways …

Continue reading “Factories”

Posted byJackson LeungJanuary 6, 2008January 6, 2008Posted inProgrammingLeave a comment on Factories

Timeouts

What are timeouts? Besides a form of punishment for misbehaving kids, time outs are a threshold for scripts. When you set a time out, you basically tell the script that if the execution time of the task exceeds a certain amount, do something; normally, error out. The utilization of time outs are important, especially if …

Continue reading “Timeouts”

Posted byJackson LeungJanuary 4, 2008January 6, 2008Posted inProgrammingLeave a comment on Timeouts
Jackson's Blog, Proudly powered by WordPress.