Profile avatar
allan.social
Tech, startups, video production & livestreaming. Ruby on Rails dev since '05, also work w/ Lua, JavaScript, DaVinci Resolve, ATEMs, Bitfocus Companion & Lumix. 📹 @livetoair.uk 🔗 https://allan.social
84 posts 694 followers 631 following
Prolific Poster
Conversation Starter

incredible string slice feature in Ruby that allows you to match against a regex and extract capture groups in a shorthand way learned this in a @gorails.com video with Chris Oliver more details: github.com/jbranchaud/t...

How well do you really understand Ruby methods? Let's find out. (1/100)

Here's a roundup thread of everyone who has completed the #20DayGemChallenge. This has been so much fun, and I'd be shocked if you didn't come across at least one gem you've never heard of before that's useful to you if you read through these.

One-liner methods in Ruby are useful when you have commonly used variants of classes, but don't want to initialize them with the same arguments or via class methods. This is a Phlex component that I initialize via `BoxComponent.new`, and variants via `BoxComponent::Small.new`, etc.

Reading Rebuilding Rails (rebuilding-rails.com) to commemorate Noah and learn from him. Very sad news, RIP.

I never realized you could query ActiveRecord dates with open-ended ranges until today. User.where(created_at: ..Time.current) Or .where(created_at: Time.current..) #til

2024 is the year with the most Ruby talks in a single year, ever! This is the first time we beat the previous all-time record from 2015! Ruby is so back!

Had a little bit of fun with ActionMailbox lately (one always does) and decided to share about it.

RubyConf 2024 talks are live on @rubyvideo.dev! 🥳

I know this will never be fixed, but Ruby's usage of the class Time to represent a timestamp, and thus having no data type for storing time (e.g. time of day) is extremely unfortunate and frustrating. Times and dates are extremely hard to model to handle all situations, so I get it.

Monday morning reading for all you Rubyists out there. Topic: Static Typing! Linking to 3 articles here that all reference each other (next two in the replies) What About Static Typing in Ruby? from @noelrappin.com - noelrappin.com/blog/2024/08...

So far Rails 7.2 -> Rails 8.0 is my easiest Rails upgrade ever

Learned a lot about pattern matching in Ruby yesterday. Started looking through some blog posts on the topic and I this one covers pretty much everything I discovered yesterday. womanonrails.com/ruby-pattern... Definitely check it out if you haven't spent much time with pattern matching in Ruby

Just because I think SQLite works great for Joy of Rails doesn’t mean it’s right for you. You may be wondering: "Is SQLite a good fit for my next Rails app?" I’ve set out to help you answer that question here: joyofrails.com/articles/wha... #sqlite #rails

PSA: DRY is not about repeating code, but rather about not repeating knowledge!

Episode #485 - Kamal Database Backups #ruby #rubyonrails #programming #code #deployment #kamal www.driftingruby.com/episodes/kam...

We just kicked off a new season of @rooftopruby.com. Catch the first episode here.

New Blog: "How far could I get introducing real time updates to my app on a train to London I wondered? What could go wrong? Well Solid Cable is so rediculously simple that I’d finished before I got to Paddington!" #rails #solid-cable mileswoodroffe.com/articles/sup...

No build with Rails and Importmap” What is Importmap? How it works? How to use it with Rails and Rails Engines? When to use Importmap? When not to use Importmap? Inspect the example app running on production and its code. mariochavez.io/desarrollo/2...

Did you know that #Rails provides a way to preview your mailers in the browser without having to send them? See guides.rubyonrails.org/action_maile... Sharing because I often forget this and I've met a bunch of people who weren't aware.

Fresh Remote Ruby episode on Solid Cable (Action Cable powered by SQLite instead of Redis) with @excid3.com @andrewm.codes and @pezza.co is 🔥! Got thoughts to share, but first - give it a listen: www.remoteruby.com/2260490/epis...

Excited to announce that Jean Boussier—Rails Core team member, Ruby commiter, and Senior Staff Engineer at Shopify—will join me on The Rails Changelog to delve into Ruby on Rails Performance Optimization! Send in your questions! 🔴

I’m working on a new article to summarize what I think you need to know before choosing SQLite to back your Rails app. Joy of Rails runs entirely on SQLite. I‘m really happy with my choice but that doesn’t mean it‘s a good fit for everyone. Are you considering SQLite? What do you want to know?

Looking to impress your Ruby friends by calculating the largest known prime, 2**136_279_841-1? On Ruby 3.4.0-preview2 and earlier, 2**136_279_841-1 logs a warning and returns Infinity 😔. Thanks to @mametter.bsky.social, Ruby 3.4 will handle this calculation just fine! github.com/ruby/ruby/pu... 🧵

New feed for Ruby + Rails. Hand curated, so every single post will be on topic. bsky.app/profile/skil...

Rubyists, have you ever wanted more features from SQLite? I'm excited to announce the `sqlean` ruby gem! github.com/flavorjones/... packaging precompiled extensions from antonz.org/sqlean/ for things like unicode, hashing, regexps, time, fuzzy strings, math, and even CSV support! #ruby #sqlite

Explainers' paradox: - When building something there is power in abstractions. - When explaining something there is clarity in specifics.

If I were to recommend only three articles to read from last week, here are my recommendations: https://newsletter.shortruby.com/p/three-ruby-links-9 #Three #Ruby #Links #ThreeRubyLinks

If you are not yet subscribed, I invite you to subscribe to @shortrubynews : It is a Monday morning summary of everything happening in #Ruby world. Visit https://newsletter.shortruby.com and click subscribe if you want to get it in your inbox.

BreakVer vs SemVer versioning. I wasn't familiar with BreakVer either - seems a lot more practical. <big-break>.<small-break>.<non-break> vs <break>.<non-break>.<patch>

The second part of my 3-part blog series on Rack is out now! This one covers socket hijacking ... something you probably shouldn't do, but here's how to do it anyway 🙈 #Ruby #Rack blog.appsignal.com/2024/11/20/r...

With thanks to @zackgilbert.com for his writeup on Kamal - find it here if you haven't seen it already: bsky.app/profile/zack... I had a go this morning and also ran into a few hiccups w/ a bare bones Rails 8 app, deploying to a Gandi Debian VPS from WSL. Few notes...