5 ms·
Speaking as a near 20 year Java programmer, Java is criminally bloated at every level. The ecosystem has been covering for its shortcomings since y2k. That ecos
by zerotolerance 5y ago
Speaking as a near 20 year Java programmer, Java is criminally bloated at every level. The ecosystem has been covering for its shortcomings since y2k. That ecosystem is so thick and full of abstraction that no two devs from different framework backgrounds would recognize the others code as Java. And the abstraction... it is a language for people who are more interested is the abstractions than actually getting things done.
- tirrex 5y agoI agree with you. Actually, Java has great tooling, JVM is very nice, it has great potential for high performance code generation. It has everything for debugging. But at the end of the day, language is driving people to write bloated software. I just wonder, how come e.g Linux kernel code 100 times more readable than any project in Java? More importantly, how did we come to this point that we accept bloated/unreadable code in the name of higher/better languages?
- loopz 5y agoJava won by its portable deployment model, stack traces, GC, libraries and security sandbox safety. In over two decades, very few other platforms have come close to its promises. C# is perhaps much better, but has stronger proprietary ties and vendor lock-in. Java became overcomplicated by frameworks and design patterns, so has always felt bloated and slow. But has worked best for business logic. Though is maybe behind COBOL thus far, and tends to hide/obscure logic. No two java designs looks the same, scales well or converge to clear consensus. The language did lower the bar for what cheap programmers could accomplish faster though.
- benbristow 5y ago> C# is perhaps much better, but has stronger proprietary ties and vendor lock-in What vendor lock-in? The whole thing is open source from the compiler to the runtime - https://github.com/dotnet https://github.com/dotnet If anything Java is more locked in as the most popular and 'official' runtime/devkit (Oracle Java/JDK) is completely closed source.
- thu2111 5y agoLinux isn't readable because of C. My god, just go look at the source code of most GNU projects like glibc or gcc if you want to disabuse yourself of that notion. Linux is highly readable because Linus imposes readability on it through sheer force of will, and because they are willing to sacrifice driver API on the altar of clean code. The result is a very efficient and readable kernel that hardly anyone uses in the environment with the most complex and heterogenous hardware i.e. desktops and mobiles. Android doesn't really use Linux these days. Since some years it has developed its own stable driver ABI that bypasses the kernel for most things. If all Java codebases were run by a dictator-for-life who could sacrifice trifling details like adoption in order to get the most readable code possible, you'd find you'd like them a lot more too. And a few such codebases are actually like that! Look at the source code of the JDK itself sometime (not the bits by Doug Lea though), or Guava, or really quite a few open source Java projects have readable and nice code.
- Nursie 5y agoHonestly I think it's time for some of these frameworks and abstractions to die, and to stop trying to be everything to everyone. Ship functionality as libraries, not massive sets of "Thou shalt do it our way in our all-encompassing , over-complex, hard to debug straitjackets." The language itself is not what it was, it's very capable.
- twic 5y agoThe ecosystem is large and diverse. But you don't have to use everything! You don't have to use anything! I make a point of starting all new projects with just the JDK, and taking that as far as possible before adding dependencies. A 40k LOC codebase i work on has these external dependencies (plus some company- and vendor-specific libraries, which we would need in any language): 1. Netty, for serving HTTP 2. Glassfish JSON, for parsing and formatting JSON 3. FastUtil, for efficient collections of primitives 4. Guava, purely to get PairedStatsAccumulator 5. SimpleFlatMapper, to parse and format CSVs No frameworks, no criminal bloat. For the first few years of its life, this app used the JDK's own HTTP server, which was fine. Then we wanted to add websockets, so we needed a more sophisticated server. If there is a problem with Java here, it's that people don't realise you don't need frameworks. A lot of developers will reach for Spring, Java EE, or something else like that right at the start of a project, without questioning the need for it. But this is not a failing of the language, or a problem you have to impose on yourself.
- majjgepolja 5y agoAs a java n00b, thanks for listing the libraries. Do you know any other simple libraries which will be useful generally?
- twic 5y agoOh, there's millions of them. That's the problem!
- majjgepolja 5y agoI meant "refreshingly simple" ones, as in _antithesis of spring boot_
- Nursie 5y agoFor http serving, I've always like SparkJava, just because its interface is very simple. But it's not the only way.
- abraxas 5y agoI don't think you experienced NodeJS development. There isn't a built in collections library. They all had to import a string leftpad function which then broke half of the world when it was pulled from their repository by the original developer.