• Randelung@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    3 hours ago

    I recently started a new job. We use Java. There’s a class that does a few things based on explicit arguments only to decide whether to use an FTP or file output, and you supply all parameters yourself. A whole ass Rube Goldberg machine that could be replaced by a single line of Files.writeString.

    Also, there’s a great video on YT “Stop writing classes” that is incredibly relevant.

    • Windex007@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 hour ago

      This hits.

      I stepped into a similar implementation. Took like 6 months and 10 people to support…

      … changing the URL of the sftp server we connected to.