TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: New OSS Projects: Go or Java?

19 pointsby arrsinghover 8 years ago
I&#x27;m thinking of working on building something new and open sourcing it. I know java really well so my first choice is to build it in java (pure java - no J2EE or other bloat) but Go also looks like a great alternative. Plus I&#x27;ll have an excuse to learn Go.<p>Since I&#x27;m hoping others in the community will want to contribute, I thought I&#x27;d ask here before making a decision.<p>What do folks think - should I build it in Java or Go? Would you prefer to contribute to a Java or a Go codebase?

12 comments

benologistover 8 years ago
I think you should decide what your single most important goal is:<p>1) launch a project<p>2) learn a language<p>Learning a new language will derail your project completion and launch indefinitely, often permanently.
评论 #12534092 未加载
reitanqildover 8 years ago
&gt; What do folks think - should I build it in Java or Go?<p>There is an old quote that when people ask for advice you should carefully figure out what they want to hear and then tell them that.<p>In this case even more so: if you are starting an open source project I&#x27;d strongly recommend optimizing for long-term motivation. Whatever that means in this case I&#x27;m afraid I cannot tell.<p>&gt; Would you prefer to contribute to a Java or a Go codebase?<p>I personally would have a way simpler time contributing to a Java project than a Golang project.
tylerpachalover 8 years ago
I was wrestling with the same question a few months ago and ended up choosing Scala! I got to learn something new but could still fall back to things I liked about Java.
pbohunover 8 years ago
The most important thing is to use the right tool for the right job. If the project has networking and doesn&#x27;t involve building a GUI or graphics, then Go is a great choice. (Not that Go can&#x27;t do GUIs or graphics, but there aren&#x27;t very robust and mature libraries for those things yet).
评论 #12534184 未加载
评论 #12534106 未加载
评论 #12534023 未加载
评论 #12534090 未加载
samblrover 8 years ago
Get to read so much good about Go and I want to try. But then you see the syntax of Go - its plain-ugly - why ?
评论 #12535074 未加载
transfireover 8 years ago
Between Java and Go, definitely Go. I think you&#x27;ll find it surprisingly easy to learn, although a bit constraining compared to Java.<p>OTOH, if the project will require heavy loads you might want to consider Phoenix&#x2F;Elixir. That&#x27;s would be learning something truly different too.
gazarullzover 8 years ago
Given the scope of the question, if you are thinking about creating something useful in the OSS space, then I would clearly recommend to start with Java since you would be laying the foundation of the project in a language you know.<p>Otherwise pick Go.
softinioover 8 years ago
personally if I were you I would use this as an excuse to learn Scala especially as you have a Java background.
pesfandiarover 8 years ago
What&#x27;s the nature of your project? If you want people to use it and maybe create a community around it, the language might play a big role.<p>My impression is that Java is used by enterprise and more established sectors, whereas Go is popular with hobbyists and early adopters.
iurisilvioover 8 years ago
I tried to start another project in Go instead of Python&#x2F;Flask. I never really started.<p>If you want to learn, Go is a good choice. If you want to get things done, use what you already know.
_RPMover 8 years ago
How about C?
tuananhover 8 years ago
whether you want to ship or you want to learn more?