About
Buy my book
Exceptional Ruby is the definitive guide to exceptions and failure handling in Ruby.
Pages
Categories
Tag Archives: ruby
Linkdump #4
ClassNamer An automatic class name generator. I named all the classes in NoneSuch using this handy tool. tags: development io_splice – zero-copy pipe I/O for Linux and Ruby Nifty technique for high-performance IO tags: development linux ruby io The splice … Continue reading
Linkdump #3
Conduce From Ara T. Howard, "a model+view component for rails that combines the conductor and presenter pattern via a model capable of generating view-centric methods". A single Gist which is interesting both for what it does, and for the way it … Continue reading
Posted in Resources
Tagged cohesion, concurrency, conductor, links, patterns, producer, rest, ruby
Leave a comment
NoneSuch: The Greatest Ruby Gem EVAR
I am very proud to announce a brand new, incredibly cool Ruby gem: NoneSuch. Here’s a short video to introduce it. UPDATE: Got a NoneSuch success story? A disastrous failure story? Enter the contest and win a ticket to Day Camp 4 … Continue reading
“Exceptional Ruby” Video and Beta eBook!
Two weeks ago at Magic Ruby in Orlando I delivered a talk called “Exceptional Ruby”, about working with exceptions and failures in Ruby. People seemed to like it. I have two related announcements today: A self-made video of the talk … Continue reading
Thank You, Magic Ruby!
Thanks for all the kind comments on my Exceptional Ruby talk! A few notes for those visiting because of the talk: References, source code, links to further reading, and yes, slides can be found here: Exceptional Ruby Notes. Please review … Continue reading
Posted in Conferences
Tagged conferences, errors, exceptions, failures, magicruby, ruby, talks
2 Comments
The happy developer
The programmer has a fixed amount of time and concentration that he can give every day. He must give a bigger piece of the pie to the bad technologies, simply because they require more. In other words, he ends up spending most … Continue reading
ActiveRecord association extensions and method_missing
The semantics of method calls in Ruby are simple: Call the named method; or If no method exists, call #method_missing() instead. Normally #send() obeys these rules as well. ActiveRecord association proxies mangle #send()‘s semantics, however, violating the POLS and potentially … Continue reading
Posted in Ruby
Tagged active, associations, extensions, method_missing, rails, ruby, send
12 Comments
ActiveRecord Golf
So I was messing around with some scratchpad code today, investigating the use of with_exclusive_scope, and here’s what I had to write to come up with a minimal working ActiveRecord model: require ‘rubygems’ require ‘active_record’ ActiveRecord::Base.establish_connection( :adapter => “sqlite3″, :database … Continue reading
Glass Houses for Ruby
A little something for Giles et. al. who feel that private has no business in the Ruby language… # Privacy? We don’t need no stinkin’ privacy! module TSA def private # NOOP end def protected # NOOP end end class … Continue reading
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 haskell, languages, monads, Perl, programming, ruby, scala
Leave a comment
