Pinned toot

Hey folks! Welcome to ruby.social! 🎉

I'm hoping this will become a good, friendly community for Ruby-folks to chat and discover new friends. But for that to happen, you need to sign up!

ruby.social -- all are welcome

James Adam boosted

In Ruby you can call a parent class’s method from another method in a child:

class Parent
def foo
1
end
end

class Child < Parent
def foo
2
end

def bar
Parent.instance_method(
:foo
).bind(self).call - foo
# == -1
end
end

James Adam boosted

For the new folks on Mastodon, here are the various ways you can discover new people on here to talk to!

bnolet.me/posts/2019/11/discov

Please boost :)

James Adam boosted

Mike's one piece of advice for new Mastodon users - dive into that Federated column and follow ANYONE and EVERYONE who looks like they've posted anything at all interesting to you. Just hammer the button. There's no penalty for mistakes. Go wild.

Later, when your Home timeline is buzzing, go in and unfollow people you decide you're not enjoying so much now.

Then do that again a few times. Then some more. Forever.

Rails 6.0.1 was released a few days back: weblog.rubyonrails.org/2019/11

What version are you running for your main project? (please reply if you're not using Rails, that's interesting too!)

James Adam boosted

Are there any #Ruby devs from Frankfurt/Darmstadt/Rhein-Main here?

Is there at least one other person interested in toots like twitter.com/ruby_frankfurt/sta from the local Ruby Meetup?

There's been an influx of noise accounts here over the last few weeks, so I've updated our rules with a simple section about companies and random accounts: ruby.social/about/more#compani

My motivation is to reduce the amount of weird, random accounts that get created on this instance, to improve the signal-to-noise ratio for the real users.

If you have any thoughts about this, please don't hesitate to get in touch!

James Adam boosted

I've been building Flóðgátt, a replacement streaming API server for Mastodon. The goal is to cut RAM usage and make hosting an instance that much cheaper.

So far, we've cut RAM for the streaming server of an empty instance by ~94.2%

The next task is to make sure that lower RAM usage can scale without other issues (e.g., CPU).

To do that, I need a test server with enough connections to see how Flóðgátt performs under load.

That's where y'all come in: can you please follow @codesections ?

James Adam boosted

in
→ How to do a constant really 'private'

transcript: gist.github.com/esparta/cbe628

stack:

As usual, your feedback will be appreciated

P.S. The inspiration for this screencasrt came from this toot by @james: ruby.social/@james/10241167346

James Adam boosted

Heck yea! I finally was able to give approval to post my talk from the conference. Here's the first half of it!!! youtu.be/o0d4sjcUfCg

(second half coming soon) please pretty please boost

James Adam boosted

/

Hello! I'm a by trade, and a serial hobbyist. I use in my side project. I would call it a business, but I've yet to be paid for it. I'm interested in prototyping ideas, and in learning best practices!

Some of my serial hobbies include singing, playing drums and guitar, drone racing, rock climbing, knitting, dancing at weddings, running, and visiting breweries!

Sad to hear that @matthewrudy@twitter.com has passed away.

He was a great supporter of the Ruby communities in London, Hong Kong and far beyond.

You'll be missed, Matthew.

Anyone here use a gem/engine to integrate with Stripe billing? I used `payola-payments` in the past, but it's not been updated for a long time.

James Adam boosted

Hey #ruby folk ... I'm trying to trigger an autoscaler for testing purposes. Anybody have a simple cpu-pegging method handy per chance?

James Adam boosted

has anyone upgraded a rails 5.x app to rails 6 beta?

I thought the javascript assets were going to be required to be moved to webpacker, but it looks like they still work via asset pipeline

is the change that webpack is the default for new apps, but sprockets will continue working for existing apps?

#rails #ruby #dev #askmasto #software #rubyonrails #railsdev #sprockets #webpack #js #javascript

James Adam boosted

So where does one post Ruby jobs in 2019?

James Adam boosted

What version of Ruby is your main project or product running against?

James Adam boosted

Question. In which namespace `B` is defined?

```ruby
A = Class.new do
B = 1
end
A::B # => ???
B # => ???
```

More on the topic fili.pp.ru/leaky-constants.htm

Show more
Ruby.social

A Mastodon instance for Rubyists & friends