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
Is Java still shit or actually usable?
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.
Is this you?
No.
Still shit. What you can do in 10 lines in JS translates to 100 in Java.
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.
go ahead and write a banking backend in javascript
>-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")) { ... }
Makes sense to me.
No it doesn't.
Just use Python for that if you need shitty slow code that has to just werk. C for everything serious. Java is a meme.
pls no
== checks if the object is the same
equals checks if the content is the same
Makes sense.
Bad example, both work because of how String literals are handled by JVM.
It's literally 2 hard coded strings, the compiler should optimize it away while producing bytecode. Java sucks.
Never said they didn't.
it literally says wrong in the first one
Wrong, not that it doesn't work.
it's not wrong if it always works
does anyone in these threads even program or is it just all shitposting?
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
>he doesn't know what == stands for
top kek
I have my own indie game company ;_;
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.
>-support for the newest utf-8 revision
Nothing has changed in UTF8. You're probably thinking of Unicode.
== is reference
Equals is value
Someone is retarded
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.
Same here, compadre.
String message = "Garbage, but still one of the better languages";
System.out.printf("%s\n", message);
>he doesn't know the shittiness of Java
Top fucking kek!
>what are pointers
kys
We'll all make it big someday,
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.
Java has been usable since 1996. It is very hard to find a big, serious company that doesn't use Java in their infrastructure.
>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.
>Java 9
>modularisation
I don't think so mate.
t. Red Hat
Kotlin
>Kotlin
Interesting. Didn't know JetBrains made languages.
If it's as amazing as their IDEs, I will definitely try this. Thank you.
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.
>No user-defined value types, everything must be GCd
>(C/C++ speed)
sure, sure
Well, there are frameworks in C++ that are effectively operate as Java - everything is using smart pointers with GC inside.
smart pointers =/= generational GC.
lmao look at this retard
>No user-defined value types, everything must be GCd
just store your bytes in an array if you need manual memory management
Yes, Java8 is great!
I really like they added functional features.
Java8 makes java an acceptable Lisp.
The functional stuff in Java 8 is surprisingly nice, but C# did it better.
>Java eight
More like Java AIDS
LOL rekt
haha LMAOOO
XD
>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.
print("Hello World!")
Python is obviously a pile of shit!!! Right?
I think you mean
print "Hello World!"
>his shit language is this verbose
Pleb. Check out my Ruby skills
hello 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.
Python is not pile of shit.
But if I want to make any program with nice GUI, I will always choose Java.
Perl wins again
perl -e "`wget www.google.com`"
private static String javaDownloadingWebpageAsAStringWithNoExternalLibrariesAbstractFactorySingletonProxyAdapter(String url) throws MalformedURLException, IOException {
return new Scanner(new URL(url).openStream(), "UTF-8").useDelimiter("\\A").next();
}
I came in at java 8 and I really love it. It's great for supercomputer stuff.
> 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.
The == version won't work in some situations when multiple class loaders are in play which is very common.
> 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.
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.
and still no type inference?
god dammit whats taking so long
I heard rumours that it would with val keyword.
print ("but python is better")
Thats python 2 retard
>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.
This
If you need performance, why are you using java and not C or even C++? There's no reason for java to exist.
Sometimes people want things that run reasonably fast without manual memory management autism.
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
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.
But Java is fast
haven't needed to update my j2ee applications since 1.5
feels good
>java is shit
: ^ )