Friday, 28 October 2011

Google Chrome or Chromium

I found out yesterday that Google Chrome (also called Chromium) is open source ... I decided to look at the code ...

This experience made me realize that using design patterns, macros, heavy object orientation can be good, but also that it can be a bad thing. Google Chrome is such a large scale project that the leading developers need to use object orientation to that extent, but in small scale projects (i.e. solo projects) there is nothing wrong with using code like

if( A ) then B
else if ( C ) then D

instead of using objects for the same simple purpose. The point I realized is that just because it is heavily object oriented does not mean that the logic is correct.

The question is really, what should a solo developer do when faced with the task of writing a potentially commercial app? Heavy object orientation or good plain 'ol code? I am really not sure. I think that actually the good plain 'ol code technique is much more flexible ... so perhaps old-school procedural programming (i.e. everything in one big page of logic) will make a come-back later with the title "flexi-code".

No comments:

Post a Comment