r/java • • Oct 25 '26

What cli formatter do you use

Given how software engineering evolves, using IDEA formatter is less and less practical.

- IDEA CLI formatter requires IntelliJ so no CI / wsl etc
- GJF is old and does not format lambdas well enough
- Palantir is obsolete and abandoned in addition to being one of the worst company ever created
- prettier-java not great either

I’m starting to think no formatter is the best option

24 Upvotes

62 comments sorted by

View all comments

Show parent comment

2

u/Cilph Oct 26 '26

Not touching Palantir in a million years. Not just moral and ethical concerns either.

1

u/lazystone Oct 26 '26

But you're OK with touching Google? Or Microsoft?

Why so? Google for example just illegally destroyed forests in Finland, so are you going to stop using all Google libraries now? Or should you avoid all websites built on top of React? That's Facebook/Meta. Or stop visiting GitHub - it's Microsoft after all. And you know what? The biggest contributor to Java itself is Oracle, would you name Oracle as ethical company?

But if you put your hypocrisy aside, there is https://github.com/openjavaformat/open-java-format after all.

3

u/Cilph Oct 26 '26 edited Oct 26 '26

"Everything is flawed so why even bother" levels of defeatism completely ignoring there are scales to everything. Everything is bad therefore everything is somehow equally bad.

1

u/lazystone Oct 26 '26

That is hypocrisy.

You're fine with one evil, but not with another.

You do meaningless things in order to calm you consciousness down, like avoiding some open source java formatters in question(how the hell it helps against Palantir is beyond my understanding), when what you should do instead is to vote out politicians who let corporations to thrive instead of regular people.

But at least you "did something", right?

3

u/Cilph Oct 26 '26 edited Oct 26 '26

As I already explained, its not hypocrisy if you dont rate stealing candy to be as evil as something clearly worse like murder. Yeah I draw lines somewhere.

Though, where the fuck did I pretend that I "did something" to help any cause? I never said it was part of some grand plan. And where the fuck did I say my conscience was calmed by any of it? I dont like them and using their work is counter to what my sector is trying to achieve. Its as simple as that.

Either way, Im still doing more than you for some imagined goal of there being no more Palantir. Because if thats your wish, attacking people like this is sure to help!

1

u/lazystone Oct 26 '26

Your answer just confirms it.