Please shed some light on this. Or point me to some articles where this is discussed...

How should I write the code? How do I organize my libs / includes? I really don't know how to do it. Or how to start at least.

I did a search here on the forums but nothing relevant popped up.