Joe Rafaniello
jrafanie.bsky.social
Joe Rafaniello
@jrafanie.bsky.social
Husband and father. I enjoy deleting and occasionally adding code, usually ruby. I have embraced dad jokes and enjoy traveling with my family.

https://github.com/jrafanie
Reposted by Joe Rafaniello
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... 🧵
Do not round `a**b` to infinity by mame · Pull Request #12033 · ruby/ruby
... instead, just calculate the value unless it is too big. Also, this change raises an ArgumentError if it is expected to exceed 16 GB in a 64-bit environment. (It is possible to calculate it stra...
github.com
November 26, 2024 at 12:23 PM
It's disappointing to see so much feature feedback, including some very useful and some not so useful, and yet it seems as though github isn't reading it. github.com/orgs/communi...
New Enhanced Repo Insights Views · community · Discussion #135572
We've updated two of the repo insights views - contributors and code frequency - enables improved focus navigation to support point-by-point navigation, the ability to hide a series by interacting ...
github.com
November 20, 2024 at 5:08 PM
Reposted by Joe Rafaniello
November 19, 2024 at 5:27 PM
Reposted by Joe Rafaniello
I love Quiet Posters — can be pretty easy to miss friends or other infrequent posters in the following firehose, this does a great job of plucking them out for you. bsky.app/profile/did:...
November 12, 2024 at 9:37 PM
Reposted by Joe Rafaniello
Bluesky has gotten LOUD! That's not a bad thing, but I've been here a year and a half and I'm getting used to the changes.

Here's a feed I love. It finds the quieter posters from your follows to display only.

These are often your friends or deliberate follows. Give it a try!
November 15, 2024 at 2:29 AM
I almost poured water into my half full coffee mug so that's how it's going. TGIF
November 8, 2024 at 3:36 PM
FYI, it looks like URI 1.0.0 was released and removed some constants that have been there forever. REGEXP and PATTERN.

github.com/ruby/uri/iss...
URI::PATTERN NameError starting with version 1.0.0 · Issue #125 · ruby/uri
Thanks in advance for your work on this library. URI::PATTERN constant has existed for a long time, since at least ruby 2.1/ URI 0.9.11. It looks like URI 1.0.0 dropped it without deprecating it. W...
github.com
November 7, 2024 at 10:01 PM
The "New Repo Insights" feature at github seems to be only users commenting. I'm surprised it's been a few months and there has been no official update on the concerns people raised. github.com/orgs/communi...
New Enhanced Repo Insights Views · community · Discussion #135572
We've updated two of the repo insights views - contributors and code frequency - enables improved focus navigation to support point-by-point navigation, the ability to hide a series by interacting ...
github.com
November 6, 2024 at 1:18 AM
Reposted by Joe Rafaniello
PSA to all Rubyists about the great `all-ruby` tool that allows one to run Ruby code against all Ruby versions since the beginning. If you see something that doesn’t make sense, or think is a regression, just run it against this tool to see how it behaves on different Ruby versions.
The bot is useful, but it is just a frontend for the all-ruby project running on a server. Anyone can run it in a Docker container on their machine as well: github.com/ruby/all-ruby (see the "Docker" section)
GitHub - ruby/all-ruby: Run various versions of ruby command
Run various versions of ruby command. Contribute to ruby/all-ruby development by creating an account on GitHub.
github.com
November 5, 2024 at 12:08 PM
Reposted by Joe Rafaniello
I have been curating my starter packs, so even if you used one previously, you might want to check back from time to time.

Good list of Ruby folks here, and if you look at their following/followers you’ll find even more.

go.bsky.app/HD2Ty2o
October 31, 2024 at 2:43 PM
Reposted by Joe Rafaniello
Benoit Daloze benchmarked different Ruby parsers and shared his results:

eregon.me/blog/2024/10...

Prism comes out on top in terms of performance and developer ergonomics.

It’s nice to see it’s the default parser in CRuby 3.4.0-preview2. It’s the integrated parser used by TruffleRuby 24.1.1, too.
Benchmarking Ruby Parsers
The new Prism parser has become the default in Ruby 3.4.0 preview 2.
eregon.me
October 30, 2024 at 2:01 PM
I gave it time and the repo insights/contributors view still feels inferior to what was there before for many of the reasons others have stated: github.com/orgs/communi...
New Enhanced Repo Insights Views · community · Discussion #135572
We've updated two of the repo insights views - contributors and code frequency - enables improved focus navigation to support point-by-point navigation, the ability to hide a series by interacting ...
github.com
October 28, 2024 at 9:20 PM
My new favorite warning:
DEPRECATION WARNING: DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated
October 28, 2024 at 8:59 PM