Show more
James Adam boosted
James Adam boosted

I'm extremely pleased to launch Run Your Own Social: How to run a small social network site for you friends.

This is a guide book to running a small, tight-knit federated social network server. It comes from my year of experience running Friend Camp. It's focused largely on SOCIAL solutions, though it does touch on the technical.

I've tried to keep it technology-neutral, and it should be a pretty easy read for anyone who's been on the fediverse for a while.

runyourown.social/

PSA:

class Thing
private
def self.foo
end
end

... does not do what you would like it to do.

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

Show more
Ruby.social

A Mastodon instance for Rubyists & friends