10 Nov '12, 12pm

Ruby - Overriding equality and Test Driven Development + VPS > + #ruby #rails #tdd #ror

Ruby has, at its root, an Object. Methods available in Object are available to every class because every class in Ruby inherits from Object somewhere in its own class hierarchy. Of course, you can override methods in subclasses, changing the functionality of a root method. You might stumble on to this idea if you work through Test Driven Development By Example by Kent Beck, translating the Java code into Ruby as you go. At some point pretty early on, he overrides the equality method on the Currency class to better test if two instances are equal. I'm going to do the same here, working with Instruments instead of Currency. Equality Equality in Ruby can be expressed using any of the following three methods object == other equal?(other) eql?(other) These methods are defined on the base Object. The default implementation of equality will only return true if both objects are ex...

Full article: http://rubyflewtoo.blogspot.co.uk/2012/11/overriding-equa...

Tweets

Driven

counterculturecoffee.com 16 Nov '12, 5pm

Transparency is one of our core values, and not only to do we try to embody it; we seek it out in our partners throughout ...

Gute Anleitung: Ruby on Rails development with ...

createdbypete.com 11 Nov '12, 9am

Most developers like to spend a bit of time setting up their environment. Being new to the Ruby on Rails world I’ve spent ...

#Manager CTO / Development Manager - Agile Ruby...

jobsense.com.au 11 Nov '12, 10pm

CTO / Development Manager - Agile Ruby on Rails SaaS Job Location: Brisbane Key Management Role $$$$ Ruby On Rails About O...

We have an intro to Ruby on Rails course runnin...

unboxedconsulting.com 13 Nov '12, 11am

Unboxed Consulting's Web Application Development using Ruby on Rails course is a week long, hands-on training programme th...

Character Development | 2012-11-05 | ED+C Magaz...

edcmag.com 10 Nov '12, 7am

Sustainable building isn’t just a progressive option for eco-conscious clients anymore, but rather the commercial developm...

Test to US military standards

Test to US military standards

edn.com 09 Nov '12, 2pm

For more than three decades, MIL-STD-1553 has been widely used as the defense industry’s standard for data communications ...

Indiegogo, Inc. is looking for: Ruby on Rails W...

hire.jobvite.com 10 Nov '12, 3am

Ruby on Rails Web Developers San Francisco, CA We’re fixing the funding process by removing the middleman and empowering p...

A/B or Multivariate? How to Choose the Right Type of Test

A/B or Multivariate? How to Choose the Right Ty...

searchenginewatch.com 12 Nov '12, 10am

When it comes to creative testing, the two main areas where people struggle is with what to test and how to test it. If yo...

Ruby on Rails (RoR) is a web framework that uses the Ruby programming language.: Ruby on Rails (RoR) is a web fr...

Ruby on Rails (RoR) is a web framework that use...

learnstreet.com 09 Nov '12, 5am

Getting Your Code Live You’ve learned how to write code, but how do you actually launch your website or app? We’ll walk yo...

Rails 3-2-stable on Ruby 2.0, Psych error on bu...

stackoverflow.com 10 Nov '12, 3pm

> bundle Updating git://github.com/rails/rails.git Unfortunately, a fatal error has occurred. Please see the Bundler troub...

VCRで外部APIとのやりとりを記録する #Ruby #Rails #test - Qiita

qiita.com 19 Nov '12, 12pm

VCR . configure do | c | c . cassette_library_dir = 'test/vcr_cassettes' c . allow_http_connections_when_no_cassette = tru...

How to speed up your test suite: When you pract...

rubyflow.com 17 Nov '12, 8am

When you practice test-driven development, most of the time you need to run only a small number of tests to validate your ...

"Catching Up with our SEEDS Program" by @Counter_Culture

"Catching Up with our SEEDS Program" by @Counte...

counterculturecoffee.com 14 Nov '12, 5pm

is an acronym that stands for Sustaining Environmental and Educational Development at Source, and our SEEDS program was cr...

@Vibes_Media is looking for a RoR Software Engi...

builtinchicago.org 09 Nov '12, 10pm

are a seasoned software craftsman with a passion for programming languages and frameworks that is currently most intereste...

If you’d like to read my take on Twitter x Ruby...

akitaonrails.com 12 Nov '12, 12pm

Usar Ruby que é uma das linguagens mais elegantes e prazerosas de trabalhar (embora gosto é algo que não se discute, e tem...