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!

🐦🔗: 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

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

Me: How do I work with currency?

Ruby: Just use BigDecimal.

JS: Deal with floating point math edge cases on every operation you do, forever.

Holm :ruby: boosted

A Noble Circle is free for PI Day. Hope you enjoy it. It is best played with sound on, and with a loved one. itunes.apple.com/pl/app/a-nobl

Holm :ruby: boosted

Hey all! So who’s going to RailsConf this year?

Show more

A Mastodon instance for Rubyists & friends