Show more

When debugging , I always struggled to get to enter the contents of a block, painstakingly stepping through internal methods and watching out for the yield. If you've ever debugged and/or callbacks, you'll know this pain.

Today, I learned you can just type `c <line number>` to jump straight into the block while skipping all of the plumbing that yields to it.

:ruby: 🐜 🚫 👍

In case any of you are in , I'm hosting tonight's meeting, and would love to see you there!

lrug.org

Anyone know _why_ future releases of are planning to remove scripting runtimes like & ?

James Adam boosted
James Adam boosted

Welp, you can now watch me delivering the talk about why I think federated package management is what we should do. Ulp.

youtu.be/MO8hZlgK5zc

James Adam boosted

Oh, hi, friends. Ruby gem drive-by detail fixer and co-maintainer.

James Adam boosted
James Adam boosted

Ruby tip:

class Foo
def self.value
@value ||= defined?(super) ? super : DEFAULT_VALUE
end
end

this will turn Foo.value into a value you can configure per class (with a default), and you'll automatically inherit the superclass' value

James Adam boosted

I was initially skeptical to another code loader, but Zeitwerk is actually very very nice: github.com/fxn/zeitwerk. it's based on Ruby's built-in autoload (as opposed to const_missing) so constant resolution works as expected

James Adam boosted

I am a software developer, my favourite programming languages are Ruby and C++.

I also love Scholasticism philosophy and video-games.

James Adam boosted

RT @mudge@twitter.com

I’ve written up a comprehensive overview of the new function composition operators introduced in Ruby 2.6: “A Guide to Function Composition in Ruby”, ghostcassette.com/function-com

🐦🔗: twitter.com/mudge/status/11261

James Adam boosted

Hi, I'm Rui from Portugal, Rubyist, working with RoR, React/Vuejs and getting into Elixir/Phoenix. I also teach web development at Le Wagon bootcamps around the world 👋

James Adam boosted

New here? Remember that Twitter is optimized to make you into passive consumers, by en(r/g)aging you with content that you don't choose yourself.

Here, that doesn't happen. But it also means you're responsible to find people to follow.

It will take some work.

If you're willing to put that in, you'll find a wide variety of friendly people that will be happy to have meaningful conversions and laugh and cry together with you.

Start by searching and looking at who other people follow.

James Adam boosted

Hopefully this works alright! 🙋‍♂️

So, I am Tarek, Rubyist, Engineer, ex-Intercom, living in Dublin, Ireland. Would love to see how this plays out connecting to Rubyists all around 🌍

A lot of new folk joining this instance over the last few days - please, introduce yourselves and tag it with - and welcome!

Might I take the liberty of recommending "Maintainable", a podcast by @robbyrussell? Too late, I just did.

podcasts.apple.com/no/podcast/

James Adam boosted

Dear Ruby devs and game devs. I have a crazy announcement I want to share. Please boost.

Last week I released A Dark Room to the Nintendo Switch. Within the game, I also shipped a Ruby interpreter and a code editor as an Easter Egg.

*This Easter Egg effectively turns every consumer spec-ed Nintendo Switch into a Ruby Machine.*

1. Download A Dark Room from the US/EU.
2. Connect a USB keyboard and press the “~” key.
3. Follow the onscreen instructions.

James Adam boosted
James Adam boosted

I’m available for software development work. Looking for contract, max 4 days/week, mostly remote, not socially destructive. Ruby/Elixir/Scheme/anything else within reason. All leads gratefully received!

James Adam boosted
Show more
Ruby.social

A Mastodon instance for Rubyists & friends