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.
The Forwardable module: Part II
In this article we’re going to explore the following topics:
Load Testing Round Up: 8 tools you can use to strengthen your stack
We’ve evaluated the pros and cons of several free and paid load testing software suites so you can evaluate what best fits your needs + best practices when load testing
How to Learn Ruby on Rails in 2018, the Ultimate Guide
While Ruby on Rails was first released in 2004, and a lot has happened since then, it’s still relevant in 2018. Here is a list of resources if you want to learn Ruby on Rails in 2018. https://mixandgo.com/learn/how-to-learn-ruby-on-rails-in-2018-the-ultimate-guide
The Forwardable module: Part I
In this article we’re going to explore the following topics:
Fibonacci Heap
A new, pure Ruby implementation of the Fibonacci heap data structure ideal for use as a priority queue to speed up Dijkstra’s algorithm: https://github.com/mudge/fibonacci_heap
New Releases of Rearmed-rb and Rearmed_Rails
I have just released v2.0 of rearmed-rb and rearmed_rails. For those that dont know, Rearmed is a collection of plugins dedicated to making coding more natural & your life easier. I also encourage you to take a peek at the JS plugin, rearmed-js
Identifying problematic Rails controller-actions
How not to structure your database-backed web applications: a study of performance bugs in the wild is a terrific paper that examines the prevalence of ActiveRecord performance anti-patterns. Learn how to identify problematic controller-actions with Scout.
wkhtmltopdf considered harmful
Re-consider your choice of PDF-generating tool - wkhtmltopdf has many downsides. This article will enumerate why you should not use it for non-trivial tasks, evaluate some alternatives and help with one huge problem. [more inside]
Program Arguments in Ruby II: OptionParser
In this article we’re going to explore the following topics:
Rails API + JWT auth + VueJS SPA: Part 3, Passwords and Tokens management
The article describes how to flush sessions on password updates and what to do if locally stored JWT payload data has been updated on the back end. https://medium.com/@yuliaoletskaya/rails-api-jwt-auth-vuejs-spa-part-3-passwords-and-tokens-management-c1eddc6a49d1
Postgres enums with Rails
Get human-friendly and maintainable codebase with more meaningful, safety, lightweight data using both. https://dev.to/amplifr/postgres-enums-with-rails-4ld0
Rails: increment counter cache and return value
Small ActiveRecord hack that you can use everyday. [more inside]
ActiveRecord - Part 2: Useful methods
Series of blog posts explaining ActiveRecord features. The second part is about useful methods that ActiveRecord offers - #pluck, #uniq, #sum & #update_all. [more inside]
Ruby and PHP comparison in 2018
We compare Ruby vs. PHP in 2018 to find the main pros and cons of critical aspects of both technologies. All statistics shown below is relevant for June 2018. https://www.codica.com/blog/choosing-web-language-ruby-vs-php-in-2018/
Monitor your server metrics on your own machine
https://github.com/drexed/stackeye I’ve created a gem that collects and aggregates your server metrics so you can see things like CPU load, memory/swap/disk usage, and top 10 processes by cpu and memory. Like a tiny version of Scout or New Relic but with minimal dependencies. Its perfect for small projects where services like the one mentioned above would be overkill (and not free). It can be run as a standalone Sinatra app or mounted on any rails application. This is a community so clone away and commit back all improvements.
Why You Too Should Learn Elixir
Learn Elixir not because you will get a better job out of it, but because learning functional programming will make you a better programmer. https://mixandgo.com/learn/why-you-too-should-learn-elixir
Under the Hood: “Slurping” and Streaming Files in Ruby
In Ruby Magic #14, we’ll look into the difference between “slurping” and streaming files in Ruby. Along the way, we’ll learn about I/O, and how Ruby reads files line by line without slurping the whole file content into memory.
Adding Webpacker to a legacy Rails app
There was not a day without a new JavaScript framework these past years. The problem is, Rails does not provide any proper support for those new toys. Unless you get the hang of a gem called Webpacker https://prograils.com/posts/adding-webpacker-legacy-rails-app
Using Google Analytics Gtag with Turbolinks
https://www.mskog.com/posts/google-analytics-gtag-with-rails-5-and-turbolinks/ explains how to get it working with a simple example.
ButterCMS vs. WordPress: A Typical Project Journey
What’s the difference between using ButterCMS and WordPress? We show you a typical project journey from day 1 to launching your blog using both services
Never send a human to do a machine's job. Business Intelligence in RoR
Let me introduce you to Blazer gem, which allows you to write and visualise SQL queries. [more inside]