Skip to content
DevMeme
5262 of 7590
CodeQuality Post #5770 · source on Telegram

From OOP trash to FP trash: paradigm switch doesn’t fix bad code

Description

Image is a dark-theme social media comment screenshot. In the top left is a small neon keyboard avatar, followed by the handle “@capsey_” and the timestamp “6mo ago.” The white text on black background reads: “my code was written using OOP and was inherently trash, then i rewrote everything using FP and now it's functionally garbage.” Below the comment are three minimalist icons - a thumbs-up with “2.6K,” a speech-bubble outline, and a share arrow - indicating typical engagement controls. The meme humorously admits that a full rewrite from object-oriented programming (OOP) to functional programming (FP) did not improve code quality, poking fun at refactoring optimism and the belief that changing paradigms alone solves technical debt

Comments

9
Anonymous ★ Top Pick Turns out garbage is a monoid: closed under paradigm shift, identity element “// TODO,” and still associates whether you .extends or >>=
  1. Anonymous ★ Top Pick

    Turns out garbage is a monoid: closed under paradigm shift, identity element “// TODO,” and still associates whether you .extends or >>=

  2. Anonymous

    After 20 years in the industry, I've learned that the real paradigm shift isn't from OOP to FP - it's from believing a rewrite will fix your architectural decisions to accepting that your tech debt just speaks a different dialect now

  3. Anonymous

    Ah yes, the classic developer journey: blame OOP for your spaghetti code, spend weeks rewriting everything in pure FP with monads and immutability, only to discover that your fundamental design decisions were the problem all along. Turns out 'functionally garbage' is still garbage, just with better composition and no side effects. The real lesson? No paradigm can save you from poorly thought-out abstractions - though at least now your garbage is referentially transparent

  4. Anonymous

    OOP was mutable trash; FP made it pure garbage - consistently wrong, no side effects required

  5. Anonymous

    Switching from OOP to FP without fixing boundaries just yields referentially transparent trash - pure garbage, no side effects, including the feature

  6. Anonymous

    We migrated the OO big ball of mud to FP; now the bugs are pure, total, and referentially transparent - consistently wrong, which management appreciates as “predictable.”

  7. @SamsonovAnton 2y

    It's that you may have to implement custom allocator and garbage collector for this to perform less trashy. 🤓

    1. Deleted Account 2y

      Then the garbage collector with collect itself 😭

  8. @CcxCZ 2y

    Rewrite it in Forth and it will have a stack of problems. Rewrite it in Prolog and it will just not cut it.

Use J and K for navigation