Hand-picked, high signal, always on topic.
Maintained by @skillstopractice.com
Also available as a feed:
https://bsky.app/profile/did:plc:ip3trmvdbnlm4g7cdc5xs7ub/feed/aaaf5jle4pb7e
Just getting set up over there but you'll find the account here:
ruby.social/@distilled
I will set up bridging when I can, not sure if I will do crossposting though.
If you're set up with @ap.brid.gy here I can still share your posts that way.
I know and like several Rails core members, as well as several Basecamp employees. I understand the squeeze that can happen when speaking out individually only […]
I know and like several Rails core members, as well as several Basecamp employees. I understand the squeeze that can happen when speaking out individually only […]
If that sponsor was Shopify, then in effect, this confirms that a company that DHH is a board member of forced this action.
If not, who was responsible for this then?
This is a very […]
[Original post on mastodon.social]
If that sponsor was Shopify, then in effect, this confirms that a company that DHH is a board member of forced this action.
If not, who was responsible for this then?
This is a very […]
[Original post on mastodon.social]
Just getting set up over there but you'll find the account here:
ruby.social/@distilled
I will set up bridging when I can, not sure if I will do crossposting though.
If you're set up with @ap.brid.gy here I can still share your posts that way.
Just getting set up over there but you'll find the account here:
ruby.social/@distilled
I will set up bridging when I can, not sure if I will do crossposting though.
If you're set up with @ap.brid.gy here I can still share your posts that way.
I'll post when I get Mastodon set up + an RSS feed + newsletter.
I'll post when I get Mastodon set up + an RSS feed + newsletter.
joshfrankel.me/blog/viewcom...
#ruby #rubyonrails
joshfrankel.me/blog/viewcom...
#ruby #rubyonrails
dcyoung.dev/shorts/how-e...
#RubyOnRails #WebDevelopment
dcyoung.dev/shorts/how-e...
#RubyOnRails #WebDevelopment
- Granular — Domain::Specific::NotFoundError
- Generic/Reusable — Error::NotFound
- Not — StandardError/raise 'x'
Personally, I create my own error classes so I can see what's wrong at a glance, even if it means catching existing ones.
#RubyLang
- Granular — Domain::Specific::NotFoundError
- Generic/Reusable — Error::NotFound
- Not — StandardError/raise 'x'
Personally, I create my own error classes so I can see what's wrong at a glance, even if it means catching existing ones.
#RubyLang
Keep them coming! Discoverability is hard these days and RSS was one of those lovely tools that deserves a comeback.
I am going to try to start keeping an eye on those as well and sharing interesting stuff I find from time to time.
Keep them coming! Discoverability is hard these days and RSS was one of those lovely tools that deserves a comeback.
I am going to try to start keeping an eye on those as well and sharing interesting stuff I find from time to time.
I am going to try to start keeping an eye on those as well and sharing interesting stuff I find from time to time.
Just use `private_class_method :new`.
This conveys intent that your class is not designed to be initialized from outside — perfect when you want to use the factory pattern.
Just use `private_class_method :new`.
This conveys intent that your class is not designed to be initialized from outside — perfect when you want to use the factory pattern.
The user triggers the creation of a file. That file is created using a background job. I could update the view using Turbo Streams (e.g. render a 'Download Now' button). But I'd like download to automatically start 🤔
#rubyonrails
The user triggers the creation of a file. That file is created using a background job. I could update the view using Turbo Streams (e.g. render a 'Download Now' button). But I'd like download to automatically start 🤔
#rubyonrails
During the last days I have done an immersion into namespaces, the new big feature that is coming in Ruby.
Here's a digested mental model for you all.
gist.github.com/fxn/86ad8584...
During the last days I have done an immersion into namespaces, the new big feature that is coming in Ruby.
Here's a digested mental model for you all.
gist.github.com/fxn/86ad8584...
Rails.cache.fetch([complicated,cache,key], expires_in: random_interval) do
dog_of_a_SQL_query
end
Cache hitrate: 10% (if anyone even knows what it is)
Rails.cache.fetch([complicated,cache,key], expires_in: random_interval) do
dog_of_a_SQL_query
end
Cache hitrate: 10% (if anyone even knows what it is)
LoadError: cannot load such file -- cgi/cookie
I'm disabling ruby head version in our CI matrix for the time being but maybe there's a fix somewhere?
LoadError: cannot load such file -- cgi/cookie
I'm disabling ruby head version in our CI matrix for the time being but maybe there's a fix somewhere?
An easy way to define class level accessors is nice but hard to see the use case for the instance level behavior.
An easy way to define class level accessors is nice but hard to see the use case for the instance level behavior.
Handy little shortcut! 🔧
#ruby #rubyonrails
Handy little shortcut! 🔧
#ruby #rubyonrails
plainvanillaweb.com/index.html
plainvanillaweb.com/index.html