Skip to content
Paweł Gościcki

Paweł Gościcki

Random pieces of code, thoughts and movie reviews

Pages

  • Movie reviews
  • Projects
    • WP Movie Ratings

Recent movies

  • Monster S04 (TV Series, 2026)
    * * *

    Good beginning, extremely slow mid-part (2-3 hours too long; too many skips) and a cool ending with the trial.

  • Lalka / The Doll (TV Mini Series, 2026)
    * * * *

    If you treat it as a remix, it was actually quite good.

  • Ted Lasso S04 (TV Series, 2026)
    * * +

    Meh. Somehow it lost all of its charm. Don't know how, don't know when.

All movie ratings »

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Hash#fetch

{}.fetch(:a) { 0 }
=> 0

I think it’s really beautiful. Oh, and it’s Ruby, btw.

Update: this is even better:

{}.fetch(:a) { {} }
=> {}

Published by

Paweł Gościcki

Ruby/Rails programmer. View all posts by Paweł Gościcki

Posted on August 30, 2011June 19, 2022Author Paweł GościckiCategories programming, ruby

Post navigation

Previous Previous post: hookup is the shit!
Next Next post: My first pull request to a public project has been accepted
Proudly powered by WordPress