I finally decided to buy the complete (up to now) catalogue of Jonathan Coulton songs. He is the guy who brought is the fine ‘Code Monkey’ and the wonderful song from the end of Halflife Portals But, and heres a…
…. never changes it’s spots.
or so the old saying goes. Well, its LEOPARD day for me. And while it IS true, that spots they do not change, the new version of MACOSX is certainly SHINEY. Its also prompted me to clean up my desktop.…
Bug, Buuuug, *BUG*!!!! I KNEW it.
I am a stalwart follower of the PEEPCODE screencasts. I particularly liked the series about RSPEC. But, in reviewing the code for it, and using the code subsequently, I found this little gem. class Hash def except(*keys) self.reject{|k, v| keys.include?(k…
in_batches_of
Rails is nice. Rails is REAL nice, but, you would expect me to say that, I am a rails developer. One thing that rails is not nice about is efficiency. It’s elegant, its compact, but, the simplest things can have…
History Repeats?
Oh, I hope not. I loved Java. Java it its YOUTH, when you could buy two books, the tutorial and the reference, and that was all you needed. Before Swing, before Beans, before it exploded into the publishers wet dream…
Fifteen tracks, 3 songs.
Actually, 2 songs. I like music, I love music. Almost all music. From Simon & Garfunkel, AC/DC, Emanem, Limp Bizkit, Holsts planets, The Nutcracker, Suzanne Vega, Jean Michel Jarre, Screamin’ J Hawkins, all sorts of music. But, when I buy…
Agile ain’t about FAST….
… it’s about GOOD. Using Agile techniques, Rails for instance, or any of the other new frameworks popping up more quickly than mushrooms on a cowturn in a darkened room, and things like TDD, BDD, SPEC driven whatever, is NOT…
A Peepshow anyone?
Nudge Nudge, Wink Wink, Say NO MOWER! or so the old sketch goes. Well, here is a peepshow that even a mother could love. I am, of course, talking about the PEEPCODE screencasts. Wonderful episodes of skirt lifting, revealing the…
Models make decisions, views and controllers ask PERMISSION
Rails uses MVC. Its important to correctly partition what each section does. Views and Controllers should NEVER make decisions. Models should make decisions, and controllers and views should ask models for permission. For instance, if you have a a User…
Users, RSPEC and Behaviour.
The classic way in rails of implementing model behaviour control of controllers and views is to decorate your model classes with methods which expose behavioural information. For instance, for this message, we will consider an application which has users and…