• grue@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    The Java hate is not about wanting to type fewer characters; it’s about FactoryFactory-type boilerplate nonsense adding conceptual bloat that obscures what the unit of code is actually trying to accomplish.

    • PeriodicallyPedantic@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      11 months ago

      FactoryFactory classes are not something inherent to java, it’s just as likely with any OOP language. I’m assuming you refer to something like AbstractFactory Pattern.

      Most boilerplate can be automatically added by IDEs, and doesn’t add any more congnative overhead than comments would. It’s basically comments that are statically validated by the compiler.