Tag: ruby

  • Whitespace is Significant

    While I was in my first couple years of college, Python was gaining traction as a hot new programming language. I had been programming in C since high school, but was curious about new languages. I took an interest in learning more about Python. A classmate told me that whitespace (at least indentation) was significant…

  • Hooking in an LDAP Test Server to Cucumber Tests

    I managed to get a custom Devise strategy with LDAP working, but had no clear way of automating tests. I wanted to validate if I still had to keep the password fresh in the database, and needed to be able to write scenarios around that in case someone attempted to refactor out the code. After…

  • 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: ###…