Category Archive for 'Ruby'

Why Use a Language-Powered Domain Specific Language?

Thursday, August 16th, 2007

Following my previous post on Domain Specific Languages (DSL), I had the pleasure of reading some responses. Aristotle does not like using eval (source): I mean, evaluating another source file every time you instantiate an object in that class? Awesome! If I had to maintain his code I’d refactor that part out of existence with […]

Parsing Dates in Unix with Ruby

Saturday, August 11th, 2007

Ever need to write a script that can read a human readable date and turn it into something a computer can use? How often do you have “August 10, 2007” in a string and need that converted to a number of seconds since January 1, 1970? As it turns out, Ruby includes an excellent module […]

Security of Ruby’s Kernel#rand

Tuesday, August 7th, 2007

Last night I was at the Chicago Area Ruby Group, and there was a presentation by Trevor Turk on his El Dorado project. While he was showing us the code I saw the method that generates the application’s authentication token. I could not help but notice that the security of the authentication tokens depends greatly […]

Domain Specific Languages

Sunday, August 5th, 2007

I found out Friday night that chromatic from the Perl community has been writing about my previous posts: Cosine, if you post yet another followup, please explain precisely what in the world you possibly mean by “better support DSLs” and perhaps even “DSL” in general. Excellent comment, so I will. It goes somewhat to the […]

Knowing Ruby and Perl

Tuesday, July 24th, 2007

I came upon a startling realization today after reading some feedback from an anonymous source regarding my previous post: Your complaint about being unable to write code the way you’re used to with Ruby when picking up Perl for a hours seemed pretty thoughtless. Of course it’s harder for you in Perl — you don’t […]