Skip to content
DevMeme
7182 of 7590
Languages Post #7876 · source on Telegram

Monkey Patching Across Languages: JS, Ruby, Lisp, and Haskell's Void

Description

A four-panel wojak meme comparing how programming languages relate to runtime monkey patching. Panel 1: a skeptical bearded 'Nordic gamer' wojak next to 'runtime monkey patching' and the yellow JS (JavaScript) logo. Panel 2: a screaming open-mouthed wojak with 'runtime monkey patching, Japan' and the red Ruby gem logo (Ruby was created in Japan and its culture famously embraces open classes and monkey patching). Panel 3: a wise long-haired bearded elder wojak with 'runtime monkey patching, old school' beside curly braces/parentheses and the LISP name, nodding to Lisp's decades-old runtime malleability and macros. Panel 4: an enlightened wojak with a glowing sacred-geometry halo labeled 'runtime monkey patching, (concept not found)' next to the purple Haskell lambda logo - in a pure, statically typed, immutable language, mutating definitions at runtime is not merely discouraged, it is inexpressible. The meme rewards knowing each language's metaprogramming philosophy

Comments

22
Anonymous ★ Top Pick Haskell devs don't monkey patch - they spend three weeks convincing the type system the monkey never existed, then call it a refactor
  1. Anonymous ★ Top Pick

    Haskell devs don't monkey patch - they spend three weeks convincing the type system the monkey never existed, then call it a refactor

  2. Anonymous

    Haskell did not ban monkey patching; the type checker proved the monkey never existed.

  3. @Daonifur 4mo

    What's the bottom symbol?

    1. @b7sum 4mo

      haskell, you mean?

      1. @Daonifur 4mo

        Oh yeah. I remember trying pascal/Haskell before, just not regularly

        1. @death_by_oom 4mo

          This is actually peak comedy. I don't even know if it's a joke

          1. @Daonifur 4mo

            How?

            1. @death_by_oom 4mo

              All the functional fanatics when you mix pascal and Haskell in the same sentence 🫠🫠🫠

              1. @Daonifur 4mo

                Oh, so you're one of those that assumes when I put Java and JS in same sentence, I'm implying they're the same

                1. @death_by_oom 4mo

                  Then why mention pascal at all, how is it relevant?

                  1. @Daonifur 4mo

                    Reread the sentence

                    1. @Daonifur 4mo

                      When you do so, replace / with and

                      1. @Daonifur 4mo

                        3rd reply because why not

                      2. _ 4mo

                        To me, '/' implies the things are related or interchangeable, while 'and' only says both are true, without implying it's related and not a coincidence

                    2. @death_by_oom 4mo

                      Ok, maybe I misunderstood, but it was pretty funny from my point of view

                      1. @Daonifur 4mo

                        I mean, looking back at it, it is funny now because you misinterpreted it, lol

                        1. @Daonifur 4mo

                          It's like if I said "I remember playing Doom/Halo" and someone coming in saying "they're not even the same game"

                          1. @blue_bonsai 4mo

                            BEAT THEM, MY FURRY

          2. @LeakyRectifiedLinearUnit 4mo

            the peak comedy is javascript

            1. @Daonifur 4mo

              Agree here

        2. @death_by_oom 4mo

          These 2 langs could not be more different

  4. @blue_bonsai 4mo

    Make them regret their life

Use J and K for navigation