Forum Moderators: coopster

Message Too Old, No Replies

OOP php books

Advice on structuring needed

         

Matthew1980

9:43 am on Jan 5, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all at WebmasterWorld!

I need to get guidance, I have being learning OOP now for about a year (thanks to Eelixduppy, Coopster & Rocknbil for direction) but I find my self understanding the concepts but not structures - can anyone recommend a decent starting point for a book that can help me on understanding frameworks and structures, as the project I am embarking on has the potential to be huge, and kinda daunting, it's an intranet site for internal use at work, but me being me, I want it done correctly, as they are offering incentive on a good system upon completion!

The only thing as I like to do, rather than let the user define settings after class instantiation is to use __construct() to 'import' user settings from a specific file during runtime, if the expected values are not filled in the system reverts to defaults... Is this a good way or are there better ways to do this?

But my fear is: when does a class become too big? Is there a limit to file size? Or am I looking for problems that aren't there?

Also importing methods from other classes, debugging mechanisms, is this a 'good practise' thing to do?

Any advice pointers or alternatives, greatly appreciated!

Cheers,
MRb

coopster

3:53 pm on Jan 14, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Seems as if nobody reads, MRb :)
I cannot recommend any books on the subject. I am self-taught, trial and error. I typically hit the online manuals first, learn as much as possible from the developers and their examples. After that, it is applied practice. Maybe I should write a book ... :P