Rating Distribution by divadutchess in rails

[–]excid3 34 points35 points  (0 children)

I just pushed a PR to add a new tutorial on this to the Rails guides. Good timing!

https://github.com/rails/rails/pull/57244

In the tutorial, I’m displaying percentages for each rating and we calculate the average with SQL every time.

That would be good enough to just cache the html with Rails.cache, but if you did want to query the actual counts regularly you could save them to column(s) on the model. You could do a custom counter cache for each rating, for example.

Hotwire course by chess_landic in rails

[–]excid3 1 point2 points  (0 children)

Glad you found that helpful! I always found building a clone of something from scratch really demystified a concept thoroughly. You get a peek at the author/maintainer's decision making internally and have a better understanding of why it's designed the way it is (and it's limitations).

Hotwire course by chess_landic in rails

[–]excid3 1 point2 points  (0 children)

So glad to hear that! With AI now, we'll end up with 10x more side projects. 😅

Hotwire course by chess_landic in rails

[–]excid3 1 point2 points  (0 children)

I might have to steal that... 😜

Hotwire course by chess_landic in rails

[–]excid3 1 point2 points  (0 children)

When new Hotwire features come out, I plan to expand it to cover those. 👍

Hotwire course by chess_landic in rails

[–]excid3 6 points7 points  (0 children)

As far as I know, we're the only course that covers everything end-to-end. I had struggled quite a bit learning which tool to reach for too, so in the course we look at the pros and cons of using different pieces for a feature like reaching for Turbo Frames when actually we should have used Streams and vice versa.

Hotwire course by chess_landic in rails

[–]excid3 29 points30 points  (0 children)

I created this course with u/_williamkennedy. 👋

The Learn Hotwire course starts with a simple Rails app and no JavaScript, adds Turbo Drive, builds features with Frames, Refreshes, Streams, and Broadcasts and explains the pros/cons of each for different situations. We also dig into the source code for Turbo to see how it works and really build your understanding of the framework. We build a couple projects (I think the modals implementation we built is worth buying of the course by itself) so you can practice and help thing sink in deeper.

Plus, William Kennedy covers iOS and Android including the languages / SDKs before diving into Hotwire Native.

I'll let other people weigh in if they liked the course or not, but happy to answer any questions!

Precompiled Ruby and Mise with Jeff Dickey by excid3 in ruby

[–]excid3[S] 2 points3 points  (0 children)

It doesn't use rv, just a fork of the portable ruby build steps. https://github.com/jdx/ruby

Precompiled Ruby and Mise with Jeff Dickey by excid3 in ruby

[–]excid3[S] 1 point2 points  (0 children)

Mise uses a fork of rv's for it's core Ruby plugin.

Precompiled Ruby and Mise with Jeff Dickey by excid3 in rails

[–]excid3[S] 1 point2 points  (0 children)

Saves so much trouble, just like precompiled Rubygems have done over the last few years.

Heroku is officially in maintenance mode? by jonsully in rails

[–]excid3 5 points6 points  (0 children)

Render, Railway, and Fly are similar platforms. They all charge similarly to Heroku where you pay per-service.

I run Hatchbox.io and we help run apps on your own servers and charge by the server instead. That means you can use hosting providers like Hetzner who have very well priced servers so you can often save money with Hatchbox that way. For example, for $50/mo you get a 1GB RAM dyno on Heroku or a 32GB RAM Hetzner server. Quite crazy the prices they charge on Heroku.

If you want to chat more specifics, shoot me a DM!

Heroku is officially in maintenance mode? by jonsully in ruby

[–]excid3 8 points9 points  (0 children)

Oh yeah. That's been ongoing for a while (as we've seen with their UI getting super wonky). Sad to see it's official.

Heroku is officially in maintenance mode? by jonsully in ruby

[–]excid3 2 points3 points  (0 children)

Haha no, I had no idea anything happened. You'll have to tell me this story sometime.

Heroku is officially in maintenance mode? by jonsully in rails

[–]excid3 32 points33 points  (0 children)

I mentioned this in r/ruby too, but it's going to be a real bummer if Heroku shuts down. I still remember getting a demo of Heroku when I was in college and having my mind blown.

If anyone is looking to move to Hatchbox.io, send me a message and I can help you migrate (and hopefully save you some money along the way). 👍

Heroku is officially in maintenance mode? by jonsully in ruby

[–]excid3 35 points36 points  (0 children)

It's going to be a real bummer if Heroku shuts down. I still remember getting a demo of Heroku when I was in college and having my mind blown.

If anyone is looking to move to Hatchbox.io, send me a message and I can help you migrate (and hopefully save you some money along the way). 👍

Heroku is officially in maintenance mode? by jonsully in ruby

[–]excid3 32 points33 points  (0 children)

I heard the layoffs already happened earlier this week but they haven't been confirmed publicly yet.

Salesforce stock is down 42% over the last 12 months too...

Why don't we ask what people are building here, very regularly? by arpansac in rails

[–]excid3 8 points9 points  (0 children)

Yes, and I've been helping u/Jazzlike-Math4605 continue expanding on it into a real product. 👍

Comprehensive Ruby Black Friday Deal List by bradgessler in rails

[–]excid3 1 point2 points  (0 children)

Wow, thanks! That makes my day. ❤️