How Ruby, Java, C, and PHP fanboys see each other’s languanges
We know it’s not right to start a language war but this one is really funny.
via RubyInside
Related posts:
- Ruby 101: How to add methods to a Ruby class Let’s add a method that checks whether an Array has many elements. a = [1,2,3] a.many? # NoMethodError: undefined method `many?' Let’s fix this by adding a new method to...
- Ruby 101: Make your class behave like a Ruby built-in I got re-acquianted with this scenario while working on the OpenAmplify gem – a wrapper for the OpenAmplify API. When you give the api a text like a blog comment,...
- Ruby 101: How to filter an Array using proc Over at the PhRUG, a Ruby developer community based in the Philippines, we conduct code review sessions via our mailing list. A code is posted and members share alternative implementations....
- Ruby 101: Hash initialization gotcha I have a code that counts how many times a word occurs – a perfect fit for Hash. def word_counts(words) counts = Hash.new(0) words.each do |word| counts[word] += 1 end...
- How to create a class on the fly in Ruby “So what if Ruby is dynamic?” This is often the reaction I get whenever I tell friends that Ruby allows you to fiddle with your program at runtime; followed by...
