background preloader

Insoshi/insoshi - GitHub

Insoshi/insoshi - GitHub

Lovd By Less -- Open Source Social Network -- Who loves you, baby? Community Engine | A Social Networking Plugin for Ruby on Rails WordPress Mingle | Where WordPress Professionals & Enthusiasts Show Up to Mingle The Open Graph Protocol France → Home How Does One Use Design Patterns In Ruby? How Does One Use Design Patterns In Ruby? This guest post is by Chee Yeo, a 32-year-old Ruby Rails sometimes IPhone programmer from Glasgow, Scotland. He enjoys hacking around Ruby and exploring other new technologies in his day job as a developer. In his free time he enjoys traveling and exploring the beautiful sights of the British Isles. As software develops through requirements and scope changes, it tends to become ‘bloated’ through its increased complexity. The term was coined by the reknowned ‘Gang Of Four’ (GOF) back in the nineties when the book ‘Designing Patterns: Elements of Reusable Software’ was published. 1. Design systems whereby the parts that change often are isolated from the parts that stay consistent. 2. Reduce your objects to the most general type possible. new_car = Car.new new_care.drive(10) The above will work as long as there is only one type of transport – cars. An improved version of the above could be something like this: 3. 4. For example:

Elgg communauté francophone

Related: