Part of the EllisLab Network
   
 
The best way to learn Design Patterns?
Posted: 21 March 2007 04:51 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  83
Joined  01-12-2007

How did you learn them? And what helped you develop an understanding of how to use them?

I have read two third of PHP 5 objects paterns and practice and when i read the patterns i understand them for the most part but i don’t feel equipped with the knowledge to apply them to my current programming.

Also. do you still make use of design paterns using CI or does CI make that unnecessary?

Profile
 
 
Posted: 22 March 2007 07:45 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  173
Joined  11-29-2006

You can learn about patterns just about anywhere—books, Internet, friends, colleagues— they are all good resources. The best way to learn to understand them is to be faced with a problem that requires a pattern to solve it. The Factory pattern solves a problem that most developers face. Once you’ve understood the problem and recognize a better way to do it, you learn why the pattern exists in the first place. Then it becomes second-nature.

CI does not make using patterns unnecessary, but it does use a few in the framework. Using other patterns depends on what your application is doing, and how it’s being constructed.

Profile
 
 
Posted: 24 March 2007 11:08 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  37
Joined  02-09-2007

Here’s a link to a pretty good site when it comes to applying design patterns in php:
http://www.patternsforphp.com/

Also, You could purchase one of Head Firsts publications on the subject @ http://headfirstlabs.com/books.php

I refer to their Object-Oriented Analysis & Design and Design Patterns regularly.

 Signature 

dev: Ubuntu 6 / Komodo 4 / CI 1.5
prod: Fedora Core 4 / Apache 2 / PHP 5 / MySQL 5 / CI 1.5

Profile
 
 
Posted: 25 March 2007 04:02 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  83
Joined  01-12-2007

Thanks, that’s a very nbice website, i’m checking out the book aswell.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64453 Total Logged-in Users: 27
Total Topics: 80958 Total Anonymous Users: 0
Total Replies: 435680 Total Guests: 184
Total Posts: 516638    
Members ( View Memberlist )