News for hackers. Stuff that matters.
Re:My Weird Ruby by grandalf on Saturday March 07, 2015 @09:15AM (#9161844)
When I try to modify a frozen hash it raises an exception "Can't modify a frozen hash" in ruby 2.2.

I generally agree with the rest of your comment though, however I think some ruby code (per the original post) can be improved by introducing some of these paradigms.

Re:My Weird Ruby by jarkko on Friday March 13, 2015 @11:57AM (#9197813)
Yes, but you only freeze the hash, not the items it contains. It is also an issue for thread safety, as I wrote here: https://bearmetal.eu/theden/how-do-i-know-whether-my-rails-a...