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.
Building Native GUI Apps in Ruby - RubyConf 2022 Talk Slides
RubyConf 2022 talk slides for “Building Native GUI Apps in Ruby” have been posted, including a mention of a new Glimmer DSL for LibUI release that finally leverages a newer version of the C libui library, supporting a new open_folder dialog: [more inside]
pixelart Gem In Action - Turn Punks Into Default Profile Pictures (PFPs)
Hello, a little experiment in the ongoing pixel art programming in ruby series. The idea - let’s turn pixel punk heads into default profile pic(ture)s via Image#silhouette (from the pixelart gem). Bonus: Use Image#circle (from the pixelart gem) to “round out” the square (profile picture) image. See Yes, You Can - Generate Your Own Default Profile Pics (PFPs) @ Punk’s Not Dead for do-it-yourself (d.i.y.) examples and (ruby) scripts.
Ruby's flip/flop operators
Code snippet about the flip/flop operator SEE CODE SNIPPETS
A zero-dependency Ruby CLI boilerplate class (with boilerplate tests)
Have you ever wanted to add a simple CLI to one of your small Ruby libraries, but did not want to add the dependency for thor or some other CLI library/framework? Well now you can copy this boilerplate code for a zero-dependency Ruby CLI class! Features include:
Active Record Slotted Counters
This gem implements the slotted counter pattern for Active Record counter caches with the compatible interface (so you can you belongs_to ..., counter_cache: true as before).
Ruby is a Multi-paradigm programming language
Even if Ruby is a fully Object-Oriented Programming language, it can also be interpreted through some other specific prisms.. SEE MORE
Tips and Tricks about Ruby
Learn advanced notions & tricks with our cards. https://www.rubycademy.com/cards
Safe gem upgrades with Pessimize gem! | Hanami Mastery #035
In this episode of Hanami Mastery, we’re showing how to avoid unexpected gem updates, when you need to bump versions on large projects. [more inside]
Keep DB schema clean and consistent between branches
This post describes a common issue you can have while developing a Rails app switching between branches
Better Rails authentication implementation with Authentication Zero
Wrote a blog post on how to create a full authentication easily with the Authentication Zero gem: https://codewithrails.com/rails-authentication
Web Framework Benchmarks
Rails vs other frameworks. See the results, if you haven’t already: 2022-07-19: https://www.techempower.com/benchmarks/#section=data-r21
Testing Thor Ruby Required Options
Thor Ruby gem is a great tool to quickly build a CLI (Command-line interface) app. [more inside]
Is module_function really the same as extend self?
In Ruby, a module can be used as logical entity. It groups methods at a module level without using the mixin facility — for example, the Base64 module… SEE MORE
Clean up old DB migrations
Do you clean your old DB migrations? I do and explain why here and share my Rake task code to make it easy for you to do so: https://codewithrails.com/clean-up-db-migrations .
36 Questions to Ask Your Future Software Employer
“Do you have any questions for us?” the interviewer asks. This is your chance to find out if the company if a good fit for YOU. [more inside]
From stained-glass master to software engineer: career changes often start w/ a mess
Changing careers is a long, often-overlooked process. But I want to share both the (linear) story and the (messy) history of how I became a software engineer. And like a lot of good stories, mine always starts with a lie.
What is Rack? A Ruby on Rails Webserver Interface
What is Rack application? What is middleware? How to use Rack in Ruby on Rails and webservers? Click here to Learn about Ruby Rack, middleware in detail.
Ruby on Rails Security: 8 Best Practices
A secure Ruby application framework is the best choice for many. Read this article to learn more about Ruby on Rails Security. Read here on Securing Rails Applications
How Ruby flattens block scopes! 🔥❤️🔥
In Ruby, block scopes are flattened with higher scopes… SEE MORE