Archive for June, 2007

Automatic Code Generation Utilities

Tuesday, June 26th, 2007

Yeap. This is my first technical article. And a not very impressive one at that. While my really cool friends like Chuen Yang is dabbling with Google Maps and its GWT’s impressive development framework, and Herryanto Siatono is busy enjoying himself with Ruby and Rails… here I go writing some out-dated stuff on PHP. PHP? Thought that was passe. Its a little like preaching to the current software community about the advantages of COBOL for financial applications.

But what to do? Small company mah… so have to think of solutions that are easy to develop (so that it is easily outsourceable) and cheap to deploy.

Easy to develop
When we talk about ease of development, I am limited to either PHP or .NET technology. Java is definitely not something that a fresh grad can just pick up from reading a book (even if he is incredibly smart, he will probably get bored off going through the stacks of xml configurations… and yes… those configurations are not accessed through a friendly IDE like Microsoft Visual Studio).

Ruby n Rails is an incredibly RAPID development tool. Problem is, after reading Herryanto Siatono’s blog, I find that the entry level is too high. It appeals to only top-notch programmers, and we all know top-notch programmers like to do super cool projects like http://bookjetty.com, http://searchhouse.sg. Where got time for simple functional database applications?

So I am left with ASP or PHP.

Cheap to Deploy
Well, this second point wipes out .NET as an alternative. Microsoft .NET only runs on Windows server and that almost doubles the hosting costs. Such costs becomes even more real when our infrastructure knowledge must span across both the Windows and Linux domains. Boy… give me a break. Just linux alone gives me a big headache….

So that leaves me with PHP.

(more…)

Friction Formula

Monday, June 4th, 2007

Recently, I am beginning to get the feeling that many things in life are inter-related to one another. After reading the Origin of Wealth by Eric D. Beinhocker, who tried to explain how wealth was generated in an evolutionary way… using an argument similar to Darwin’s the Origin of Species…. I begin to see how science can be easily used to explain certain aspects of our society and everyday life.

I was just talking about a friction formula some time back… and begin to see some relevance in my life. Basically:

Frictional Force = Coefficient of Friction x Weight of Object
Coefficient of Friction = k x Surface area in contact

The Coefficient of Friction depends not just on the materials in contact (as denoted by k) but also the amount of surface area the 2 materials are in contact with each other. In our daily lives, I see the following relationship:

Friction with each other = Compatibilty between 2 persons x Amount of time in contact with the other person

I believe that is one of the key reason why families are full of internal quarrels and squabblings (and no… I did not come out with this formula because of my family squabbles….) They might have been pretty compatible (after all they are people of roughly the same genetic combination), but due to the large amount of time they spend with each other, they will inevitably be irritated by each other’s quirks at some point of time.

Some people say that you’ll enjoy the first 10 years of marriage… the next 10 will be so so…. while the last ten… you will be like dragging it to your grave. Hmmm.. but those were the days when people got married at 30 and die at 60. Today, men live till 76, while women live till 78.

So what are we gonna do with the last 16 or 18 years?

No wonder people are getting married later….. and later…..