SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
-
Sep 26, 2005, 04:29 #1
- Join Date
- May 2005
- Posts
- 91
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
simple GPL PHP OOP projects to learn from
Hello.
I'm hoping for a few recommendations on simple GPL OOP projects that I can inspect the source code to learn from. I'd like to keep the relative complexity low. The main things I'm looking for are:
- What coding standards did they use?
- What logic did they employ
- directory structures
- the templaing (if any) system
- just a chance to read other people's well-written, OOP PHP code
Any suggestions? Thanks!
Derek
-
Sep 26, 2005, 05:37 #2
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Search for a member on this forum named Voostind and read all his posts.
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
Sep 26, 2005, 06:12 #3
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Look over SimpleTest and WACT from my signature.
Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Sep 26, 2005, 06:30 #4
- Join Date
- Oct 2004
- Location
- Sutton, Surrey
- Posts
- 259
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Take a look at the sample application on my site (URL in my signature). There are also lots of articles which explain the philosophy behind it.
-
Sep 26, 2005, 06:53 #5
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 67
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
o The PEAR coding standards will be your guideline for keeping your code readable. In fact, almost everyone who does serious PHP programming follows these guidelines.
o I'd recommend a book instead of peeking into other peoples sources, since chances are high that other ppls code is too complex or too simple to learn from it.
There's a book on Java that explains what OO can do and what it can't do, what it stands for and what it doesn't stand for. It shows you some basic principles you should always keep in mind when doing OO. Unfortunately, I can't remember the name of the book, I'll edit my post later on.
o When you're through with this, you should take your time and get into Design patterns; I'd recommend Fowlers PoEAA and even sweatje's book on design patterns in PHP is strongly recommended.
o get known to Test Driven Development, since it can shorten the time you put into designing your classes.Last edited by siteartwork; Sep 26, 2005 at 07:26.
-
Sep 26, 2005, 07:04 #6
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There's a book on Java that explains what OO can do and what it can't do, what it stands for and what it doesn't stand for.
http://www.mindview.net/Books/TIJ/
Also, not to forget about Martin Fowlers PoEAA (Patterns of Enterprise Application Architechture) which comes highly recommended. Also take a look at Fowlers book on Refactoring - I'm thinking of buying it now myself since a number of members have spoken highly of it - which you can find out more about these books at
www.martinfowler.com Bookmark this link for future reference, you'll be going back to it. Definitely.
-
Sep 26, 2005, 07:25 #7
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 67
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
Although I like Eckel's book, I think it does focus too much on language specific details in this case, whereas OOTP handles the subject in a more abstract way.
-
Sep 26, 2005, 10:11 #8
- Join Date
- Jan 2004
- Location
- 3rd rock from the sun
- Posts
- 1,005
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm hoping for a few recommendations on simple GPL OOP projects that I can inspect the source code to learn from. I'd like to keep the relative complexity low. The main things I'm looking for are:
* What coding standards did they use?
* What logic did they employ
* directory structures
* the templaing (if any) system
* just a chance to read other people's well-written, OOP PHP code
Provide examples of small apps that show the use of common patterns, properly written with tests etc as deraka suggests - and creating a sustainable PHPPatterns site that's "community driven"?Last edited by paulyG; Sep 26, 2005 at 10:16. Reason: clarification
-
Sep 26, 2005, 10:12 #9
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've seen that show up on Amazon a few times. Does anyone else have this book to recommend?
Thinking in Java is a bit language restrained I suppose, but what I like about it is, that it's very thorough and very much in depth about OO even though it's towards the Java language, a lot of it you can take with you away from Java.
I've had the download for a year or so now, and I'm still only browsing through it due to a lack of time, and the point that I need to be in front of the PC, to be able to read it - I don't fancy printing it out
Maybe I should put it on my Amazon wish list huh? Hint.. Hint
-
Sep 26, 2005, 10:52 #10
- Join Date
- May 2005
- Posts
- 91
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sincere thanks all. I can't believe I didn't think of the PEAR coding standards docs... d'uh. Thanks.
Derek
Bookmarks