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

  • Gravity Falls S01 (TV Series, 2012)
    * * * +

    Watchable. Quite funny at times. It feels like an older (i.e. dated) brother to Rick and Morty.

  • Primal S03 (TV Series, 2026)
    * * * *

    Still pretty good.

  • Teściowie 3 / The in-laws 3 (2025)
    * * *

    Watchable.

All movie ratings »

Archives

Meta

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

Month: August 2011

My first pull request to a public project has been accepted

It was a small but important patch to the i18n gem‘s pluralization rules for the Polish language.

Really made my day. Thanks Krzysztof!

Posted on August 31, 2011January 30, 2022Categories programming, ruby

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) { {} }
=> {}
Posted on August 30, 2011June 19, 2022Categories programming, ruby
Proudly powered by WordPress