johnbender.us

recent / categories / archives

Posts from January 2009

testing = mochijson2 funnyness feature

[Update] I filed a ticket on the mochiweb google code site, and they pointed out that this IS expected behaviour. Mochijson2 expects binary strings, which makes good sense since when you decode with mochijson2, strings are converted to just that! Also, string operations in Erlang are faster on binary strings (or so I’ve been told). [...]


Erlang: Pattern Matching Declarations vs Case Statements/Other

[Update] I did some refactoring that I’ve been meaning to do thanks to ayrnieu in #erlang. So as I’m hacking my first Erlang project I’ve come across a few places where I was unsure what would generally be a more readable/understandable/robust solution to a given problem. The one I’m thinking about right now is using [...]