[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why doesn't anyone here like Java? Give me a detailed reason.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 36
Thread images: 6

File: 1494537577450.jpg (105KB, 739x751px) Image search: [Google]
1494537577450.jpg
105KB, 739x751px
Why doesn't anyone here like Java?

Give me a detailed reason.
>>
>>60508205
Unless they mean to use a better language like Clojure I don't think they are more than trolls
>>
>>60508205
It's a meme to hate Java.

Most people who hate on it cannot even program in any language.
>>
>>60508205
>Verbose and ugly syntax
>Requires JVM
>Updates get pushed to try to trick people into installing some third-party garbage of the month
>Primarily used by Pajeets
>>
If you want speed, use C++. If you want ease of use, use python. If you want the jvm ecosystem + ease of use, use Kotlin or Scala.

There's no place for Java.
>>
>>60508455
>Verbose and ugly syntax
verbosity makes programmer's intent clearer. this helps enormously when working in big teams or with inherited code

>Requires JVM
that's a plus

>Updates get pushed to try to trick people into installing some third-party garbage of the month
non-shit operating systems don't have this problem

>Primarily used by Pajeets
well, there's a fuckton of them, so that's not really surprising
>>
>>60508205
Type erasure in generics. Proper collections are impossible due to the aforementioned reason, anything but arrays of primitive types is dogshit slow. 4kb of memory per class instance.
>>
File: file_0.png (361KB, 850x733px) Image search: [Google]
file_0.png
361KB, 850x733px
>>60508205
I write it for a living and like it. All these other fags here are contrairians and hate java because its the most used language and an industru standard for enterprise software.
>>
>>60508205
- No sum types.
- No proper closures.
- The billion dollar mistake.
- Verbose like no other.
- No modules.
- Requires class declarations for everything.
- Does generics via type erasure instead of monomorphization.
- JVM is fast for what it does, but eats memory like a madman and what it does is shoveling shit, so despite all the work put into it it loses to fucking Go.

Thankfully, good IDEs (read: IDEA) and Kotlin makes dealing with the ecosystem much more bearable.

But it's absolute dogshit. We've had so much better languages since forever.
>>
>>60508575
>anything but arrays of primitive types is dogshit slow
by your definition everything slower than C is dogshit slow

>Type erasure in generics. Proper collections are impossible due to the aforementioned reason
and yet there's an insane amount of java code doing important things right now and it just werks
>>
File: 71de890b.png (21KB, 553x363px) Image search: [Google]
71de890b.png
21KB, 553x363px
>>60508608
>by your definition everything slower than C is dogshit slow
No, by my definition Java is simply slower than everything else in this regard.
>and yet there's an insane amount of java code doing important things right now and it just werks
Same can be said about cobol and fortran.
>>
>>60508608
>and yet there's an insane amount of java code doing important things right now and it just werks

And COBOL runs half the world's banks.

Shit languages can be used for doing productive shit, it doesn't mean the language makes the programmers productive compared to a decently designed language or doesn't introduce all sorts of pitfalls that lead to disaster in production.
>>
File: 1472889920046.gif (140KB, 379x440px) Image search: [Google]
1472889920046.gif
140KB, 379x440px
>>60508205
Java is not a bad language tbqh.
Some people have may hate it because of memes and shit like that.

Personally I have nothing against it (except for some little things like the lack of unsigned int and strange handling of Strings), it's a good language, but some libraries, methods and implementations might be cancerous.

Programming for Android, specially on Android Studio, makes me want to kill myself.
>>
>>60508630
>>60508632
>comparing java to covol and frotran
>while unironically liking c and the like
Wew lad
>>
KOTLIN
O
T
L
I
N
>>
>>60508635
>Java is not a bad language tbqh

The only way someone can say that is by not having much experience in other languages. What have you programmed in?

> Programming for Android, specially on Android Studio, makes me want to kill myself.

The Android API is world-renowned for being shit. Everyone sane agrees on that.

>while unironically liking c and the like

When did I imply I liked C? It's shit too.
>>
>>60508661
>EVERYTHING I DONT LIKE IS SHIT!
>>
>>60508643
>>60508661
Forgot to quote for last greentext.
>>
>>60508643
I never said I like C.
>>
>>60508674
>>60508686
Thats what is better than java and c for most projects, smart guys
>>
>>60508661
C, C++ (not much, 1 year job), C# (currently), Python and Java.

Again, Java is not a bad language for what the people says about it.

There are problems with the language yeah we all know but it's not all that of a monster people like to meme about. No need to be so dramatic.
>>
>>60508698
C#.
>>
>>60508630
>a 5 year old benchmark from xamarin's website
kek
>>
>>60508726
It's not benchmarked often despite being so immensely important. And math based benchmarks use simple arrays, hence why java scores reasonably high there.
>>
File: ceci n'est pas un argument.jpg (17KB, 720x533px) Image search: [Google]
ceci n'est pas un argument.jpg
17KB, 720x533px
>>60508672
Both are languages full of pitfalls born in times where comp sci had already shown how to prevent whole classes of bugs with a decent, straightforward type system.

They're shit.

Java's worse tho.

>>60508698
To replace C? Depends on what area. Rust is the most obvious one but it's not mature enough for some uses, for which you might wanna consider Ada or a C subset like MISRA.

For Java? Kotlin and Scala are the most obvious straightforward replacements. Otherwise F#, OCaml, Rust or Haskell got you covered.

>>60508713
Try a language derived from ML. F# looks like the best choice for your background. Elm is a great introduction to the concepts if you wanna fuck around in the frontend a bit without the JS cancer.
>>
It's about workplaces that use Java. Nothing wrong with Java, but job descriptions that ask for Java are red flags. And .NET. Whoa, that's pretty much the whole market lol.
>>
>>60508773
Thankfully Scala and Kotlin are pretty popular in Java shops.

Wish F# got more popular at .NET shops, but C# development is a much better experience than Java anyway.
>>
File: ss-2017-05-21-05-18-49.png (307KB, 737x996px) Image search: [Google]
ss-2017-05-21-05-18-49.png
307KB, 737x996px
>>60508739
here they use collections
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Java/spring/src/main/java/com/techempower/spring/web/WorldDatabaseController.java
>>
reflection
>>
>>60508798
>comparing Java to Java
>>
>>60508787
Yes, I'm using C# with Unity at my current job. I'm hoping our next project uses 2017.1 which has C# 6 features. It'll be so fucking awesome.
>>
>>60508205
OP here, right now I use Java for web scripting and a few desktop applications. I'm maybe intermediate level.

I'd like to do more desktop applications. What language would you guys recommend for this as a replacement to java?
>>
>>60508478
>ease of use
>kotlin syntax
ok
>>
>>60508966
Better question....What's the most versatile programming language? C++?
>>
>>60508966
>I use Java for web scripting

So, GWT?

> I'd like to do more desktop applications. What language would you guys recommend for this as a replacement to java?

GUIs? QML. Write non-UI logic in C++ or a language with QML bindings.

CLIs? Anything that compiles to a native binary. Go is a bit of a default choice nowadays.

> What's the most versatile programming language? C++?

It's better to learn many languages well-suited to specific tasks than a single all-encompassing one.

C++ is the living example on why the latter is a terrible idea that drives an ecosystem into the shitter.
>>
>>60508966
typescript with electron
kotlin with tornadofx
c++ with qt5
Thread posts: 36
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.