unrelenting.technology

Hi! You are viewing the archive of unrelenting.technology. This website is no longer updated, my current one is val.packett.cool. Check it out instead :)

Tag #ruby

Today’s reason for an hour wasted on debugging: Ruby 2.0.0 enforces FD_CLOEXEC on file descriptors by default, need to pass --keep-file-descriptors to bundle exec to fix. What the hell? Apparently they were concerned about security. Okay, but doing that on interpreter level was super unexpected.

That’s what the hipsters call β€œSmalltalk inspired” nowadays…

nil.empty?  # NoMethodError: undefined method `empty?' for nil:NilClass

In Objective-C, any message to nil returns nil. In Ruby? Exception :-(