Blog
Articles on Ruby, Rails, testing and software design.
-
4 approaches to handling service objects' returns
Four ways a Ruby service object can return control to a Rails controller: exceptions, booleans, a class method with result readers, and Success/Failure objects.
-
Sequence diagrams
Why sequence diagrams are a good way to communicate design ideas, and how to draw them on the fly during remote meetings with PlantUML: the basic syntax.
-
How to keep rspecs DRY
Refactoring repetitive RSpec specs step by step: moving lets into their contexts, and keeping class instantiation and the tested method call in one place.
-
How to design a solid database for Rails application
Designing a Rails database upfront with not-null constraints, unique indexes and foreign keys, and why ActiveRecord validations alone cannot guarantee data integrity.
-
Freelance full stack Ruby on Rails application development
Building a Rails and AngularJS web application that charts gas and electricity smart meter readings for an employment agency: approach, process and screenshots.
-
Verifying database schema in console
PostgreSQL and MySQL console commands for inspecting a Rails application's database: listing databases and tables, describing a table, and when it helps.