There have been many musings and learnings since our last TIL update in early September. Scroll on for the latest edition of Things We Learned from the KD team.
Turbo 7.2.0 was released for use with Rails and included a bunch of new goodies.
Turbo 7.2.0 is the largest upgrade to this cornerstone of Hotwire since we first released the framework. Tons of new features, even more fixes, all from a bunch of new contributors 🎉 https://t.co/EuqHoeRlUv— DHH (@dhh) September 22, 2022
From the KD team:
Since 7.2.0 another small Turbo update has also been released.
From Stefan: TIL you can make sure every object is “pattern matchable” in Ruby by implementing deconstruct_keys. I’m not sure how I feel about pattern matching yet though haha!
From Adam: TIL if you stick this in the top of a file in your rails project, you can just write a ruby script and it’ll run within the environment:
#!/usr/bin/env bin/rails runner
Then you do
chmod +x <file> then just
From Chris: TIL that IRB has a help command to help you look up API docs
From Steve: TIL this tip on Ruby's Enumerable #tally.
From Steve: This is a good post on adding tagging to Trix: Combined Mentions with ActionText (Part 1).
From Chris: Check out Maglev for adding a page builder into your Rails app.
From Andrew: TIL the paper_trail gem has this cool feature:
From Chris: Well this is fun. Sidekiq can now run inside a puma worker for low traffic work!
From Steve: My fuzzy finder in vim was running super slow. This exponentially sped it up. Caching and Ack Grep were the answer.
From Adam: TIL Phoenix LiveView has a new release.
From Chris: You can draw and render flowcharts (and other diagrams) in GitHub.🔥
From Adam: TIL this tip about editing a long config var on Heroku.
From Steve: TIL about new Actions on Github Mobile.
From Patrick: Apply this thinking to how you systematically layout pages, common threads, and visual landmarks as users navigate from page to page.
Here’s a thread I’ve been meaning to do for a long time about eye tracing and spatial orientation in Mad Max: Fury Road. It’s really about one very specific moment — just a few seconds, in fact — but a good opportunity to talk about stuff like axial cuts and visual landmarks. pic.twitter.com/JZM6uxdckN— Will Ross (@SadHillWill) September 29, 2022