Nate Berkopec
nateberkopec.com · Personal blog · on HN since 2011
Nate Berkopec writes about Ruby on Rails performance, scaling, and web speed, plus some self-publishing and career topics.
What HN saysCommenters cite his posts on Turbolinks, Action Cable, and Rack middleware as useful technical references, and praise the Rails 5 Turbolinks work.
27HN people shared it
7linked it in comments
43stories submitted
1.7Kstory points
9 months agolast shared
2011people per year2026
Most-shared posts
- 1100ms to Glass with Rails 5 and Turbolinks 35 people · 12 points · first shared 2015 · 1 comments on HN
- 2How I Made $70k Self-Publishing a Book about Ruby on Rails4 people · 539 points · first shared 2017 · 175 comments on HN
- 3Rack-Mini-profiler – The Secret Weapon of Ruby and Rails Speed3 people · 95 points · first shared 2015 · 29 comments on HN
- 4Scaling Ruby Apps to 1000 Requests per Minute3 people · 12 points · first shared 2015 · 1 comments on HN
- 5How to Get a Computer Science Degree in a Warzone3 people · 12 points · first shared 2017 · discussion on HN
- 6Action Cable – Friend or Foe?3 people · 5 points · first shared 2015 · 1 comments on HN
- 737signals Isn't Smarter Than You, but They Are Different3 people · 4 points · first shared 2026 · discussion on HN
- 8How Changing WebFonts Made Rubygems.org 10x Faster2 people · 163 points · first shared 2015 · 95 comments on HN
- 9Hacking Head Tags for Speed and Profit2 people · 25 points · first shared 2015 · 14 comments on HN
- 10What HTTP/2 Means for Ruby Developers2 people · 17 points · first shared 2016 · discussion on HN
- 11Dont have a startup that's "built to fund"2 people · 11 points · first shared 2011 · 2 comments on HN
- 12Secrets to Speedy Ruby Apps on Heroku2 people · 11 points · first shared 2015 · discussion on HN
- 13I'm Glad I Failed in Front of Millions on Shark Tank2 people · 5 points · first shared 2019 · discussion on HN
- 14A Guide to Fast Page Loads1 people · 597 points · first shared 2015 · 163 comments on HN
- 15A Complete Guide to Rails Caching1 people · 171 points · first shared 2015 · 56 comments on HN
What HN people wrote when they linked it
wonder_er · 2021-02-23
This is super cool!
I've only recently discovered that Markdown has footnotes, and I've gone to down adding footnotes everywhere.
I use Jekyll + markdown on my website, and I now have lots of fun adding footnotes to my writing.
I added a "footnote tutorial" for readers on https://josh.works/turing-backend-prep-01-intro#why-this-rubybackend-s… to help them learn how to navigate the footnotes.
I _love_ your library, and I love the problem that you're solving with it.
Along the way, I've looked at Gwern's sidenotes[0] and Nate Berkapec's "footnotes"/sidenotes [1].
I eventually want to do something more "in-line", like what you've down with Expounder, but I've been satiated with markdown footnotes for now.
[0]: https://www.gwern.net/Sidenotes#
[1]: https://www.nateberkopec.com/blog/2017/03/10/how-i-made-self-publishin…
a-saleh · 2018-05-29
I am of two minds.
First, if you want to earn money, choose the stack you know best already. Figuring out how to do business will probably be tricky enough. Talk to your prospects. Maybe start consulting first, and then convert recuring painpoint of your customers to a product. I have seen an advice to write a book/guide before you start with something that requires maintainance and few success stories about that [1] :-)
On the other hand, I often like to create various pet-projects in weird languages. I dabbled in clojure, kotlin, tried Vaadin, typescript, phoenix on elixir, but I see on myself that while learning a new tool can be hard, finishing a project is often harder :-)
Wish you luck!
[1] https://www.nateberkopec.com/blog/2017/03/10/how-i-made-self-publishin…
jsmith0295 · 2016-06-01
The new TurboLinks is one of the best things about Rails 5, though. You can basically get UX comparable to an SPA with mostly server code.
As for coffeescript, you can just remove the gem and it'll use regular JS.
https://www.nateberkopec.com/2015/05/27/100-ms-to-glass-with-rails-and…
schneems · 2015-08-07
Whooops responded with old account. If you run `$ env RAILS_ENV=production rake middleware` you'll see that your final app that gets mounted is actually the "routes" of your app.
run CodeTriage::Application.routes
Essentially that RouteSet#call wraps every piece of code you've ever written for your app. I think that newrelic is reporting that is the entry point to your app code which makes sense that it takes the longest amount of time.
For a better view of request break down I would recommend checking out https://github.com/MiniProfiler/rack-mini-profiler. You'll not only see where request time is being spent, you'll see how it "stacks up". The flame graphs are pretty useful check out http://www.nateberkopec.com/2015/08/05/rack-mini-profiler-the-secret-w… for more info.
geoffroy · 2016-01-01
A very good article comparing SSE, Websockets, polling, long polling was posted a few months ago, still relevant : https://www.nateberkopec.com/2015/09/30/action-cable.html
some1else · 2015-10-07
For anyone that's interested, here's a guide on scaling Ruby servers to 1000RPM, written by the same author: http://www.nateberkopec.com/2015/07/29/scaling-ruby-apps-to-1000-rpm.h…
ploggingdev · 2017-03-27
No.
Getting page views for well written and original content (especially tech topics) is not hard, in fact there is a severe dearth of good technical writing. How often you post, how many sharing options you provide should not be what you optimize for. Optimize for writing original, well informed content that shows domain expertise. Such content has no problem attracting an audience. But the problem with writing such content is that it's pretty time consuming.
Let me share my own anecdata. Three of my posts got significant attention when I posted them to my blog, around 30k pageviews and now I get a few thousand views every month from search engines and people sharing my posts on social networks. I don't spend any time promoting it, only post to a couple of subreddits initially, that's it, (and HN where my posts did not gain traction so far) .
Posts :
https://www.ploggingdev.com/2017/01/multiprocessing-and-multithreading…
https://www.ploggingdev.com/2016/12/performance-measurement-in-python-…
https://www.ploggingdev.com/2016/12/analyzing-programming-language-sta…
Especially the first post linked above has gotten most of the attention and now ranks on Google for python multiprocessing and multithreading related keywords. My blog is clearly not very popular by HN standards, but it has given me a good understanding of what type of content has no issue attracting attention as explained above.
Edit : You might find the…