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
called_first
called_second
end

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!

RT @AppTweak@twitter.com

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

🐦🔗: twitter.com/AppTweak/status/11

@jamey conjunctive grammars turned out to be trivial: github.com/judofyr/glush/commi. 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!
- github.com/rubocop-hq/rails-st
- github.com/rubocop-hq/ruby-sty

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
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

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

examples:

- rust: doc.rust-lang.org/std/
- ruby core: ruby-doc.org/core-2.6.3/
- yard: rubydoc.info/gems/yard/0.9.19
- rails: api.rubyonrails.org/
- one big markdown: github.com/GoogleChrome/puppet

just pushed out a new version of Duktape.rb that supports bignums and 64-bit numbers: github.com/judofyr/duktape.rb/

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: github.com/fxn/zeitwerk. 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: github.com/ddfreyne/cri

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: link.medium.com/LnvCQvqgdW

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 (githubsatellite.com/) 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 more
Ruby.social

A Mastodon instance for Rubyists & friends