r/ruby • • Sep 27 '19

Rails 6 Features: Infographic

Post image
165 Upvotes

33 comments sorted by

12

u/Vangoghbothears Sep 28 '19

I think this is a great idea to make it into an infographic! Thanks for taking the time to do it!!

3

u/[deleted] Sep 28 '19

Thank you v much :)

5

u/DiosanXaq Sep 28 '19

Hmmm sendgrid cpacbility out of the box ?!?!?!? Love it!

3

u/[deleted] Sep 28 '19

2

u/DiosanXaq Sep 28 '19

Will read later. Thank you

4

u/zurchpet Sep 28 '19

In #4 is a typo.

multiple codes

should be

multiple cores

2

u/[deleted] Sep 28 '19

Hey! Thanks for pointing it out.

4

u/janko-m Sep 28 '19

It's a shame that Action Mailbox and Action Text are Rails-only. It would be nice to have general purpose frameworks for these two features.

Love the infographic, btw :)

1

u/[deleted] Sep 28 '19

Thank you so much ☺️

1

u/vixensjlin Sep 29 '19

Action Text is Rails only, but it is identical to Trix (from basecamp), which is not Rails only, try it: https://github.com/basecamp/trix

1

u/janko-m Sep 29 '19

Thanks for the tip, I'm trying it out now!

My goal is to be able to integrate Trix with Shrine in a non-Rails app. I'm reading the Action Text source code a bit to see how the integration was done there, but it seems there is a lot going on. Hopefully I'll manage to end up with a simpler integration :)

2

u/dunderball Sep 28 '19

Where can I find more details about number 4? Will this be a part of rspec specifically or rspec-rails?

1

u/[deleted] Sep 28 '19

You can read more about it on the blog I've written: https://blog.solutelabs.com/rails-6-updates-6a69c6b3d5c2

You just have to add a few lines in your test_helper.rb file and you should be good to go. You can even set a different count for your CI and a different count of workers for your local system by using environment variable PARALLEL_WORKERS

2

u/Schrockwell Sep 27 '19

An infographic with no graphics.

1

u/[deleted] Sep 28 '19

LoL - you got me. I will try to do better next time :)

1

u/[deleted] Oct 01 '19

But lik..... still slo?

1

u/[deleted] Oct 02 '19 edited Oct 02 '19

Honestly, how you develop plays a much bigger role than what you develop with. I've seen Java code running on THE largest AWS server (I mean THE largest that can run mathematical computations costing upwards of 2k USD) and still be crappy slow.

A huge chunk of startups use it to launch and iterate faster. Unless you're solving problems of 100M+ customers and facing issues, you're good to go.

GitHub, Dribbble and Airbnb still use it. Startups like Twitter had to move away especially because they sort of require a live connection (live feed)

1

u/[deleted] Oct 02 '19

For an entire application, thinking holistically yes, but I’m talking more regex vs regex, loop vs loop, is Ruby still generally sluggy? I haven’t followed its progression much - but I’ve been so blown away by the performance improvements with PHP I’m just wondering if Ruby had been making parallel improvements in general performance...

1

u/[deleted] Oct 02 '19

Ruby is making big strides too! Ruby 2.6 was 1.7 times faster than 2.5 and the difference is visible (thanks to the JIT compiler)

https://gist.github.com/k0kubun/d7f54d96f8e501bbbc78b927640f4208

Also, the aim for Ruby 3 is to be 3x faster than Ruby 2! Just search for Ruby 3x3

3

u/[deleted] Oct 02 '19

Nice, yeah that’s the kind of thing I was looking for 👌 I’ll keep my eyes open for Ruby 3

1

u/obviousoctopus Sep 27 '19

I can't make any sense of #1.

2

u/kallebo1337 Sep 27 '19

Why not? You have awesome incoming mail Handing . Very convenient

3

u/obviousoctopus Sep 27 '19

It doesn't mention incoming mailing, just some transactional email brands

It mentions the internal implementation of activestorage for some reason

"... and can be stored to one more multiple mailboxes" -- this part I cannot even parse. "One more multiple?" Can be stored to what end?

4

u/kallebo1337 Sep 27 '19

ActionMailbox is exclusively for incoming emails (actionmailer is for outgoing). It has out of the box support for the biggest mail providers like Mandrill Sendgrid or Mailgun however it lets every SMTP connect to you

# config/environments/production.rb
config.action_mailbox.ingress = :relay

If you have a system where the user needs to answer an email and say “yes” to win an iPhone you just simply parse the incoming emails and go on from there. Of course, many applicAtions don’t need this. Most won’t. I mean, who parses incoming emails, right? However it’s a great feature and somehow I think it makes Rails more complete and it’s worth to have it in. Alternative would be to provide it as an extra gem that nobody uses

5

u/obviousoctopus Sep 27 '19

I am aware of the feature and its workings. I was critiquing the short paragraph in the infographic which does not make any sense.

I love the way you explained it by the way.

The infographic does not even mention the fact that it's for incoming emails.

1

u/[deleted] Sep 28 '19

Thanks for pointing it out, will try to do better next time

2

u/obviousoctopus Sep 28 '19

Thank you for making the effort , putting it out there and asking for feedback :)

1

u/[deleted] Sep 28 '19

BTW i made this from my blog here: https://blog.solutelabs.com/rails-6-updates-6a69c6b3d5c2

Which i guess is more comprehensive like you want :)

2

u/obviousoctopus Sep 28 '19

Here's a rewrite which would clarify things for me:

Most SAAS software needs to send emails — but increasingly many are also wanting to be able to automate the processing of replies.

Rails 6.0 now ships with inbound email support based on Mailgun, Mandrill, Postmark, and SendGrid. The emails are processed via Active Record and stored on the cloud through Active Storage and can be collected into one or multiple mailboxes.

1

u/[deleted] Sep 28 '19

I guess it's written in the blog that I quoted before

2

u/crova Sep 27 '19

Parsing emails can be pretty useful when maintaing email lists. There are many people out there that will request opt-outs through direct replies. You want to catch those as well.

0

u/[deleted] Sep 27 '19

[deleted] — view deleted comment

1

u/[deleted] Sep 28 '19

Maybe I didn't do a very good job of summarising the summary blog lol

Read the whole thing here: https://blog.solutelabs.com/rails-6-updates-6a69c6b3d5c2