News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Dzone.com:
Object Calisthenics
August 19, 2011 @ 10:15:10

Giorgio Sironi has a new post on DZone.com today with a look at what he calls "object calisthenics", a sort of ">workout exercise for you to do to flex your object-oriented programming skills.

Calisthenics is a Greek-derived term for exercises, in the gym sense. I have object calisthenics, exercises for object-oriented programming, around for a long time and saw them as fascinating, but never got the time to try.

The challenge he lays out includes rules relating to indentation levels (really complexity levels), wrapping primitives in strings, small entities and using first-class collections. To illustrate, he works through a solution to the prime factors kata and breaks it down into the eight different rules complete with code examples.

0 comments voice your opinion now!
object calisthenics kata challenge


blog comments powered by Disqus

Similar Posts

DevShed: Introducing Builder Objects in PHP 5

PHPMaster.com: Simplifying Test Data Generation with Faker

Lorna Mitchell's Blog: Proof that PHP 5.4 is Twice as Fast as PHP 5.3

Wojciech Sznapka's Blog: Accessing private object property from other object in PHP

DevShed: Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach


Community Events





Don't see your event here?
Let us know!


interview podcast list laravel opinion language version install composer release extension introduction symfony api community conference configure voicesoftheelephpant unittest series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework