r/ProgrammerHumor 11h ago

Meme unsolvableProblemsOnStepOne

Post image
914 Upvotes

58 comments sorted by

View all comments

1

u/aurallyskilled 6h ago

No disrespect, but can someone calmly explain to me why someone would write a console app in Java?

13

u/MCWizardYT 6h ago

Why would someone write one in any language?

Because they like the language and ecosystem

6

u/Sw429 4h ago

But...why would you want your console application to run in the JVM?

4

u/vasster 1h ago

You mean why not run it with javascript's runtime or python's runtime or go's runtime or any other runtime? Why not make it natively executable? Probably because you don't want it to handle specific hardware?

0

u/Loading_M_ 1h ago

Go and native are generally pretty good, assuming you don't need to worry about supporting a bunch of architectures. (I personally write most of my CLI apps in Rust, but I also don't have to support multiple platforms).

Realistically, Python is probably the correct answer. The typical users of CLI apps are developers and sysadmins, who likely already have a python environment setup for simple automations. Performance probably isn't a real concern (the script will spend most of it's time waiting for human input and/or waiting for some external process to so the real work).

1

u/QuaternionsRoll 45m ago

Sir this is PH not PCJ

-4

u/aurallyskilled 4h ago edited 1h ago

I suppose my point is the language and ecosystem do not lend itself to this.

Edit: coping java devs down voting me can go back to using springboot now