Use conditional config to separate gitconfig for work and personal projects.
Creating elegant custom exceptions is easy with ecmascript classes.
class properties in ES7 can be used to write elegant React components.
Method#to_proc - just like
Today I came across pgcli. It is a database console for postgres with
syntax highlighting and more importantly
ActiveRecord comes with a mechanism to track changes to your model with
ActiveModel::Dirty. Lets put it to some use.
Last night I was watching Sandi Metz’s podcast on Bikeshed and one question in the QnA striked me.
Ruby 2.4 has optimized
Array#max methods. Here are some benchmarks.
Rspec has a pretty handy feature called predicate matchers to test predicate methods on your classes.
Sass mixins are pretty handy if you want to re-use same snippet of css at multiple places. But did you know they can act like functions as well?
ActiveRecord enums are really handy but they can be equally evil if not used properly.
Spying is used to assert if a method has been called, here we will see how to use spies with Rspec.