Category Archives: Groovy

Salted and Hashed Passwords in Grails via the Crypto Plugin

I wanted to share this tidbit n how to do salted and hashed passwords in Grails. If you don’t know why you want to do this, read Never store passwords in a database!. More on salting is available at Wikipedia’s article on Password Cracking. To be smarter about passwords than the Reddit developers, first install [...]

Also posted in Open Source | 1 Comment

OS-X Shortcuts for Grails (and Other Stuff)

I use bash and vi basically as my IDE, so here are a few of my favorite functions. Hopefully people out there can use these functions as a basis to customize their own shell to really be maximally productive. This is a straightforward Hamming encoding of one of my most common commands. alias g=’grails’ This [...]

Also posted in Code Samples | 1 Comment

Developing Grails Plugins with GitHub

Editor’s Note: New capabilities of Grails make this a much more useful approach: Github Grails Plugin 2.

Also posted in Open Source | 1 Comment

Functional Programming, Typing, and Closures

Back when I was giving my Ruby.MN and Groovy.MN* presentations on OCaml (blog post with video and handouts), one of the questions that came up (from Jesse of Refactr) was why I saw static typing and functional programming as being so tightly connected. After all, Erlang is a dynamically typed functional language, so what’s with [...]

Also posted in OCaml, Programming Language Punditry | 8 Comments

Functional (Meta)?Programming Stunts for Ruby and Groovy (and a Little Perl)

After I learned OCaml, my coding mindset was totally distorted. I started writing Java code that looked like this: public Collection<foo> getCertainFoos() { return CollectionUtils.select(getFoos(), new Predicate() { public boolean evaluate(Object o) { return SOME_CONSTANT.equals(((Foo)o).getProperty()); } }); } </foo> This is kinda ugly in Java, but it’s simply what comes out when I was thinking [...]

Also posted in Perl, Ruby/JRuby | Tagged , , , , | 7 Comments
  • Categories