Skip to content
DevMeme
1986 of 7590
Languages Post #2213 · source on Telegram

Java Muscle Memory in a JavaScript World

Description

A meme featuring the 'Nobody:' format, with the text 'Nobody:' on the first line and 'Using JavaScript after Java:' on the second. Below this caption is a code snippet written in JavaScript. The code defines a constant object named 'System' with a nested object 'out', which contains a function 'println'. This function simply calls 'console.log()'. The final line of the code demonstrates its usage: 'System.out.println('Hello World');'. The humor comes from the fact that the developer has gone to the trouble of recreating the verbose Java syntax for printing to the console, 'System.out.println()', in JavaScript, where the native and much simpler equivalent is 'console.log()'. This perfectly captures the ingrained muscle memory and cognitive friction developers experience when switching between languages, especially ones with confusingly similar names but very different paradigms and standard libraries. It's a relatable joke for any developer who has accidentally used one language's syntax in another

Comments

13
Anonymous ★ Top Pick This is what happens when a Java architect is asked to write a 'Hello World' in JavaScript. Next, they'll wrap console.log in an AbstractFactorySingletonProvider
  1. Anonymous ★ Top Pick

    This is what happens when a Java architect is asked to write a 'Hello World' in JavaScript. Next, they'll wrap console.log in an AbstractFactorySingletonProvider

  2. Anonymous

    The dev who wrapped console.log in System.out.println is now filing a ticket to port java.util.Optional to npm - because even our undefineds need an enterprise façade

  3. Anonymous

    After 15 years of enterprise Java, you finally escape to a startup using JavaScript, only to spend your first sprint implementing AbstractSingletonProxyFactoryBean patterns and wondering why your 'Hello World' needs dependency injection - because old habits die hard, but Java developers die harder

  4. Anonymous

    When you've written so much Java that you instinctively wrap console.log in a nested object hierarchy just to feel at home - because apparently, direct function calls are too mainstream. Next up: implementing a full AbstractSingletonProxyFactoryBean in JavaScript to really capture that enterprise spirit

  5. Anonymous

    Java→Node migration plan: wrap console.log in System.out.println so the diff looks smaller - architecturally an Adapter, psychologically a coping mechanism

  6. Anonymous

    First it’s a harmless adapter mapping console.log to System.out.println; by Q3 it’s a java-compat layer with governance docs and a dedicated maintenance squad

  7. Anonymous

    When 20 years of JVM scars turn a one-liner into a facade pattern - because why trust natives when you can OOP your console?

  8. Deleted Account 5y

    Боже какое было облечение перейти с этого уебанства на нормальный .лог

    1. @p4vook 5y

      .лог это кто? Пролог?

      1. Deleted Account 5y

        console.log

  9. @TSlash_T 5y

    Бля, какая жиза)))0

  10. @cleanValera 5y

    const Console = { WriteLine: (s) => console.log(s) }

  11. @glcky 5y

    Кто-то в нормальных проектах использует System.out.println 🤔🤔

Use J and K for navigation