Consider this quote by Aristotle: “Excellence is an art won by training and habituation: we do not act rightly because we have virtue or excellence, but we rather have these because we have acted rightly” Wow. If this is a true statement (and I believe it is), then a man ought to build his life [...]
A warm fire, a cool night; your lips on the tea cup. A savory liquid fills the soul like early morning light. These years have been dark; despair an old friend. A fortitude beats yet inside – a muse that inspires, a desire to fight. Fuel given, the fire builds. This tiny house a beacon, [...]
I really, really dig 5.4′s traits. Let’s review: Through the ‘use’ keyword, traits let you include shared functionality in a class without relying on inheritance or encapsulation of another class. With the exception of declaring static variables (you can’t), and referencing parent (will call the class you’re using the trait in), traits behave just like [...]
Posted in PHP, Programming |
PHP has been getting consistently better over the past few years. One new feature that I’m really pleased with is traits, which is similar to multiple inheritance in Java, friend classes in C++ or mixins in Ruby and Python. Basically, traits allow your classes to share functionality without constructing any objects or inheriting from any [...]
Posted in PHP, Programming |
For the past few months, I’ve been exploring software design patterns, both at their roots and in their modern implementations. I’ve been exploring new languages and deepening my understanding of the languages that I already use. Man can I ever tell ya, it’s been exhilarating. I started reading a new book last night, given to [...]