Dom Christie

Tagged: ruby

πŸ“š til

In Ruby, curly braces can be omitted from hashes not only when the hash is the last argument of a method, but also when it’s the last item in an array: [1, 2, three: :four]. Neat!

πŸ›€ ruby on rails

RailsInspire: a directory of patterns for Ruby on Rails apps. I particularly like the interface. It simply highlights the files needed to implement the pattern, including explanatory annotations. Really nice work from Jeremy Smith.

πŸ“š til

:placeholder-shown CSS pseudo selector: could be really useful for conditionally displaying adjacent/sibling depending on whether the input has a value.

Customise how Ruby destructures an object by defining a deconstruct_keys method.