## Please Don't Nerf RubyLang Because #StyleGuides

Ruby has made some internal changes that remind me of the changes #RSpec made to clean up internals but uglified the code & made certain features simply stop working as expected.

Removing `foo rescue nil` is an exmaple. Some edge cases make this antipattern useful; replacing a one-liner with a complex method/chain is annoying. Mindful chainsaw-juggling gave expert #Rubyists superpowers. Not trusting power users is red #Kryptonite for code.

So @adamwiggins left a note in the πŸ“” book

> Keep up the Ruby-ing!

Heroku and #Ruby go together like foxes and cleverness. Did you know #Heroku was born as a Ruby platform? In the early days, it was only for #Rubyists β€” #Rails and #gems, blocks & foxes, all running wild in the cloud.

So when Adam says β€œKeep up the Ruby-ing!”—he’s really saying:
Let your gems sparkle, and remember that every Heroku #dyno is just a little fox,
waiting to carry your dreams into the cloud.

#whysfoxes #WPGTRPage11

Hey #rubyists and #ruby people! At $DAYJOB, I've been using the #racc and #rexical gems to create a grammar and parser for an internal sql-like query language. I was initially nervous because I didn't have much experience at this type of thing, but it's ended up being a very fun thing to work on. When finished, it will eliminate some years-old code written by some blithering idiot that's been source of odd bugs for a long time, and improve the user experience considerably. #programming

#Rubyists #Ruby

Riddle me this, in Ruby 3.4.2:

```Ruby

a = {
a: 'test' \
'test',
b: 'testing' \
'test',
c: 'test',
d: 'a test',
f: 'test' \
'test'
}

a.map { |k,v| v.frozen? }

# => [true, true, false, false, false]
```

For the #rubyists out there, should I use the new rails 8 auth generator or devise in a new #rails project?

It's my first time using Rails

#rubyonrails #ruby

@cedx I think it's a great option for #Rubyists that need some #JS without having to master the whole JS language or one of its many frameworks first. However, transpilers are abstractions, and all abstractions are leaky. Native idioms can sometimes be more optimal, and it can be hard to debug transpiled code if you haven't mastered the target language too.

Choosing #CoffeeScript as a transpiler over native #ECMAscript is therefore a trade-off. There's no canonical right answer.

Come on #rubyists - who else is going to be talking about #RubyWorld on fedi? https://andyp.url.lol/rw2024
Fediwall

Any #rubyists or #ruby events in Anaheim, CA this week? I’m flying out for a work event but I’ll have time on Friday and maybe on Monday and Thursday evenings!

#ProTip Never waste an opportunity to rant against language/ecosystem misfeatures! I never tire of complaining about the overuse of #FrozenStringLiterals in #RubyLang, or the over-reliance on community style guides as a stand-in for #codequality instead of using #TDD, intentional semantics, or good variables/comments.

If you don't trust other #Rubyists to understand `[].any? ? complain : shut_up` without an extra 4 lines of if/else bloat in your method, the real problem isn't the ternary!

@vincentritter There are quite a lot of us on ruby.social, as well as fosstodon and hachyderm. Your home instance doesn't matter much, but you'll probably discover more #Rubyists on your local timeline here than anywhere else.

Wherever you are in the fediverse, though, we always need more #RubyLang enthusiasts. "Come to the Dark Side. We have cookies!"