Show more

I’m at today - any other ruby.social folks here?

James Adam boosted

def back_to_mastdon
p "Hello world"
end

back_to_mastdon

James Adam boosted
James Adam boosted
James Adam boosted

Matz is getting people to weigh in on the |> operator over on the birdsite: twitter.com/yukihiro_matz/stat

My thoughts, having it as an alias for dot operator is meh.

There's so much more in that talk beyond `qlobe`, it's an amazing collection of ruby programs.

I had thought about proposing a talk to about `qlobe.rb`, but I'm glad to see that the author has already done one: youtube.com/watch?v=6K7EmeptEH

James Adam boosted

Hey #Ruby devs, if you're looking to help out the #fediverse, check out #prismo! It's a link sharing platform, similar to lobste.rs or hacker news, that federates over #ActivityPub.

The lead (and only) dev has to back off development for a while, but it would be great to spin up a team that could pick up the slack and keep the project moving.

You can find the repo here:
gitlab.com/prismosuite/prismo

and the matrix room here:
matrix.to/#/!IadFDmzRTSlgzQTZH

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 👋

Show more
Ruby.social

A Mastodon instance for Rubyists & friends