#ruby
-
3 min read ·
Why avoid too many abstractions in tests?
Too many abstractions for our test code is like highlighting every single word of the book you're reading. You'd only want to highlight the most important parts right?
-
3 min read ·
-
3 min read ·
When objects become super objects
Comments to my past self about a basic principle of OOP.
-
1 min read ·
Use constants to specify the version of your gem
When developing gems or external libraries we frequently write the semantic versioning as a string.
-
1 min read ·
Use error objects instead of strings
[...] we tend to write a lovely: raise 'some error explanation'