Tag: ruby

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

  • Programming Style: Language Specific Domains

    My Beginner and C Days The visual presentation of the code has mattered to me, from the first days I wrote C code in Microsoft editor. In those days, it was a Microsoft C 5.0 IDE on either DOS or OS/2. #include “stdio.h” main() { int rows,columns,ROW, COLUMN; scanf(“%d %d”,&ROW,&COLUMN); rows = 0; columns =…

  • Mac OS X Mavericks, rbenv, and ruby-build “Missing the OpenSSL lib?”

    openssl version: 1.0.1i, rbenv version: 0.4.0, ruby-build as plugin in the ~/.rbenv/plugins directory. The version of openssl on a Mavericks machine got out of sync with rbenv and ruby-build for some reason. For every attempt at installing a ruby version through rbenv attempted, we got the following message: “The Ruby openssl extension was not compiled.…