News
Google-like letter avatars using ERB-generated SVGs - kukicola.io
Creating user avatars is a pretty simple thing. Gems like avatarly or letter_avatar can generate PNG images with user initials. This time I would like to show you a different approach - SVG generated by the standard ruby ERB template engine.
GitHub Workflow for Automated Gem Releases - YouTube
- Commits from the video: https://github.com/tomdalling/byebug-...- The "Release Gem" GitHub workflow: https://github.com/tomdalling/byebug-...- Config for standard-version, which is what bumps the version and updates the changelog using the commi...
Custom "cops" for RuboCop: an emergency service for your Ruby code
It is hard to find a Ruby developer who never heard of RuboCop. In all the recent Evil Martians projects, RuboCop is included in the CI pipeline from the early days. However, sometimes it may be helpful to write more rules manually and to enforce ...
RailsConf 2021 -- Implicit to Explicit: Decoding Ruby's Magical Syntax | Shakacode
Does a Rails model or config file seem like a magical syntax? Or can you read any Ruby code and understand it as the interpreter does?Ruby's implicitness makes it great for readability and DSLs. But that also gives Ruby a "magical" syntax compared...
How to auto-document the database schema of your Rails app
RailsConf Recap (4 Part Series)1We need a better way to communicate and explain our code decisions2How to auto-document the end-to-end code and data flows of your Rails app3How to auto-generate detailed Swagger/OpenAPI for all your Rails routes4Ho...
Understanding blank?, present?, empty?, any?, and nil? in Ruby (and Rails)
In Ruby on Rails, there are several methods available for checking the state of an object.The most common ones include:blank?present?empty?any?nil?It can be pretty confusing to know which method to use and when. For instance, blank? and empty? sou...
Building large features: my process for branches, requests and reviews
At the time, that seemed normal. Everyone was doing it.But no more!Now that I regularly work on large features, I’ve found a process that suits my needs (and my teammates’). It helps me keep in touch with the main branch. Code reviews are easier f...