TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN:For WebDev,would you learn Java in 2023 given the JVM based alternatives?

5 点作者 philonoist超过 2 年前

5 条评论

ryloric超过 2 年前
Does that mean you want to stay on the JVM, but not sure which language to pick?<p>I&#x27;ve been grokking around this space for a week and landscape looks way better than it was 5 years ago for a couple of reasons.<p>First, Java itself is changing rapidly, there&#x27;s tons of really new features that make it very pleasant to use and more keep coming constantly. Look at some of them here[0]. There&#x27;s records, pattern matching, sealed classes make it feel like Scala almost when it comes to Functional data modeling. There&#x27;s virtual threads now too with JDK 19. Look at additional JEPs to see what&#x27;s coming.<p>Second, the web ecosystem seems to have picked up a lot of things from the js&#x2F;ts world and made things easier to use. Spring itself is easier now with Spring Boot. I&#x27;ve been very impressed with Micronaut, Javalin, Quarkus and Vert.X.<p>I picked Micronaut cause I like annotations without runtime DI, but any of the others will do just as good of a job. If you like expressjs, Javalin express with type checking and embedded Jetty. If you like reactive style of organizing your app, Vert.X is there and it has a companion Vert.X-web to build web services.<p>Micronaut and Quarkus also give AOT compilation to a static binary right out of the box using GraalVM. So, startup speeds are no longer a problem if you need to startup fast... meaning lambdas are a breeze.<p>Unless you&#x27;re already invested in node&#x2F;rails or something else, I think Java is a solid option today, especially if it&#x27;s something you want to maintain over time. Of course, you can use kotlin with all of them, but Scala is not that well integrated in any of them from what I could tell.<p>[0] <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;en&#x2F;java&#x2F;javase&#x2F;19&#x2F;language&#x2F;java-language-changes.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;en&#x2F;java&#x2F;javase&#x2F;19&#x2F;language&#x2F;java-lang...</a>
petercooper超过 2 年前
Would <i>I?</i> No. But should <i>you?</i> Maybe. Java is hardly the fastest moving language out there but it&#x27;s still incredibly popular and heavily used in numerous circles, will keep you employed, and has been modernizing enough to not be too much of a drag IMO (depending on the practices of the companies&#x2F;teams where you end up using it). Java has a good story to tell in quite a few areas (mostly thanks to the JVM, to be fair) and doesn&#x27;t deserve the reputation it tends to have in public fora.<p>If you&#x27;re going on to the JVM anyway, you&#x27;ll benefit from at least doing <i>some</i> Java even if you end up doing Kotlin or Scala full-time.
logicalmonster超过 2 年前
This is more of an extreme generalization than an ironclad rule, but a lot of beginner Java positions are in depressing companies that are not fun and exciting to work at and do mind-numbingly boring stuff. The tradeoff for that is probably better than average job options: if&#x2F;when you get laid off or outsourced, there&#x27;s always a lot of options.<p>That said, Java itself can be a tool to work on pretty interesting problems of course. But you&#x27;re probably going to take some time to work your way up there.
rlawson超过 2 年前
Yep - it&#x27;s good job security. Learn Java first and then Kotlin or whatever after that. It&#x27;ll all make a lot more sense if you have a good understanding of core Java&#x2F;JVM first
gardenhedge超过 2 年前
Only if you want career options. If you just want to develop for the web I would say stick to JavaScript.