• grue@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year 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
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year 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.