marcbowes/gheed — comment on commit 42940b5258ab47930e68728077e943dd8d3642eb
File:  line 0
By marcbowes:

Points from IRC chat:

* There is benefit in the name->id cache since it saves a database lookup (negligible) but, more importantly, prevents scattering Strings in the code
* Having inspectors on state would be awesome, ala `delivery.queued?`. You can do this with delegators (so that `#queued?` delegates to `#state.queued?` which is basically just a [StringInquirer](http://apidock.com/rails/ActiveSupport/StringInquirer))