Monthly Archives: December 2010

They just don’t make bugs like they used to

By the third crash, he had noticed something. The crash occurred when the attendants were changing the tapes on an unrelated drive. And furthermore, he realized that the crash occurred as soon as one of the attendants walked across a … Continue reading

Posted in Uncategorized | Leave a comment

Daniel Spiewak on Monads

Anyone trying to understand monads will inevitably run into Haskell’s IO monad, and the results are almost always the same: bewilderment, confusion, anger, and ultimately Perl. via Monads Are Not Metaphors – Code Commit. A thoroughly enjoyable read, recommended.

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Object Oriented Programming Comes to Rails

decent_exposure helps you program to an interface, rather than an implementation in your Rails controllers. Sharing state via instance variables in controllers promotes close coupling with views. decent_exposure gives you a declarative manner of exposing an interface to the state … Continue reading

Posted in Rails, Rants, Ruby | Tagged , , , | 5 Comments

Overriding the Backtick in Ruby

I’ve been planning this post for a long time, and Magnus Holme’s recent article on overriding unary operators gives me the perfect lead-in. Ruby has great syntax sugar for quoting strings. You’ve got your single- and double-quotes; you’ve got slashes … Continue reading

Posted in Ruby | 5 Comments

EventMachine has competition

Cool.io is an alternative to EventMachine, albeit one which using Ruby’s own native I/O primitives rather than reinventing them, and does as much as possible in Ruby instead of C, which should make it easier for interested contributors to hack … Continue reading

Posted in Ruby | Tagged , , | Leave a comment

Why the GPL Matters

There’s an issue that’s been bothering me for quite a while. There’s a problem in the software development world, a practice that breaks down the free and open exchange of information. This practice is widespread throughout the software development world … Continue reading

Posted in Uncategorized | 4 Comments

Full Exploitation

“Full exploitation” is essentially a pattern in itself, and one we will come back to repeatedly. Whether it is applied to software development, architecture, or music composition, exploiting a good idea repeatedly can enhance the integrity and cohesion of the … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

Social Profile Services – A Summary

It has come to my attention more than once that avdi.org is sorely in need of updates and more complete info. At some point I plan on having someone design a custom home page, but until I get around to … Continue reading

Posted in Uncategorized | Leave a comment

A Rack-like library for HTTP Clients

Faraday is an HTTP client library inspired by Rack. Requests and Responses go through middleware which allow for abstraction and modular code. via Writing modular HTTP client code with Faraday | Adventures In Coding. Strike that off my list of … Continue reading

Posted in Ruby | Tagged , , , | 1 Comment

RVM Proxies for Common Commands? (Solved)

I posted this in IRC earlier but I thought I’d ask a larger audience: (01:39:01 PM) avdi: So here’s my problem (01:39:55 PM) avdi: My emacs is set up to run various Ruby/Rails-related commands within projects, e.g. “rake cucumber”, as … Continue reading

Posted in Questions, Ruby | Tagged , , , | 5 Comments