tags:

views:

159

answers:

2

Hi Everyone....

I am a programmer trying to learn to code in the object oriented paradigm... I mainly work with PHP and i thought of learning the zend framework... So, felt I need to learn to code in OO PHP....

The problem is, having done code using functions for quite a long time, i just can't get my head to think in the OO way....

Also felt that probably I am not the only one facing this problem since the beginning of time...

So, how did you people learn object oriented programming... especially how did you succeed in "unlearning" to code using functions... and learn to see you code as objects...?

Is there any good resource books or sites where one could find help...??

Thanks for sharing your knowledge and experiences...

+3  A: 
  1. Read other people's code - people who you know are good developers
  2. Books/articles that teach "idomatic usage" of the language
  3. (Avoid anything with the words "in 21 days")
hamishmcn
+1 for reading other people's code.
jeremynealbrown
+4  A: 

It takes time.

Moving from procedural programming to object oriented is difficult. These days, many people start with object oriented, so they don't struggle with this paradigm change.

  • Learn about the fundamentals of OOP and keep referring to them to start with.
  • Read OO code - there are lots of open source projects out there that you could sample.
Oded
it takes a lot of time...
Arnis L.