News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by raverbashing on Wednesday December 04, 2019 @11:33AM (#21703629)
It's a nice analogy. And I agree with it.

For me it seems weird that the Java IDE is "smarter" than the compiler. Then why can't the compiler abstract stuff...

Like the 'auto' keyword that took how long to exist again?

Re:Generating a Java program with 90% less code by phillipcarter on Wednesday December 04, 2019 @11:45AM (#21703786)
This is just one example of a general tension between compiling to produce an asset vs compiling as a service to provide data for tooling. The environments and things you optimize for are different, so you get differences like this. Compilers like what C# and F# use unify these into the same codebase (no presentation compiler) but the tradeoffs still exist.
Re:Generating a Java program with 90% less code by coding123 on Wednesday December 04, 2019 @11:38AM (#21703701)
The compiler is not interacting with the user. The ide isn't smart enough to apply some refactoring without the users consent.