-
Ruby Keyword Argument Implementation Differences Between 2.1 and 2.2
I’m currently reading through Ruby Under a Microscope: An Illustrated Guide to Ruby Internals, and when I tried to test the “hidden hash” in ruby 2.2, I got different results from the book. In Ruby 2.2, it appears that the default arguments are used as one expects, without regard to the Hash monkey patch: ###…
-
Rails AntiPatterns Review/Summary
I’ve had the Rails AntiPatterns: Best Practice Ruby on Rails Refactoring (Addison-Wesley Professional Ruby Series) book on my Safari Books Online bookshelf for almost a year now, and finally started reading through it. It was “updated for Rails 3”, and there doesn’t appear to be a newer version, so I was a bit skeptical about…
-
Open Your Github Repo in a Web Browser from the Shell
This assumes that your first remote is a github remote. Put the following in the appropriate bash or zsh initialization script and that you’re on a Mac. You might need to change “open” to whatever will launch a URL in a web browser on a different *nix system. function gitweb() { git remote -v |…