The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Why you should visit the next RubyKaigi
RubyKaigi is the annual Ruby conference organized in Japan. Have you been there this year? Let me tell you why you should visit this conference in 2019 🙌 https://blog.daftcode.pl/why-you-should-visit-the-next-rubykaigi-501317c60d6d
Removing magic with magic (metaprogramming)
A case of safaley removing “magic” library (metaprogramming with implicit effects) using even more metaprogramming in legacy codebase. [more inside]
How This Home Maintenance App Uses Ruby on Rails
I interviewed the CTO of Jiffy, a Toronto-based home maintenance app built with Ruby on Rails. Here are some of his thoughts on the pros and cons of working with Rails. [more inside]
Extending Zendesk with the help of Zendesk App, Ruby on Rails API and CORS
We use Zendesk in one of our projects for processing users feedbacks and here is a story of how we developed our own Zendesk App to improve this service.
3 ways of iterating over tree-like ActiveRecord structures
Three ways of iteration over tree-like data structure and a comparison of their performance. https://prograils.com/posts/three-ways-iterating-tree-like-active-record-structures
Using Replica database with your ActiveRecord models
Sometimes you may need to access not only your live production Database but also replica - for example, to lower down the CPU load on main DB. How to do it? How to keep the model in sync with the main model and prevent writes to it? I explained it in this blog post on Medium.
SpreadsheetArchitect v2.1.0 Released
Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets easily from ActiveRecord relations, Plain Ruby classes, or predefined data. https://github.com/westonganger/spreadsheet_architect
How to Build a Full-Text Search Form with Rails & AJAX
Create a Rails full-text search form that submits via AJAX to render results without a page reload. http://www.rymcmahon.com/articles/11
Golang for Rubyists. Part 6. Structs, Methods and Interfaces
Sixth post from a series, which is intended to help Ruby developers to get a foot in the door of Golang. http://zonov.me/golang-for-rubyists-part-6-structs-methods-and-interfaces/
Maily v0.7.0 release: Rails 5.2, new logo and more
A new version of Maily (https://github.com/markets/maily) v0.7.0 has been published. Mainly with Rails 5.2 compatibility, new logo, lots of UI tweaks, allow to hide emails and more.
Rails Testing Handbook on Kindle
You can now read Rails Testing Handbook, a hands-on guide to building better Rails apps with confidence using behavior-driven development on your Kindle: https://semaphoreci.com/blog/2018/06/20/rails-testing-handbook--on-kindle.html
Do You Know How Hash Table Works? (Ruby Examples)
Hash table is a data structure that stores data in key-value pairs. It is also named as a dictionary or associative array and it is one of the most useful data structures in a programmer’s toolbox. [more inside]
JSON Serialization in Rails: A Complete Guide
Find out how to implement fast JSON serialization mechanisms in a Ruby on Rails application using the best available solutions.
React Hot Reload in Rails
If you read my first article about switching from Sprockets to Webpacker and the second one about Hot Module Reloading of CSS, you will love to read this, where I will introduce you, step by step, to have Hot Module Reload working on your React components. [more inside]
Chainable Queries for ElasticSearch
Using ElasticSearch with ruby has never been easier. search_flip provides a chainable and elegant DSL as easy as using ActiveRecord, even for nested aggregations. Version 1.1.0 ships with additional features, API methods and bug fixes. Great docs included.
Breaking Up a Monolith: Kong Case Study
Kong blew up their monolith. Wondering how they made the transition to microservices? Marco Palladino discusses the process in depth.
Quote opportunity: How did you land your first Rails development job?
Think back to your first job working with Rails – whether it was 8 months or 8 years ago. Do you have an interesting story to tell about your first Rails job? Any advice for a new developer beginning to work with Rails? I’d love to hear from you. Click below to send me your story and info to be quoted (with a link!) in an upcoming blog post on the Planet Argon blog. [more inside]
How to refactor long if-else condition
Little article about refactoring. Here is a link to medium
RuboCop Lineup
Restrict Rubocop to only changed lines on a Git branch: https://github.com/mysterysci/rubocop_lineup . This is not a new idea, but previous bits on the inter-webs seemed to be outdated and not fully functional. Hat tip to DirtyCop and the gist that DirtyCop was based on.