today I learnt that "9".succ == "10" (and in general that String#succ only works on the alphanumeric values of a string)

@erika oh hi there! doing anything fun with Ruby?

Holm :ruby: boosted

How does everyone order their methods in a class?

# Alphabetical
def a; end
def b; end

# Importance
def business_logic; end
def utility_method; end

# Invocation sequence
def call

def called_first; end
def called_second; end

Holm :ruby: boosted

Hey, folks! My company is looking for devs and QAs :D
We use Ruby!


🙌🏼 We're hiring! We're currently looking for a full-stack dev and a QA engineer 🤓 Check out our open positions here!


@jamey conjunctive grammars turned out to be trivial: I haven't found a way to add full boolean grammars without drastically changing the algorithm.

Holm :ruby: boosted

Converted the Rails style guide and the Ruby style guide to AsciiDoc, too.

Go check it out!

Why AsciiDoc? It's hard to write a blog post. It's easy to write an email. AsciiDoc was created to be easy to write in the first place.

Ruby tip:

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

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

what is the best UI you've seen for browsing API reference documentation (on the web)? (ignore the actual quality of the text)


- rust:
- ruby core:
- yard:
- rails:
- one big markdown:

just pushed out a new version of Duktape.rb that supports bignums and 64-bit numbers:

Duktape is superb if you ever need to embed JavaScript in Ruby (and don't want to spend hours waiting for V8 to compile)

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

if you're writing a CLI tool you should definitely check out cri for parsing command line arguments:

Holm :ruby: 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 🌍

Holm :ruby: boosted

I wrote up my work notes on Piranesi’s Perspective Trick.
Pretty pictures, maths, it has it all:

Holm :ruby: boosted

I've been playing with Roda recently, and it's really fun. Go for it.

Holm :ruby: boosted

I got into coding because I wanted to create games. Doing that back in the 90’s was difficult. No internet, expensive computers, and fragmented compilers. This is not the case today. But because of shit bag companies, we end up with game dev “solutions” that are just as obtuse. We’ve replaced no internet, low level, complicated C with 2GB clicky-draggy-droppy IDEs that phone home and mine data. A Dark Room’s Easter Egg is an attempt to capture the magic of coding in its purest form.

I'm going to GitHub Satellite ( in Berlin, May 23rd. anyone else going? (or in the area at the same time?)

I wouldn't think I would ever say this, but right now I have a parsing problem where COBOL would be the perfect solution.

(of course, the reason is that the file format is designed for COBOL, but still)

Holm :ruby: boosted
Show older

A Mastodon instance for Rubyists & friends