Peace out y'all.
I'm not going to participate on the same timeline as T***p in this universe or any other.
You can look in my bio to see where to follow me elsewhere. I'll be deleting this account some time in the next few weeks.
Sure sorry it's come to this. I really am.
I've posted a gist with output of rails new --help (list of the options to generate a new app) some time ago just because it's more readable in an md file than in a terminal. Since it got stars, I'm curious if people google it for the same reason. 😅
https://t.co/02f5CxRYUY
Probably a good time to remind everybody once again that the escape hatch for Twitter users—an open federated network of social sites mostly powered by Mastodon—is built on top of…
…#Ruby on Rails. 😎
https://t.co/zOCe3iTDaz
Wow, 50 developers registered already for #BridgetownConf2022, an online event hosted by the Bridgetown core team on Monday, November 7! You can register at the link below for some awesome #Ruby#WebDev goodness 👇
A common mistake programmers make is to build a feature without actually understanding what they were asked to build, and so they build the wrong thing.
It's a surprisingly easy mistake to make!
Where does everyone usually put their POROs? I know a lot of Rails apps have a services folder (not my preference). I sometimes organize by design pattern. That gets kind of silly sometimes though. Is lib an appropriate place for POROs?
Save the Date for BridgetownConf! Online (free!) event being held on Monday, November 7, 2022 — get notified when registration officially opens (soon!): https://t.co/R5HC70Q2xp
Ruby has a reverse_each method that allows you iterate an array backwards. Moreover, it's faster than just calling reverse method on array before iterating, because reverse_each doesn't create a new array.
The obvious difference from Struct is that Data is immutable (aka no reassignment of member variables). You initialize with data, and then that's it.
So perhaps we still need Struct after all, but Data is compelling for many use cases!
Struct no more?
::Data has arrived in Ruby. A more modern take on "value objects".
Person = Data.define(:first_name, :last_name)
me = https://t.co/pC2yrbvXfI(first_name: "Jared", last_name: "White")
Works with pattern matching!
Details & docs here:
https://t.co/5OHzYRo8N2
In his latest article, @mtoppa says: "If you’re an experienced member of the Ruby and Rails community, consider volunteering as a Guide, and share your experience and wisdom with a Scholar!" https://t.co/9MMKRnwdm5 #RubyConf#RubyFriends
How Do You Manage Ruby Application Dependencies?
☝️ The topic for today’s Fullstack Ruby Podcast. With a whole new initializer/configuration system coming to @bridgetownrb 1.2, it seemed an appropriate time to dive into various Ruby framework approaches.
https://t.co/R1C0xpFhHt
Almost all Ruby developers I know use the Hash#merge method to append one Hash to another.
What if I told you, you could do this using the double splat operator(+coolness factor) and it is sightly faster? 💨
Benchmarks: https://t.co/mCOnP03Qh8
Check this out 👇