all life i poo in street but now white people say me to poo in loo and i say NO loo cost moni and poo in street is free
System.out.println("Its usable.").
Coffee enemas cannot be anything else than shit.
I started using Java from version 7 and I liked it immediately.
>>60444737
Is this you?
>>60444780
No.
Still shit. What you can do in 10 lines in JS translates to 100 in Java.
>>60444689
lava 9 comes in september with new features like:
-native compiling (c/c++ speed)
-modularisation
-https2.0 support
-support for the newest utf-8 revision
-print->eval->loop for java.(its like the python interpreter)
-debugging in production
.microbenchmarks
and many many things.java is amazing and by java 11 it will be better than even c#.
also thanks to the native compilation and the modules(only compile what you need not the whole library(lower memory usage)) in a few years the already very fast java will go near c++ fast.
>>60444831
go ahead and write a banking backend in javascript
>>60445015
>-native compiling (c/c++ speed)
>in a few years the already very fast java will go near c++ fast.
// wrong
if ("this" == "this") { ... }// correct
if ("this".equals("this")) { ... }
>>60445191
Makes sense to me.
>>60445201
No it doesn't.
>>60445133
Just use Python for that if you need shitty slow code that has to just werk. C for everything serious. Java is a meme.
>>60445133
pls no
>>60445217
== checks if the object is the same
equals checks if the content is the same
Makes sense.
>>60445191
Bad example, both work because of how String literals are handled by JVM.
>>60445254
It's literally 2 hard coded strings, the compiler should optimize it away while producing bytecode. Java sucks.
>>60445256
Never said they didn't.
>>60445284
it literally says wrong in the first one
>>60445307
Wrong, not that it doesn't work.
>>60445329
it's not wrong if it always works
does anyone in these threads even program or is it just all shitposting?
>>60444689
There's tons of software written in Java that needs to be maintained so there will be money in it for maaany years and it's LITERALLY the only true compile once run everywhere platform.
What about C#? I don't see any reason in switching to C# as long as Java just werks for me
>>60445191
>he doesn't know what == stands for
top kek
>>60445369
I have my own indie game company ;_;
>>60444831
10 times less code and 10 times less performance. The one thing Java has going for it is that it is pretty fast (as long as you don't write retarded code, but that's true for any language).
It's not faster than C/C++, but it's also more abstracted which can be nice sometimes, but as long as you have any idea what you're doing, it's also not slower.
>>60445015
>-support for the newest utf-8 revision
Nothing has changed in UTF8. You're probably thinking of Unicode.
>>60445217
== is reference
Equals is value
Someone is retarded
>>60445191
There are lots of cases where you may want to compare strings by identity. That you can't use identity comparison for strings is a meme.
>>60445429
Same here, compadre.
>>60444689String message = "Garbage, but still one of the better languages";
System.out.printf("%s\n", message);
>>60445424
>he doesn't know the shittiness of Java
Top fucking kek!
>>60445191
>what are pointers
kys
>>60445429
We'll all make it big someday,
>>60444689
Compared to C#, it's a pretty shitty language.
But if you don't want to use C# because of muh microsoft, it's fine i guess. I can't really imagine any better language (except for C#) for webservers.
>>60444689
Java has been usable since 1996. It is very hard to find a big, serious company that doesn't use Java in their infrastructure.
>>60444831
>le "helo world is longer than in my dynamic language therefore java a shit" argument
Do you realize that this only appeals to 1st year CS students who haven't written anything longer than 100 LOC yet? Simple utility programs are not Java's usecase. I tend to use python when I need to write something small. Wouldn't use it for anything even remotely complex though.
>>60445015
>Java 9
>modularisation
I don't think so mate.
t. Red Hat
>>60445701
Kotlin
>>60445713
>Kotlin
Interesting. Didn't know JetBrains made languages.
If it's as amazing as their IDEs, I will definitely try this. Thank you.
>>60445191
Java was retarded to go full "dude everything's a pointer also we don't have pointers lmao" but this is the most logical way to handle identity and equality in that scenario.
>>60445015
>No user-defined value types, everything must be GCd
>(C/C++ speed)
sure, sure
>>60445830
Well, there are frameworks in C++ that are effectively operate as Java - everything is using smart pointers with GC inside.
>>60445857
smart pointers =/= generational GC.
>>60445857
lmao look at this retard
>>60445830
>No user-defined value types, everything must be GCd
just store your bytes in an array if you need manual memory management
>>60444689
Yes, Java8 is great!
I really like they added functional features.
Java8 makes java an acceptable Lisp.
>>60445973
>>60445960
The functional stuff in Java 8 is surprisingly nice, but C# did it better.
>Java eight
More like Java AIDS
LOL rekt
>>60446156
haha LMAOOO
>>60445240
>Just use Python for that if you need shitty slow code that has to just werk. C for everything serious. Java is a meme.
Java's several times, sometimes up to several dozen times faster than python and works well enough that pajeets can use it.
>>60444705print("Hello World!")
Python is obviously a pile of shit!!! Right?
>>60446345
I think you meanprint "Hello World!"
>>60446345
>his shit language is this verbose
Pleb. Check out my Ruby skillshello world
HEAVEN OR HELL
Show me Java downloading a webpage as a string with no external libraries or apache commons.
C# can do this in two lines with the included WebClient class. Surely Java, the supposed king, can as well?
If not, Java a shit.
>>60446345
Python is not pile of shit.
But if I want to make any program with nice GUI, I will always choose Java.
>>60446431
Perl wins againperl -e "`wget www.google.com`"
>>60446431private static String javaDownloadingWebpageAsAStringWithNoExternalLibrariesAbstractFactorySingletonProxyAdapter(String url) throws MalformedURLException, IOException {
return new Scanner(new URL(url).openStream(), "UTF-8").useDelimiter("\\A").next();
}
>>60444689
I came in at java 8 and I really love it. It's great for supercomputer stuff.
>>60445015
> native compiling (c/c++ speed)
They did some work on this but it won't be usable until Java 11 at the very earliest.
> modularization
Probably not happening in Java 9 since Jigsaw has major problems and IBM, RedHat and the majority of the JCP voted against it.
>>60445256
>>60445424
The == version won't work in some situations when multiple class loaders are in play which is very common.
>>60445015
> and many many things.java is amazing and by java 11 it will be better than even c#
If you want something better than C# feature-wise, just use Scala.
It had a REPL and a lot more for a long while now (yea, like the Python interpreter).
Java is coming along fine, though.
>>60445412
C# is just the more elegant, fast, reliable, stable and non memed language available. Don't need to use endless factories. Don't need to use shit endless references. And have the the best ide available and now works on Linux as it should.
Java is a slow cancer.
>>60445015
and still no type inference?
god dammit whats taking so long
>>60447204
I heard rumours that it would with val keyword.
>>60445477print ("but python is better")
>>60446382
Thats python 2 retard
>>60447152
>Java is a slow cancer.
Yet on every single benchmark Java on the JVM easily beats C# on the CLR. The JVM is currently much better than the CLR.
>>60445954
This
>>60446293
If you need performance, why are you using java and not C or even C++? There's no reason for java to exist.
>>60447831
Sometimes people want things that run reasonably fast without manual memory management autism.
>>60447831
probably because Java is fast, and also easier and more safe to program with than C/C++
>There's no reason for java to exist.
that's a bold statement given the fact that everyone and their mother is using Java
>>60447831
Because C/C++ is not as fast to write & often not as easy to deploy and run.
[Among many other things, the Java world had very few migration pains from ARM32 to ARM64 or X86 to X86_64. Having that VM and it's extensive sandboxing makes things easier.]
The difference in performance from Java to C or C++ is minimal anyhow, unlike with Python.
Java is hence widely used even in large scale, performance critical applications in big data / big processing etc. - maybe even more than C / C++, for various reasons.
>>60447831
But Java is fast
>>60444689
haven't needed to update my j2ee applications since 1.5
feels good
>java is shit
: ^ )