-
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.…
-
Refinements in Ruby: in map: super: no superclass method
I was trying out refinements to see if they would help clean up some parsing code. I liked defining a couple of methods for the String class to respond to, but really didn’t want them as permanent monkey patches on String. And so, I had a pipe mapping module with refinements: module PipeMapping refine String…