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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Switch to Java as Senior JavaScript Dev?

11 点作者 JS2Java将近 5 年前
I’m a technical lead working on a large Node.js monolith that helps power a very profitable software platform.<p>I’m starting to feel that I really need to start learning the Java platform to grow my career. For one, Node.js jobs are not really popular in my area. The ratio of backend Node.js to Java jobs is probably 1 to 50. Two, it seems like to get a FAANG type job then Node.js probably won’t cut it. Three, I make 130k+ in Raleigh, NC. Most Node.js roles can’t leverage my experience running highly available services and subsequently can’t or won’t match this salary level. Most teams needing five 9s are not looking at JS first. Even at my company, JS is a 2nd class citizen. Most of the companies reaching out to me on LinkedIn looking for somebody my level are looking for serious Java chops.<p>I have a master’s degree and have coded in a variety of other languages (TypeScript, Go, Python, etc) including some Java servlets in the past. I don&#x27;t know frameworks like Spring or Hibernate, so I think I should be invest some serious time into learning these frameworks and more idiomatic Java since it&#x27;s been almost a decade since I&#x27;ve touched Java.<p>Is this a case of the grass being greener, or does JavaScript just have a lower ceiling professionally than Java?

7 条评论

urthen将近 5 年前
In my personal experience I&#x27;d say there still is a widespread mindset in our industry that all &quot;real&quot; web development needs to be done in Java. I&#x27;d also say that whenever someone says that they usually mean &quot;I&#x27;m most comfortable in Java so let&#x27;s use that so I don&#x27;t have to learn new things.&quot;<p>I&#x27;ve used both Java and Node professionally, and have in the past few years made recommendations for new projects to be started in both Java and Node depending on their unique requirements. I&#x27;ve even worked on projects migrating existing systems both from Java to Node, and Node to Java.<p>That said, I do strongly believe that Node is better suited as a language for web-scale projects that deal more with asynchronous requests (such as to DBs and APIs) than doing heavy data crunching themselves. If you need heavy data crunching, Java might be better for you, and there are a lot more available frameworks.<p>If you&#x27;re looking for a job specific recommendation, it sounds like that might be partly regional. If you can&#x27;t find Node jobs in your area, then maybe picking up Java is the right answer for you.
评论 #23633564 未加载
theandrewbailey将近 5 年前
Brushing up or learning new skills is generally a good idea. There&#x27;s lots of money in Java. C#&#x2F;.Net is in a similar position, and might be worth looking into, depending on where you want your career to go.
muzani将近 5 年前
I&#x27;ve been doing Java for almost a decade but JS for the last 3 years. I still get good work on Java but it went from about 80% of my work to 5%. It does sound like the grass is greener.<p>And my salary was never near as high as yours, even after purchasing power conversion. The only companies that pay that well here are, surprise, hiring Node.js developers.
评论 #23629706 未加载
评论 #23629150 未加载
cpach将近 5 年前
&#x27;patio11 who is also a member of HN has written a blog post that IMHO is worth a read: <a href="https:&#x2F;&#x2F;www.kalzumeus.com&#x2F;2011&#x2F;10&#x2F;28&#x2F;dont-call-yourself-a-programmer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.kalzumeus.com&#x2F;2011&#x2F;10&#x2F;28&#x2F;dont-call-yourself-a-pr...</a><p>It touches on this subject.
评论 #23646868 未加载
fatcatdogfat将近 5 年前
NC has a lot of enterprises there which would lead me to assume their infrastructure was built out 10 years ago in Java which is why a lot of stuff in the enterprise space is still Java, enterprises continue to choose Java because there are millions of devs who know basic Java and basics about the Springboot&#x2F;spring frameworks.<p>You don&#x27;t really need to become a Java champion or study to pass the spring exams to get a great Java dev job at an enterprise, as your previous experience will translate,<p>I would recommend checking out springboot&#x27;s official tutorials as they are very approachable, or don&#x27;t, sounds like you&#x27;ll be okay either way :)
throw51319将近 5 年前
Are people doing anything complex or performant with Node? Isn&#x27;t it just good for non-block ops, like a proxy or something?<p>Usually the more complex systems that use Java are going to hire more experienced&#x2F;better devs. So higher pay.
评论 #23629344 未加载
评论 #23633187 未加载
user_agent将近 5 年前
JavaScript -&gt; Startups that hire young, &quot;dynamic&quot; people doing what usually no one cares about (most of them must bankrupt by definition).<p>Java &#x2F; C# -&gt; The whole enterprise sector. Which is much, much bigger and people tend to know very little about it.<p>A lot of devs are funny I think. I come entirely from the enterprise sector where I have been working my whole life. Looking at a &quot;startup lifestyle&quot; it&#x27;s hard for me to think about it seriously. Yes, there&#x27;s FANG, but who&#x27;d like to work there knowing that there are more healthy options. Oh, yes - the people who think that kind of work is a paramount of what&#x27;s possible ;) I&#x27;d prefer to work with people who think clearly, know their options, can assess risks for instance related with an inherent exotic approach of the JavaScript world. There&#x27;s no place in enterprise for unproven methods like that. Corporations are like military. They must rely on what they use to support themselves. Therefore, what you prefer to do also depends on which people you like better - yuppies or older engineers, thinking a little bit more seriously about themselves. I&#x27;m a junior dev, I&#x27;m 34 though, and from the very start I had a feeling that there&#x27;s something very, very wrong with those JavaScript young crowds out there. I went to a couple of meetups in my city, and it occurs that majority of them are the JavaScript ones... There&#x27;s one serious C# group (I&#x27;m into that stack) and probably 100 JavaScript-ish ones. The quality of the people in the first one, their maturity plus how they think about technology, I consider fairly more reasonable for my personal taste. Hence, I won&#x27;t get into the JS camp until there&#x27;s no other choice. Years passed since my first epiphany of &quot;There&#x27;s something wrong with those JS people&quot; and the feeling is only getting stronger. I can&#x27;t argue about it logically, so I&#x27;m not going to claim that kind of approach is universal in any way, bu I must also say that after countless hours of discussions with the C# (and Java too) people, a lot of them shares that feelings. It&#x27;s about philosophy, about how one think things should be done on the most fundamental level. I&#x27;ve seen in my life maybe a handful of really reasonable JS devs, which isn&#x27;t the case in the C# or Java world at all...<p>I didn&#x27;t refer to most of your questions, @Op. I just want you to consider which kind of people are your people. I also wonder how do you deal in your workplace with your specific mindset, which honestly seems like the one often found among Java devs, not the JS ones.<p>Myself, I prefer to work on big scale, important, enterprise projects. Startups are just not for me. But I also like to do my own stuff after work, and both Java and C# are very comfortable for doing that too. I just feel very hesitant with using technologies that seem to be better suited for building let&#x27;s say prototypes. I&#x27;d rather prefer to start with a real thing.<p>For the rest of the people reading this post - try not to hate me. I&#x27;m not claiming who&#x27;s a better individual because which language is being used. I&#x27;m purely referring to my own experiences as someone who&#x27;s having I think a rather different background than most people in web development. I&#x27;d really like to better understand why I&#x27;m having the impressions I&#x27;ve been writing about.<p>On the other hand there&#x27;s a ton of people swearing that JS is the one for them. And they usually too can&#x27;t help me understand why it&#x27;s so obvious for them, like I don&#x27;t know how to make them understand that the existence of JS in an abomination... And that I can&#x27;t wait when WebAssembly is going to be a standard ;)<p>So, the question remains - are we really that different in how we understand what technology is and how it should be done, or maybe we all have a big lesson to learn here that&#x27;s going to come later in our professional endeavors? Maybe someone with A LOT of real world experience could help with answering it.
评论 #23644783 未加载