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.
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]
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? 🤔
https://medium.com/rubycademy/how-environment-check-works-in-ruby-on-rails-4cfbd0434605
💎 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: https://github.com/mocktools/ruby-dns-mock
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. https://emmanuelhayford.com/3-practical-uses-of-ruby-method-missing/
Glimmer Tetris in One Day!
I present to you Glimmer Tetris in one day! Not bad, right!? Believe me when I tell you it is the cleanest Tetris implementation on Earth! In fact, the main GUI body is only about 6 lines of code. http://andymaleh.blogspot.com/2021/01/glimmer-tetris-in-one-day.html
Russian Doll Caching in HOTWire
Does your app feel slow on page refreshes? You can optimize this loading experience to make it feel more interactive by using a Russian Doll Caching strategy. Follow along as we make 400 comments load immediately! https://onrails.blog/2021/01/22/improving-performance-with-russian-doll-caching-hotwire-tutorial-6/
elliptic gem - elliptic curve cryptography w/ OpenSSL made easy
Hello, I’ve put together the little elliptic gem that makes elliptic curve digital signature algorithm (ECDSA) cryptography with OpenSSL easy / easier (incl. “classic” secp256k1 curve used by ethereum, bitcon, and many others). Cheers. Prosit 2021!
invokable v1.0.0 is out!
Includes keyword argument support, more robust testing, and better error handling! [more inside]
Designing a Ruby Serverless Runtime
I discussed some of the design decisions and trade-offs involved in bringing Ruby support to Google Cloud Functions, the challenge of fitting Ruby conventions with the paradigms of the serverless cloud.
libev_scheduler - a fiber scheduler for Ruby 3.0
Introducing libev_scheduler: a new gem implementing the fiber scheduler interface introduced in Ruby 3.0. For those interested in Ruby fibers and fiber-based concurrency, the README includes some thoughts on the fiber scheduler interface.
tty-progressbar v0.18.0 is out!
The latest tty-progressbar packs many new features. It adds indeterminate mode to show progress for unbounded tasks, supports multibyte characters in bar display, has more than 20 built-in bar formats and allows to pause and resume progress at any time. See changelog for more. Enjoy!
How ActiveRecord Uses Caching To Avoid Unnecessary Trips To The Database
ActiveRecord makes accessing your database easy, but it can also help make it faster by its intelligent use of caching. In this article, Jonathan Miles shows us the tricks that Rails uses to ensure that your database isn’t doing more work than it needs to. https://www.honeybadger.io/blog/rails-activerecord-caching/