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.
7 February 2023
4 Strategies To Remove Dead Code from your Ruby App
How much does it cost you to carry dead code? How do you find and remove zombie Ruby code? [more inside]
6 February 2023
Rubber Duck Dev Show Episode 72 | Game Development in DragonRuby With Amir Rajan
In this episode, we discuss game development using the DragonRuby 2D engine with Amir Rajan: https://www.rubberduckdevshow.com/episodes/72-dragonruby-game-development-with-amir-rajan/
abidump gem - command-line tool to dump / pretty print or (re)format abis
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, abidump that ships with a command-line tool that lets you dump / pretty print or (re)format application binary interfaces (abi) for Ethereum & Co.. See the abidump readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.
Getting Started with Hanami and GraphQL
Ten simple steps to get started: https://lucaguidi.com/2023/02/06/getting-started-with-hanami-and-graphql/
Demystifying the Asset Pipeline
The asset pipeline can be confusing. So, in this episode, we explore Sprockets and the movement towards Propshaft, a new Rails library for managing assets. We’ll also have a look at some nuances with jsbundling and how to overcome them. https://www.driftingruby.com/episodes/demystifying-the-asset-pipeline
Rails 7. Start Kit. Release 1.5 has been published
Hello! New release of Rails 7. Start Kit is here! Release 1.5. This release introduces RSpec as a part of the project. Full list of recent changes you can find in the release list. Have an easy and happy coding!
5 February 2023
Ruby 3.2 comprehensive changelog
The Ruby Changes (open, structured, explained, and cross-linked changelogs for Ruby) is updated to include all Ruby 3.2 changes with all the “why”s, “how”s, and links to docs and discussions!
4 February 2023
Ruby Conferences & Camps in 2023 - What’s Upcoming? Update
Hello, I have updated the ruby conferences & camps in 2023 calendar page over at Planet Ruby. Built in ruby via github pages (jekyll) and an open datafile (in yaml) - see conferences2023.yml . What’s Upcoming? Rails Girls Rotterdam (FREE!), and more. PS:Did you know - the calendar web feed gets (automagically) syndicated on Rubyland News. Anything missing? Yes, you can. Add an upcoming ruby conference or camp. PPS: For the record I posted to r/rails too and - surprise, surprise - got censored - for what?
Credentials for Bridgetown
Bridgetown gets better with every release and along with rock solid static site features, the optional dynamic capabilities go well beyond a simple SSG. That said, your growing Bridgetown site might rely on external services and APIs at some point and managing their credentials with environment variables is tedious at best. Enter the Bridgetown Credentials plugin which implements the best parts of credentials from Rails: Commit encrypted credentials to the repo and decrypt them on the fly.
We should adopt and use new Ruby features
In the same way, words or the language (we speak) shape our thinking and our reality, programming language constructs or features shape how we define a problem and the solution that we code for that problem: [more inside]
3 February 2023
abi2sol gem - command-line tool for abi to sol(idity) contract source code generation
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, abi2sol that ships with a command-line tool that lets you generate solidity (contract) source code from application binary interface (abi) definitions (in json). Happy blockchaining with ruby. Cheers. Prost.
Q&A with Hanami+DRY+ROM core | Collecting questions for Hanami Mastery Special (#050)
We’re happy to announce, that for Episode #050 we’ll host a QA session with Hanami core team! And all of you can be a part of it! Ask your questions here! 👇 [more inside]
Deployment from Scratch with a global PPP discount
If you are from a developing country such as Philippines, you can now get my book on deploying Rails applications with a significant discount. Up to 60% for some destinations.
2 February 2023
FormService: a PORO ServiceObjects with a state
An easy-to-implement technique that allows having validations and state objects on top of your services without changing a single line of code. https://dev.to/povilasjurcys/formservice-a-poro-serviceobjects-with-a-state-4a75
Release Management: Is Your Product Ready for Success?
You never get a second chance to make a first impression. A bad first release can ruin months of work. How do we maximize the chance of success? [more inside]
Drum Solo Demo of Glimmer Metronome (+ Menus & Shortcuts)
I recorded a drum solo to demo Glimmer Metronome, a Ruby-based metronome GUI app that supports different beat counts, click sounds, and tempos, including tap-based tempo calculation. It was built with Glimmer DSL for SWT using JRuby to help me with my drumming practice. Glimmer Metronome just received a new update in version 1.1.4 that adds menus and keyboard shortcuts, thus becoming more user-friendly when used via the keyboard alone. [more inside]
1 February 2023
Ronin 2.0.0 finally released!
After nearly a full year of non-stop development since the initial announcement of The Big Refactor, 4153 commits made, 700 issues closed, and a month of beta testing, Ronin 2.0.0 has finally been released!
Ruby on Rails associations can be buggy
Unfortunately, I learned it the hard way. Check out my new article so you can avoid the same mistakes. https://evgeniydemin.medium.com/ruby-on-rails-associations-can-be-buggy-373930db8c54
Write your own Domain Specific Language in Ruby
Let’s write our own DSL in Ruby, for gems and as part of larger apps!
A Guide to Rails View Helpers
Find out how you can keep your Rails views readable using helpers. https://blog.appsignal.com/2023/02/01/a-guide-to-rails-view-helpers.html
Hanami v2.0.3
Params pattern matching, HTTP statuses as symbols, minor enhancements, and bug fixes. https://hanamirb.org/blog/2023/02/01/hanami-203/
31 January 2023
Spin up your Hanami apps easily with Hanamismith!
I always liked rails templating collections that allowed us to quickly compose ruby apps. Now the same is possible for Hanami