187
Python vs. Java (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] thenextguy@lemmy.world 53 points 1 day ago* (last edited 1 day ago)
[-] Solemarc@lemmy.world 10 points 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?

[-] bigboismith@lemmy.world 5 points 1 day ago

Printing to console is often only used for toy code anyway.

[-] silasmariner@programming.dev 6 points 1 day ago

Wait, how do you debug your code?

[-] Traister101@lemmy.today 4 points 1 day ago

A logger? Console prints are shitty in general but especially when you have an actual logger already

[-] SlurpingPus@lemmy.world 9 points 23 hours ago

You know what println never did? Run arbitrary code on my toaster.

[-] Traister101@lemmy.today 1 points 20 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.

[-] silasmariner@programming.dev 3 points 1 day ago

Oh man, I thought that was one of the classic jokes :'( I am out of touch

[-] Traister101@lemmy.today 2 points 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 1 points 14 hours ago* (last edited 14 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

load more comments (5 replies)
load more comments (5 replies)
load more comments (6 replies)
this post was submitted on 01 Feb 2026
187 points (89.8% liked)

Programmer Humor

29147 readers
464 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS