this post was submitted on 28 May 2025
752 points (100.0% liked)

Programmer Humor

24788 readers
844 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
 

Also, do y'all call main() in the if block or do you just put the code you want to run in the if block?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 38 points 1 month ago* (last edited 1 month ago) (5 children)

Still better than having to create a new class just to implement

public static void main(String[] args) {}

Relevant Fireship video: https://youtu.be/m4-HM_sCvtQ

[–] [email protected] 18 points 1 month ago (4 children)
[–] [email protected] 1 points 1 month ago
load more comments (3 replies)
load more comments (3 replies)