Tuesday, September 30, 2008

Side Effecting Functions are Code Smells

Side Effecting Functions are Code Smells - Matthew Podwysocki
I know the title might catch a few people off guard, but let me explain. Side effecting functions, for the most part, are code smells. This is a very important concept in Domain Driven Design (DDD) that's often overlooked. For those who are deep in DDD, this should sound rather familiar. And in the end, I think Spec# and some Design by Contract (DbC) constructs can mitigate this, or you can go the functional route as well.

Monday, June 2, 2008

Chess Problem of the Week No 3

Black to move and win material. Thanks to Tony for this puzzle.

Wednesday, May 21, 2008

Chess Puzzle of the Week No 2

Another stumper! well for me anyway, it took me twice as long as chess puzzle 1 to figure out. I hope you guys enjoy it :).

White to move mate in 2.

Thursday, May 15, 2008

Chess Puzzle of the week No 1

I have decided to put a chess puzzle on my blog at least once a week. Mainly to force myself to do at least one chess puzzle a week along with my chess playing. Hopefully these puzzles will help me improve my game.

The puzzle below was created by Max Euwe who was world champion from 1935 - 1937. White to move, mate in 2. Post up you answer if you think you have it, even better post up your answer in algebraic chess notation - I need to get used to understanding it.

Wednesday, April 2, 2008

Adding a type sysm to Ruby

An interesting post on adding a type system to ruby.
http://www.codecommit.com/blog/ruby/adding-type-checking-to-ruby

Wednesday, March 12, 2008

My groups on Scoodi.com

Just found this new feature on www.scoodi.com where I can create a link to the items I'm selling/giving away on scoodi. All I need to do is follow the steps on the my groups page which you can get to from the quick links box. Here are my items on scoodi. A nice little addition to the scoodi site.

Just as an extra I think it would be nice to be able to embed your items into another website as well, like how youtube does it. As an example with the following embed code from youtube can see a video from without the whole youtube site.

<object height=\"355\" width=\"425\"><param name=\"movie\" value=\"http://www.youtube.com/v/_Cael8grlw8&amp;hl=en\"><param name=\"wmode\" value=\"transparent\"><embed src=\"http://www.youtube.com/v/_Cael8grlw8&amp;hl=en\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"355\" width=\"425\"></embed></object>


Sunday, January 27, 2008

Lift (scala web framework) vs Ruby on Rails

I found this little comparison between the scala lift framework and ruby on rails quite interesting. The points that stood out were that using lift was a using far less CPU usage than rails and that the defects in scala were far less. I would expect scala to have mush less defects due to the type safety but it is good to see a real world comparison.

Though I do wonder how much longer it took him to write the scala code over the ruby code.