Cristian Rivera's Avatar

Cristian Rivera

@cristianrivera.com.bsky.social

πŸ’Ό Engineer at #Stripe | Based in #NYC πŸ’Ž 10+ Years Crafting #Ruby #WebApps πŸ§ͺ #Homelab & πŸ—οΈ #3DPrinting Enthusiast

58 Followers  |  130 Following  |  8 Posts  |  Joined: 31.05.2023  |  1.6898

Latest posts by cristianrivera.com on Bluesky

It seems like every word and word combination you can think of is already taken on Rubygems by a 0.0.1 gem that was last published 14 years ago, has next to no downloads and the author has disappeared from the face of the earth.

Can the community come up with a better process for freeing these up?

16.04.2025 11:03 β€” πŸ‘ 8    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

It was indeed naive, a multi-threaded test script proved it wasn’t atomic πŸ˜•

12.03.2025 19:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Is something like this too naive?

get_or_set = hash[:key] ||= value

It avoids the block, but not sure about the GVL protection…

12.03.2025 19:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It will loop endlessly between :waxing_crescent and :third_quarter and never back to :new_moon, which would otherwise finally return from the loop.

Line 8 should be changed from waxing to waning!

22.01.2025 00:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Data Controls FAQ | OpenAI Help Center

Wondering how much we can read into this and take them at their word.

Specifically β€œHow do I turn off model training (ie. β€œImprove the model for everyone”)?”

help.openai.com/en/articles/...

05.01.2025 20:20 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Stripe Black Friday and Cyber Monday 2024 See how Stripe users are shaping global consumer spending this Black Friday/Cyber Mondayβ€”through transaction volumes, payment methods, and more.

Loading...

bfcm.stripe.com

27.11.2024 21:35 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Though in your follow up example where you’re taking in attributes of an entity such as a Person, I think all Keyword arguments are best.

19.11.2024 00:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It depends, but usually:

- Positional arguments if there’s only one argument.
- Positional argument for the main argument along with Keyword arguments for additional, optional arguments.

I avoid relying on Positional arguments when there are multiple arguments unless their meaning is very clear!

19.11.2024 00:17 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ‘‹πŸΌ I’m an #engineer at #Stripe based in #NYC, with over 10 years of experience building #frontend and #backend #webApps. My main specialty is #Ruby, but I enjoy working across the stack.

When I’m not coding, you can find me walking my #goldenRetriever or refining my unnecessarily complex #homelab!

17.11.2024 16:58 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@cristianrivera.com is following 19 prominent accounts