• Solemarc@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 day ago

    I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?

            • Traister101@lemmy.today
              link
              fedilink
              arrow-up
              1
              ·
              22 hours ago

              Neither did Log4j in basically all cases, some maniac just put arbitrary code callbacks into their logger, undocumented and enabled by default. The insane part isn’t the feature itself it’s the fact it’s enabled by default in a logger of all things.

            • Traister101@lemmy.today
              link
              fedilink
              arrow-up
              2
              ·
              1 day ago

              People in my experience are actually very serious about the standard out to debug log which is… baffling. Same people generally outright refuse to learn how to use a debugger in languages where those are pleasant

              • silasmariner@programming.dev
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                16 hours ago

                Oh I’m completely serious. The joke is that everyone does it but everyone knows not to do it. I started doing it when I first ran into problems debugging actor contexts, and never stopped.

                The good printlns become logs, obviously