Live data from Hacker News

Should I Learn Java in 2018

e4developer.com

151–160 of 165 posts

Re: Should I Learn Java in 2018

#151
post #102

Earlier quoted context omitted.

> If you become Java developer you probably will not be working on games, on exciting IoT projects, beautiful UIs, AI, and other exotic stuff. You will be doing backend systems and hopefully be paid well. Games and IoT projects need backends as well, and it's not that unusual for those to be written in java.

Yes, you might be right, but there aren't that many of those projects. Also backends for anything tend to not be spectacular if done well because they are... backends.

Oh they are spectacular indeed.

Just let a couple of enterprise architects loose designing them.

Re: Should I Learn Java in 2018

#152
post #22

I never got the "Should I learn X" posts. The answer is yes to all the "Should I learn X" questions so it's very hard to have a discussion. Learning another language is _significantly_ easier than learning the first one or two - not to the point of being a master but to the point of being competent. Should I learn OCaml? Yes, you learn from knowing a functional language and Scala (combines functional and OOP well) an…

Me neither, I have always beem against the 'X Developer' mantra of siloing oneself into a language corner.

Re: Should I Learn Java in 2018

#153
post #147

Java itself is pretty fast and wonderful, at-least the modern versions. It’s the libraries and the ecosystem. Java folks typically over engineered things with layers and layers of abstraction in the name of “enterprise”. Writing a web app in Django/express vs tomcat/jboss you’d feel the pain. It would take forever to start, chew an insane amount of memory and nodejs runs circles around it. There aren’t that many thin…

Sun would have sued Google as well, if they still had the money to do it.

Oracle is so bad, yet no other company was bothered to rescue Sun, not even IBM which backpedaled on their proposal.

And mostly importantly, Google, after what they had done.

Re: Should I Learn Java in 2018

#155
post #53

Earlier quoted context omitted.

> but its actually 5-10x slower than Java and uses 5-10X more memory I am definitely against the "Java is slow" claims and think they are mostly rediculous but so is this claim. Saying "uses 5-10x more memory and 5-10x slower" goes against every benchmark I've ever run and my understanding. Mostly because JavaScript runs on several JITs (V8, JavaScriptCore, SpiderMonkey, Chakra) with different performance goals and c…

>Slowness isn't a property of the language it's a property of the runtime This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. Language design choices have a huge effect on how fast the runtime can be. In Javascript, objects are stored as a map of key->value pairs, and aren't strongly typed. This design requires more overhead for type checking and m…

> You don't see the memory difference

You'll see the memory difference if you compare Java with C++: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Except for one benchmark, where memory requirements are likely determined by the implemented algorithm, Java consumes in order of magnitude more memory across the board.

Re: Should I Learn Java in 2018

#156

Earlier quoted context omitted.

>Slowness isn't a property of the language it's a property of the runtime This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. Language design choices have a huge effect on how fast the runtime can be. In Javascript, objects are stored as a map of key->value pairs, and aren't strongly typed. This design requires more overhead for type checking and m…

> You don't see the memory difference You'll see the memory difference if you compare Java with C++: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Except for one benchmark, where memory requirements are likely determined by the implemented algorithm, Java consumes in order of magnitude more memory across the board.

> … Java consumes in order of magnitude more memory…

Not for reverse-complement.

Not for k-nucleotide.

Not for binary-trees.

Not for mandelbrot.

Not for regex-redux.

The others show the default JVM memory allocation mas o menos.

Re: Should I Learn Java in 2018

#157
post #115

Earlier quoted context omitted.

>Slowness isn't a property of the language it's a property of the runtime This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. Language design choices have a huge effect on how fast the runtime can be. In Javascript, objects are stored as a map of key->value pairs, and aren't strongly typed. This design requires more overhead for type checking and m…

> This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. PHP7 isn't a slow language at all - it's much faster than previous versions actually. There are servers like aerys [1] that easily handle 10,000 concurrent requests on reasonable hardware. The reason sapi (read "regular") PHP isn't "faster" is because caching and the ease of deploying more serve…

> All those programs are poorly written…

Please contribute your own much better written programs —

https://salsa.debian.org/benchmarksgame-team/benchmarksgame/...

Re: Should I Learn Java in 2018

#158
post #79

I have been developing backend systems in Java, professionally, for the past 15 years. You should not base your career choice of being Java programmer or not solely on Java's popularity. There are genuine good reasons to learn niche technologies especially if you like them more. I think if you genuinely like something you are much more likely to succeed in that field and it is better for you no matter the size of the…

> Java development is for a specific type of programmer that will most likely work for large corporation and more often than not on some unsexy backend system.

There is always a rule to every exception. I am in startup that uses Java. We are creating medical device software that runs on Linux. We have a JavaFX application that connects to a PostgreSQL database on Docker. The application also uses an embedded Jetty server to expose a series of HTTP endpoints as well as a websocket. We use Jogl to work with OpenGL to render 2d graphics to the screen.

This is by far the coolest project I have worked on.

Re: Should I Learn Java in 2018

#159
post #115

Earlier quoted context omitted.

>Slowness isn't a property of the language it's a property of the runtime This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. Language design choices have a huge effect on how fast the runtime can be. In Javascript, objects are stored as a map of key->value pairs, and aren't strongly typed. This design requires more overhead for type checking and m…

> This is true to an extent, but look at the time and money poured into PHP and how slow it still is after all these years. PHP7 isn't a slow language at all - it's much faster than previous versions actually. There are servers like aerys [1] that easily handle 10,000 concurrent requests on reasonable hardware. The reason sapi (read "regular") PHP isn't "faster" is because caching and the ease of deploying more serve…

> and are running outdated versions of both Java and Node.js

That does not seem to be true —

java version "10.0.1" 2018-04-17 versus "Java SE 10.0.1 is the latest feature release for the Java SE Platform"

http://www.oracle.com/technetwork/java/javase/downloads/inde...

— or not-very out-of-date —

Node js v10.5.0 versus 10.6.0 Current

https://nodejs.org

Re: Should I Learn Java in 2018

#160

Earlier quoted context omitted.

I have worked for a number of companies, big and small, and this is recurring thing. If you are a person looking to get good salary by becoming programmer but you are not really interested in programming, Java is most likely to be your choice. You will never advance, but that's fine. If you are bad enough you will just change company and get your salary from another. There is so much pressure to find Java developers…

I don't know where you are from but most universities in the U.S. teach Java or C++ as primary language. Pretty much everybody in our school used Java as their interview language and due to the leetcode grinding culture, the interviews are not definitely easy. The companies you talk about sound like they suck.

Usually true for graduate hires but lateral hires of experienced devs are more uneven in quality. Where I work, campus recruits are like geniuses, while some experienced engineers are just buzzing through. I remember one of them told me he never used github, after working for 6 months, when we have github enterprise in our own company
Post reply on HN