ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Kerrick Long (code)

Having worked with in-depth for 2 years now, I can articulate what I don’t like about the .

1. is a terrible primitive to build most software upon. are better for most things, and event listeners are fine.

2. Its system encourages long-lived, easily-accessible Singletons that are serious “foot guns.”

3. Data management is painful. Resolvers are a worse DX than either ’s Ember Data or ’s TanStack Query.

@kerrick That's a great point!
I'm currently learning Angular. What advice do you have for me?

@real_pouria For 2, I’ll quote @russolsen from “Design Patterns in Ruby”:

> There is only one solution to this problem: _Don't do that_. Properly applied, singletons are not global variables. Rather, they are meant to model things that occur exactly once. Yes, because it occurs only once, you can use a singleton as a unique communications conduit between bits of your program. But _don't do that_.