Live data from Hacker News

Should I Learn Java in 2018

e4developer.com

101–110 of 165 posts

Re: Should I Learn Java in 2018

#101
post #16

It's the defacto standard language at Amazon. There's no specific requirement that teams write code in Java and all the high level infrastructure makes no presumptions, but there's great internal support for it. And Amazon hired Gosling, so interpret that as you will.

>...so interpret that as you will.

Probably 'just in time' as this a Java thread.

Re: Should I Learn Java in 2018

#102
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…

> 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.

Re: Should I Learn Java in 2018

#104
post #58

I think that its time that the enterprise switches to full stack Typescript as a much better solution for developing enterprise software. Why use two languages and two different ecosystems for the backend and for the frontend, when we can use only one? It makes hiring a lot easier too. Let's face it the Java ecosystem is stagnated and has lost a tremendous amount of mindshare in the last 7 years. The level of modular…

A language with no built-in multi-threading capabilities is unlikely to suit every backend. Running multiple copies of the same lightweight process works quite well for stateless http interaction (request -> database -> response), but it's a lot of overhead to cross process boundaries every time you want to run something in another thread.

I also have a question about the loss of mindshare. What new technologies are unaccessible from Java, but are accessible from at least 2 other languages (one of which is TypeScript / JavaScript)? A loss of mindshare would likely mean smart people aren't around to build libraries / integrations to the latest hotness.

My background: Originally a Java developer, now mostly Clojure. Also a Javascript (mostly react) developer.

Re: Should I Learn Java in 2018

#105
post #94

> Concern 5: Java is too slow/consumes too much memory It's sad that this is still a thing. Compared to more trendy languages like Python and Javascript, Java is very light on memory. JS is known for being fairly fast and "light", but its actually 5-10x slower than Java and uses 5-10X more memory. And the whole "lightness" of it is a lie. Javascript's run-time is probably bigger and more complex than the JVM. Java us…

How efficiently does Java run when compiled to the browser platform? (e.g. WASM) (The browser is an important target these days, so imho this question must be addressed; besides, I want to be able to use the same code on the server as on the client; and sadly, the JVM isn't guaranteed to work in every browser).

I'm really excited for WASM, it should be nearly as fast as native code. Java and native code aren't far apart though, so I would say 1.5-2x faster generally

Re: Should I Learn Java in 2018

#106
post #65

Earlier quoted context omitted.

JVM uses as much memory as you allow. Use `-Xmx39m` to beat Golang.

My guess is that it won’t work with less than 1GB bc of spring boot, hibernate and all the rest of Java enterprise “microservice” goodness.

> My guess

So you actually haven't tried to run an application with those libraries, and you don't even know what libraries that particular application is using, and here you are speculating about something you don't know and/or understand.

Re: Should I Learn Java in 2018

#107
post #95

Was hopping to see more mentions of Android development... I’m currently weighing building an app in Kotlin or Java

IMO to use Kotlin effectively you need to know Java, so to answer to the article title for you is yes. But I would probably use Kotlin for the actual development due to Android Java being versions behind and version fragmentation.

Re: Should I Learn Java in 2018

#108
post #94

Earlier quoted context omitted.

How efficiently does Java run when compiled to the browser platform? (e.g. WASM) (The browser is an important target these days, so imho this question must be addressed; besides, I want to be able to use the same code on the server as on the client; and sadly, the JVM isn't guaranteed to work in every browser).

I'm really excited for WASM, it should be nearly as fast as native code. Java and native code aren't far apart though, so I would say 1.5-2x faster generally

Ok, but I'm worried about the garbage collector, and if it can run concurrently without interrupting the program (as a native JVM would do it).

Re: Should I Learn Java in 2018

#109
Yes, by all means learn Java. It's not as hip as Go or JavaScript, nor as versatile as Lisp. Learn it because it's still a valuable utility language for writing networked services (especially large ones) and it has HUGE library support. Learn it for the hell of it. And don't be swayed by its reputation; Java in 2018 is asymptotically approaching Kotlin (which you may also want to learn, as long as you're on the JVM).

Re: Should I Learn Java in 2018

#110

Earlier quoted context omitted.

I'm really excited for WASM, it should be nearly as fast as native code. Java and native code aren't far apart though, so I would say 1.5-2x faster generally

Ok, but I'm worried about the garbage collector, and if it can run concurrently without interrupting the program (as a native JVM would do it).

It should be able to... Hopefully Go and Java will be some of the first GC languages to target WASM, and we'll find out :) . Personally I'm more worried about the size of the GC getting added to the binaries than how fast it is.
Post reply on HN