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.
Glimmer DSL for LibUI Tetris Example
I recently got an issue request to build games in Glimmer DSL for LibUI, so I went ahead and built Glimmer Tetris. Of course, I followed the Glimmer Process in building it, so I released the following version changes of Glimmer DSL for LibUI along the way… [more inside]
Migrating from Webpacker to the New Bundling Approach
Interested in migrating from webpacker to jsbundling-rails and cssbundling-rails? I’ve migrated two Rails apps so far and have tips to share! https://hybrd.co/posts/migrating-from-webpacker-to-the-new-bundling-approach
The Factory Method Pattern in Ruby (video)
The Factory Method Pattern might be somewhat hard to understand at first, mainly because you probably don’t need it as often. But nonetheless, it’s good to know about it and use it whenever you feel it’s appropriate. [more inside]
The Abstract Factory Pattern in Ruby (video)
The Abstract Factory Pattern allows you to do is to isolate conditional instantiations of related objects so that your client code can be extended without changing it. [more inside]
About that monkey-patching business...
Is monkey-patching inherently bad? Should its use make Polyphony illegitimate? These are the questions I’m exploring in my latest article.
Ruby on Rails Podcast Episode #390: Code Quality with Ernesto Tagwerker
Ernesto Tagwerker is the Founder of OmbuLabs, the Ruby on Rails development shop behind FastRuby.io. He comes back to the podcast to talk about code quality: what it is, what it is perceived to be and what its like to maintain a few Ruby code quality gems, including ruby-critic and skunk. [more inside]
The Singleton Pattern in Ruby (video)
The Singleton Pattern helps with restricting the number of instances a class can create to just one and gives you a global way of accessing the instance. [more inside]
GitHub Issue-style File Uploader Using Stimulus and Active Storage
I recently built a drag-and-drop and copy-and-paste file uploader for Markdown (like GitHub’s editor) using Stimulus and Active Storage. Just published the code and my write up on it: https://hybrd.co/posts/github-issue-style-file-uploader-using-stimulus-and-active-storage
International Pricing for Ruby and Rails Books and Courses
If you live in a country that has an undervalued currency compared to the dollar, it makes it difficult to invest in your education. [more inside]
Rubber Duck Dev Show Episode 18 | How Many 3rd Party Libraries Should You Use
Hear two rubyists discuss discuss how many 3rd party libraries you should use in your projects: https://www.rubberduckdevshow.com/episodes/18-how-many-3rd-party-libraries-should-you-use/
Rails Code Review with Kasper from Rails core
Kasper and I sat down to code review a pull request for the Unsafe URL protection in Rails 7. We talked about naming, shaping the code, and how to design code to better show its intentions. Watch the Rails PR Code Review with Kasper Timm Hansen screencast
New "Upsized" Female Pixel Punk Archetype (Incl Zombie/Ape/Alien) Experiment / Series
Hello, in the ongoing pixel art / punk programming - yes, in ruby - series I put together all new “upsized” unisize female pixel punk archetypes incl. zombie, ape, and alien that sport the same size / dimensions and eye/nose/mouth positions as the male archetypes. Pixel size (gender) equality at last! As a case study I converted the five top selling million $$$ punks to punkettes using the new unisize female archetypes that let you (re)use almost all “male” attributes such as Cap Forward, Knitted Cap, Headband, Small Shades, and so on. If the attributes differ for male / female such as wild hair or crazy hair - the female attribute version needs to get “stretched” by 2px on the left and top. And the neckwear such as the gold chain can (re)use the “female” version as-is. See the (Female) Pixel Punk Unisize Archetypes experiment page for more including the script - yes, in ruby - to (re)generate the top selling pixel punks from scratch / zero. Questions and comments welcome. Join us in the r/CryptoPunksDev channel / forum.
wordlist-1.0.0 released!
Wordlist is a Ruby library for reading, combining, manipulating, and building wordlists, efficiently.
Glimmer DSL for SWT Supports Linux DEB/RPM Packaging
Glimmer DSL for SWT v4.21.2.0 just added support for Linux DEB/RPM native executable packaging (while still supporting the older GEM packaging alternative), rendering Linux a 1st class packaging citizen in Glimmer DSL for SWT just like Mac, which has support for APP/DMG/PKG native executables/installers, and Windows, which has support for MSI/EXE native executables/installers. [more inside]
The Joy of Structs
I wrote a comprehensive guide to Ruby Structs which is meant to shed more light on this underutilized but powerful primitive. Enjoy!
Async Ruby
Ruby has an Async implementation! It’s available today, it’s production-ready, and it’s probably the most awesome thing that’s happened to Ruby in the last decade, if not longer. [more inside]
Evolution of Encrypted Credentials in Rails 6.2
With each update, the credentials feature acquired better shape. This post will offer a peek into the evolution of encrypted credentials since its inception in Rails 5.1 [more inside]
Enumerations system for Ruby with awesome features
Today I published my gem for building enumerations in classes. [more inside]
Rails API Building: The Resourceful Way
A unique, but thoughtful approach to building Rails REST APIs by using POROs to build endpoint resources. This article also briefly touches on how to use links on both the server and client to dictate application behavior. [more inside]
Building, Testing, and Deploying Google Cloud Functions With Ruby
Google’s Cloud Functions let developers run their code in production in a scalable way without worrying about the minutiae of server administration. In this article, Subomi shows walks us through building a real-world service using GCF. https://www.honeybadger.io/blog/building-testing-and-deploying-google-cloud-functions-with-ruby/