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.
HOTWiring An Existing Rails Monolith
How do you add Turbo to your existing Rails app? What do you need to watch out for as you transition to a full HOTWire approach? I found it to be very straight forward, and mostly a search and replace operation.
What's Upcoming in 2021? - A collection of awesome (online) ruby conferences & camps
Hello, I’ve put together a new ruby conferences & camps page for 2021. See What’s Upcoming in 2021? - A collection of awesome (online) ruby conferences & camps from around the world. Updates welcome. Cheers. Prosit 2021!
Day 3 - glimmer-dsl-tk Gem - Script Widgets Declaratively - Tk - The Best-Kept Secret
Hello, lets thank Andy Maleh for the third write-up in the Ruby Glimmer Days 2021 - Best of Ruby Gems series. Lets welcome “Day 3 - glimmer-dsl-tk Gem - Script Widgets the Declarative Way (Say What, Not How) - Tk - The Best-Kept Secret and Evergreen Classic Now in v8.5 with Native Look ‘n’ Feel on Mac, Windows, and Linux”. Cheers. Prosit 2021!
Glimmer Tetris High Scores & More Menus
Glimmer Tetris just got a High Score dialog (replacing the Game Over dialog) and got enhanced to save/load high scores to/from disk (tab delimited format). It uses the user directory (dumping a .glimmer-tetris/high_scores.txt file) to use the same security permissions as the current user. If writing fails for any reason, it fails gracefully, defaulting to memory storage of high scores. [more inside]
Ractors: Multi-Core Parallel Processing Comes to Ruby 3
Historically, the only way you could truly achieve async parallelism in Ruby would be to fork multiple processes or schedule background jobs. Until now. Welcome to Ractor, a brand-new method of running async code in Ruby 3.
RBS: A New Ruby 3 Typing Language in Action
Let’s discover the differences and similarities between Sorbet and the recently released RBS through some practical examples. [more inside]
Logidze 1.0: Active Record, Postgres, Rails, and time travel
Ever had to audit and track Active Record models in a Rails app? Take a look at Logidze 1.0: a more performant alternative to well-known Paperclip with PostgreSQL triggers under the hood. [more inside]
Day 2 - glimmer-dsl-swt Gem - Hello, Glimmer! - Script Standard Widgets Incl. Tables
Hello, lets thank Andy Maleh for the second write-up in the Ruby Glimmer Days 2021 - Best of Ruby Gems series. Lets welcome “Day 2 - glimmer-dsl-swt Gem - Script Standard Widgets from the Eclipse Toolkit with Two-Way Data Binding (incl. Tables with Sorting, Filtering, Multi-Type Editing, and More) - Package Up and Ship Desktop Apps for Mac, Windows ‘n’ Linux”. Cheers. Prosit 2021!
Glimmer Tetris Gets Menu Items Including Pause & Restart
Glimmer Tetris gets menu bar items, including Start, Pause, Restart, and Exit, shipping with Glimmer DSL for SWT v4.18.3.1. [more inside]
Why it's Critical to add Secondary Backups for AWD RDS Database
In this blog post, I’ll describe why the default backup system offered by RDS is insecure and how to improve it. [more inside]
2021 - The Year of the Ruby Desktop? - Ruby Glimmer Days 2021 Kickoff
Hello, over the next couple of days I try to publish write-ups in the Ruby Glimmer Days 2021 / 4 Days of Ruby (Desktop) Gems series. Thanks to Andy Maleh for the articles. Let’s start off with Day 1 - glimmer Gem - Make Desktop Apps Shine Using a Script with Two-Way Data Binding - Inside the Domain-Specific Language Engine / Construction Kit - Beware of Imitators! The Original Since 2007. Cheers. Prosit 2021!
What if I tell you that Rails.env.production? does not really exist? 🤔
💎 Ruby DNS mock. Mimic any DNS records for your test environment and even more!
Test framework agnostic, lightweight UDP DNS mock server with dynamic/manual port assignment:
More Bitcon Examples Using the crypto-lite Gem (Derive the Public Key...)
Hello, I added some more bitcon examples on how-to use the crypto-lite gem. New examples include: Derive the (elliptic curve) public key from the private key, encode the private key in the wallet import format (WIF), and so on. Happy secure programming with ruby. Cheers. Prosit 2021!
Hotwire Chat: Turbo and Stimulus demo
Hotwire Chat is a simple chat web app built in Ruby on Rails and Hotwire demonstrating Turbo Frames/Streams, Stimulus, caching, and testing https://github.com/mdominiak/hotwire-chat live to play with at https://hotwired-chat.herokuapp.com
IRB's Built-in Measure
With Ruby 3.0, IRB added measure functionality with built-in timing, stackprof, and ability to add custom measure procedures. I wrote a blog post about it!
Glimmer Tetris Cont'd: Scoring, Leveling, and Preview
The Glimmer Tetris game that took one day to develop just got improved with Scoring, Leveling, and Next Preview with one more day, thanks to Glimmer DSL for SWT’s incredibly malleable architecture and extensive feature set. [more inside]
3 Practical Uses of Ruby's `method_missing` You Should Know.
Learn the practical uses of Ruby’s method_missing. You can use the method_missing method to handle errors, delegate methods and build DSLs.