Category Archives: Code Samples

Scala: Post-Functional, Post-Modern, or Just Perl++?

Protip to Scala people: If one of the fundamental stunts of a style is pervasive in all the code but yours, you’re not in the same style of programming.

Also posted in Classic, Perl, Programming Language Punditry | Tagged , , | 85 Comments

setJDK/setGrails

I spend a lot of time bouncing between different versions of JDKs and different versions of Grails. To make my life easier, I’ve got these files in my bin directory. setJDK #!/bin/sh   cd /System/Library/Frameworks/JavaVM.framework/Versions   CURJDK="`readlink CurrentJDK`" echo Current JDK version: $CURJDK   if [ "$1" == "" ]; then echo Installed versions: ls [...]

Posted in Code Samples | 8 Comments

Oh, Gradle, You Made My Heart Skip a Beat

As I just mentioned, I’ve been working on some Gradle plugins. I’ve been using Gradle in my polyglot programming book, and there’s a stunt (namely, running Cucumber in a Java/Groovy/Scala build) that I’d like the user to be able to do without too much hassle. The easiest way is to say, “Hey, use this plugin [...]

Also posted in Groovy, Open Source | 2 Comments

Announcing Gradle-Plugins

A lot of people know that I have contributed a lot of Grails plugin work, even if my take on contributing is somewhat controversial. Well, I’m continuing on with that approach of plugin contributions, but now for Gradle, the world’s most awesome build system. You can check out the plugins at http://github.com/RobertFischer/gradle-plugins/. Be sure to [...]

Also posted in Groovy, Open Source | 2 Comments

“Holy Crap, That Worked!”: Running JRuby/Cucumber from Gradle

I’m working on some code for my book and I’m trying out Swinger, which is a Cucumber library for Swing. I wanted to integrate it into my build (which is Gradle), but was running into issues. The problem is that I was pulling JRuby-Embed from the central Maven repo, which meant that I could only [...]

Also posted in Groovy, Ruby/JRuby | Leave a comment
  • Categories