Hacker News new | past | comments | ask | show | jobs | submit | software_writer's comments login

This post shows how your application servers (Rails, Django, Laravel, etc.) can offload file delivery to reverse proxy servers like Nginx using the X-Accel-Redirect (or X-Sendfile) header. We'll also read a new reverse proxy's (Thruster) source code in Go to learn how this pattern is implemented at the proxy level.


For a concise overview of all the new frameworks and announcements, I recommend reading the official Rails blog post from DHH:

https://rubyonrails.org/2024/9/27/rails-8-beta1-no-paas-requ...


Agreed, this should be the main link instead of giving AppSignal free publicity. The original is very much a light reworking of the original. It has the same content order and everything.


Would be nice if the site allowed me to link to a specific headline in the post.


You can append the dasherized version of the headline (or specifically, the id of the header) to go to that specific section:

https://rubyonrails.org/2024/9/27/rails-8-beta1-no-paas-requ...


Oh wow, I wasn't able to click on the headline so I thought that wouldn't work! Thank you!


yeah, OP feels like a gpt rewrite of this post by DHH


ConvertKit supports 10,000 subscribers on a free plan.

https://convertkit.com/pricing


Fixed, good catch, thanks! I started my research using other people's spreadsheets rather than checking every vendor's pricing. Must have had old data.


Author of the original post here. I have no affiliation with either the Flatiron bootcamp, nor the SuperByte company. But I know Pedro and he (and his story) is real.

If you take a quick look at the rest of my blog, you'll quickly know that this was neither an ad for any bootcamp or company, nor an attempt to 'manipulate tech news readers'.


2024: the year where you write a touching piece about someone successfully implementing a late in life career change and the top comment accuses you of being a spammer. Only way it could be better is if he said it was all generated by ChatGPT.

The internet has made us all so cynical.


Ruby's defined? keyword is an elegant way to check if a variable is defined or not and also to cache expensive operations. However, it's confusing, and a few gotchas await the new Rubyist.

In this post, we'll learn how it works and how to use it correctly to cache expensive operations returning `nil` or `false`.


In this article, we'll build a simple but complete application in plain Ruby without Rails, to get a deeper understanding and appreciation of everything Rails does for us.


Rails 7.1 ships with a handy `perform_all_later` method that lets you enqueue multiple jobs to be executed at once, reducing the round-trip to the job backend like Redis or the database.

Although it's currently supported only by Sidekiq and GoodJob (as far as I know), it provides a nice abstraction to enqueue multiple jobs at once. This post explores this method including the behind-the-scenes implementation.


I'm not sure why, but all the source values are listed here: https://github.com/ruby/ruby/blob/1cc700907d3ad3368272488a6f...

Maybe someone knowledgeable in the underpinnings of Ruby will explain why "class variable" was not hyphenated.


Do you know any use cases, other than iteration? Would love to know any interesting ones. Thanks!


Yeah, you can use it to implement a simple (but not necessarily very performant) LRU: https://github.com/SamSaffron/lru_redux/blob/037ee594aded597...


Very cool, thanks for sharing!


I don't quite understand how this code works. Where does the `nil` come from? What operation are we performing on 3 that causes it to return `nil`?


1, 2, and 3 are being passed as lookups to the a hash. 3 is undefined on the hash, hence nil.


Ah, that makes sense. Thank you!


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: