Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    N

    Nithin Bekal

    nithinbekal.com · Personal blog · on HN since 2010

    Nithin Bekal is a Ruby and Rails developer who writes release summaries and short tips on the language.

    Visit blogRSSHN submissions
    ProgrammingLanguages & CompilersWeb Development
    What HN says

    HN commenters link his "What's New" posts for Ruby 3.2 and Rails 5, and his explanation of Ruby's flip-flop operator.

    Stats for nerds
    19HN people shared it
    39linked in comments
    358story points
    Jan 2026last shared
    2015people per year2026

    Top posts on HN

    1. 1
      What's new in Ruby 3.1?
      1 person · 174 points · first shared 2022 · 48 comments on HN
    2. 2
      Abstract Methods and NotImplementedError in Ruby
      1 person · 52 points · first shared 2024 · 25 comments on HN
    3. 3
      Long exposure images from videos
      1 person · 23 points · first shared 2024 · 3 comments on HN
    4. 4
      What's New in Ruby 4.0
      2 people · 22 points · first shared 2025 · 1 comments on HN
    5. 5
      Flip Flop Operator in Ruby
      4 people · 12 points · first shared 2014 · 1 comments on HN
    6. 6
      A Simple To-do List App Using HTML5 and local storage
      1 person · 7 points · first shared 2010 · Discussion on HN
    7. 7
      What's New in Ruby 3.3
      2 people · 6 points · first shared 2023 · Discussion on HN
    8. 8
      What's New in Ruby 3.4
      2 people · 6 points · first shared 2024 · Discussion on HN
    9. 9
      Guide to writing Ruby gems
      1 person · 6 points · first shared 2011 · 1 comments on HN
    10. 10
      Review of The Rails 3 Way
      1 person · 5 points · first shared 2011 · Discussion on HN

    What HN people wrote when they linked it

    • wonger_Jan 2025

      Here's some of my tips for a handwritten HTML site, since the author wished more tips existed:

      - consider using an HTML boilerplate template like this one if you don't know where to start: https://www.matuzo.at/blog/html-boilerplate/

      - consider using a CSS template, or a CSS reset, if you don't know where to start with styling. Pico CSS is a good drop-in: https://picocss.com/. Frontend devs always blog about their CSS resets, like this one: https://piccalil.li/blog/a-more-modern-css-reset/. But if you're someone inclined to write their own HTML, then you'll probably also want to write your own CSS. This takes time to learn. Especially learning how to design the page without looking crappy

      - I copy my last page as a template whenever writing a new page

      - I don't worry about code duplication. If I need to refactor duplicated content, I use search and replace across files in vim (like https://nithinbekal.com/posts/vim-search-replace/). Hopefully your editor/IDE has something similar, and hopefully you're comfortable with regexes

      - markdown + pandoc + scripting is a common solution. Technically it's not handwriting HTML at this point -- it's hacking together your own static site generator instead of using an existing framework -- but no biggie

      - frontend people have made a lot of live reload tools over time. Here's a couple: https://nitoyon.github.io/livereloadx/ and https://github.com/tapio/live-server. Personally, I've cobbled together something with…

    • wilsonfiifiSep 2021

      One approach that has worked for me so far is:

      1) find out if the runtime/framework is supported but Heroku or if there are any buildpacks available.

      2) spin up a Dokku instance using Vagrant for local development and testing

      3) deploy to a live Dokku server

      If/when I encounter any issues I add Heroku or Dokku to my search query and 9 times out of 10 I’ll find an answer to my issue. Else I just dig into the Dokku docs and GitHub issues and figure it out.

      So for instance googling for deploying a Phoenix app with Dokku results in a few hits such as this one [0].

      There's also a lovely UI for Dokku being actively developed: Ledokku [1]

      The only drawback currently is when you want to horizontally scale your deployment. You can use their kubernetes or nomad schedulers but I think those are an overkill in terms of complexity. You could also use a load balancer in front of multiple Dokku instances but you then lose the ease of deployment, configuration, etc…

      Which is why I think their docker swarm scheduler [2] will be one of the most important feature they could add. It’s currently on the roadmap but I’m sure with a bit of sponsorship and a few pull/merge requests it will become a reality.

      [0] https://nithinbekal.com/posts/dokku-phoenix-deploy/

      [1] https://github.com/ledokku/ledokku

      [2] https://github.com/dokku/dokku/projects/1#card-59170273

    • e12eApr 2019

      Fwiw ruby borrows heavily from perl, and can be coaxed into serving as a driver for other commands. See eg:

      http://ibmsystemsmag.com/aix/tipstechniques/systemsmanagement/ruby_shell_scripting/

      https://redpanthers.co/different-ways-to-run-shell-commands-in-ruby/

      Perl/awk like one-liner/filters in ruby:

      http://reference.jumpingmonkey.org/programming_languages/ruby/ruby-one-liners.html

      https://nithinbekal.com/posts/ruby-sed-awk/

      Of note is that ruby allows "backtick execution":

      filename = 'some_file.txt'
      wordcount = `wc --words #{filename}`

      I find that much of the strength of bash/shell comes from the surrounding utilities though. So simply jumping to ruby won't magically let your "shell script" work on both windows and Linux, just because you have ruby installed;there likely not be a similar set of building blocks like "wc" etc. You could of course replicate most via the ruby std lib - and it's arguably easier to write test driven ruby than bash.

    • rickrAug 2015

      I haven't done much with Phoenix but I think there are a few libraries out there. I think addict is the front
      runner:

      https://github.com/trenpixster/addict

      https://github.com/opendrops/passport

      Also here's a nice blog post that was in the elixir newsletter that may help!

      http://nithinbekal.com/posts/phoenix-authentication/

    • evolve2kJun 2023

      Ruby 3.2 comes with YJIT which is a new JIT compiler Ruby totally rewritten in rust. Also native Ruby extensions can now be written in rust in addition to C. So the ecosystem here lets you write C, Rust or Ruby.

      https://nithinbekal.com/posts/ruby-3-2/

    • thirdsunJan 2016

      The replacement for ActiveRecord::Base in Rails 5. All your models will inherit from ApplicationRecord. See http://nithinbekal.com/posts/rails-5-features/

    Related

    Ryan Biggryanbigg.com35 people

    MacBook Pro Keyboard Drives Me Crazy

    Ryan Bigg
    Personal · last shared 2026
    Dan Baderdbader.org26 people

    Interfacing Python and C: Advanced “ctypes” Features

    Dan Bader
    Personal · last shared 2022
    Berkberk.es16 people

    Using a framework will harm the maintenance of your software

    Berk
    Personal · last shared 2023
    AppSignal Blogblog.appsignal.com84 people

    What's New in Ruby on Rails 8

    AppSignal Blog
    Company · last shared 2026
    Yossi Kreininyosefk.com387 people

    Yosefk - My history with Forth & stack machines

    Yossi Kreinin
    Personal · last shared 2026
    Ruby Insiderubyinside.com147 people

    Sinatra 1.0 Released: Major Milestone for Ruby’s Best Webapp DSL

    Ruby Inside
    Publication · last shared 2021
    Mislav Marohnićmislav.uniqpath.com100 people

    Vim: revisited

    Mislav Marohnić
    Personal · last shared 2015
    Nate Berkopecnateberkopec.com27 people

    A Guide to Fast Page Loads

    Nate Berkopec
    Personal · last shared 2026