Top
Best
New

Posted by MaxLeiter 9/7/2025

Formatting code should be unnecessary(maxleiter.com)
354 points | 476 commentspage 7
pandemic_region 9/8/2025|
I wish for Java to have a built-in formatter just like Go has. Enough with these plugins and google-format and messy intelij settings.
anacrolix 9/8/2025||
you don't say
paphillips 9/8/2025||
Ahh yes, nothing brings out the strong opinions like formatting. Let's do SQL next!
GuB-42 9/8/2025||
And yet, judging by the number of comments, it is definitely not a solved problem :)
_ZeD_ 9/8/2025||
good luck with that.. I didn't had a decent IDE capable of even implementing elastic tab stops... I expect people using hex editors to flip bytes directly on the binary blob saved on disk instead of using the appropriate tools to view the "source" files.

btw: have a look at how much disdain was reserved for systemd and its pletora of binary blobs + custom tools (e.g. the journal stuff) ... and that was basically forced upon from the distributions

cnnlives83 9/8/2025||
It basically is, unless you’re in a whitespace-Nazi language like Python (no offense!).

It doesn’t get much less formatted than Minified JavaScript, except maybe Perl or Brainfuck.

kesor 9/8/2025|
Minified JS often comes with mangling the names of functions, variables, etc... Formatters and prettifiers lack the ability to bring back the original names and meaning.
numtel 9/8/2025|
With how much LLMs do nowadays, I'm waiting for the time when specifying types is unnecessary. Like, it if can write code, shouldn't we also be able to have an AI type checker?
IshKebab 9/8/2025||
Systematic checking like that is pretty much LLM's worst case. They're really bad at it. Definitely better to use them to suggest types.
Frieren 9/8/2025|||
Correctness is a key characteristic of a compiler.

To have something that sometimes checks the types and some times does is not a feasible solution.

linhns 9/8/2025||
It writes better when correct type is specified beforehand. So chicken and egg problem you have.