Duplicate Code in Your Tests
Sadly, DRY has become a philosophy that is dogmatically and blindly applied to every aspect of programming. I'm a big fan of firing silver bullets but... more »
0 commentsSave Tags: methodology, ruby
Domain Specific Language Simplexity
At QCon London I caught the Domain Specific Language (DSL) tutorial by Martin Fowler, Neal Ford, and Rebecca Parsons. While Martin covered how and why... more »
0 commentsSave Tags: .net, java, other languages, ruby
Creating Anonymous Classes
Classes in Ruby are first-class objects—each is an instance of class Class.
0 commentsSave Tags: ruby
Ruby: Dynamically Define Method
You have methods that can be defined more concisely if defined dynamically.
0 commentsSave Tags: ruby
Implementing an internal DSL in Ruby
On Christmas Day 2007 I released the 0.0.1 version of expectations. Expectations is the result of several months of designing what I wanted the Domain... more »
0 commentsSave Tags: .net, java, other languages, ruby
Static Typing Considered Harmful
Given a good test suite the return on investment simply does not justify the use of static typing. In 5 years, we'll view compilation as the... more »
2 commentsSave Tags: java, other languages, python, ruby
Avoiding costly typos
Typos are generally unfortunate, but greatly upsetting when they cost you a few hours of your life. I have a few rules I try to follow in an attempt... more »
1 commentsSave Tags: other languages, ruby
Is being a niche language developer good for your career?
February marks 2 years of nothing but Ruby projects. I'm still happy with the decision, but choosing Ruby has certainly brought unexpected... more »
0 commentsSave Tags: other languages, python, ruby
Learing Rails is Easy, Mastering Rails is Hard
There's plenty of hype and momentum around Ruby on Rails. The screencasts give quick demos of how easy it is to craft a solution using Ruby on Rails.... more »
2 commentsSave Tags: frameworks, javascript, ruby, web 2.0
Array#collect_with_remaining
While looking through our core extensions I found the Array#collect_with_remaining method. The method was designed to yield each element with the... more »
1 commentsSave Tags: ruby