Write it simple.
- 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 ·
- I don't use nil NoMethodError: undefined method 'excerpt' for nil:NilClass 3 min read ·
- When objects become super objects Comments to my past self about a basic principle of OOP. 3 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' 1 min read ·
- Do you use form objects in your Rails apps? Introducing yaaf, a gem to ease the usage of the form object pattern in rails apps. 4 min read ·