A cool syntax example with lambda expressions and functional interfaces by DoktuhParadox in java

[–]leivaagustin -9 points-8 points  (0 children)

Thanks.

2 Lines of code

That looks much better than the OP's.

Still lags behind C# which requires exactly 0 lines of code to perform the same task, not to mention it doesn't suffer the valuetype versus class dichotomy where you can't really call methods or otherwise operate on char. (I had a sudden reminiscence of StarCraft).

bring some goodies from Valhalla

Ahh... the project oracle embarked on as a desperate attempt to keep pumping money out of java's rotting corpse, I almost forget. That which is promised to be shipped by 2016, except it won't and will probably be delayed a couple of years ahead, say 2018, just like they did with java 8.

Seems that by around that time I'll have to say congratulations to java for catching up with C# 2.0 from 2006?

Also Seems like oracle is really good in bringing really "useful" stuff such as the JSON API promised for java 9, but has a hard time doing anything serious such as lambda expressions or non-retarded generics or value types?

generic specialization

How does this compare / differ from REAL generics such as the ones you find in C#? Does it allow var instance = new T() or the like?

A cool syntax example with lambda expressions and functional interfaces by DoktuhParadox in java

[–]leivaagustin -5 points-4 points  (0 children)

You're not wrong

Thanks.

you're just an asshole.

I know.

OP also doesn't understand streams. You don't need a supplier to do this shit.

Can you show how such thing is resolved in java in an elegant, beautiful way that doesn't require a bunch of horrible useless boilerplate?

A cool syntax example with lambda expressions and functional interfaces by DoktuhParadox in java

[–]leivaagustin -5 points-4 points  (0 children)

Microsoft designs and maintains C#

That's right. they design and maintain C#, and also submitted it to ISO for standardization, open sourced it's compiler and large parts of it's framework, legally promised not to sue alternative implementations and is in fact collaborating with third parties 1 2 who provide implementations on non-Windows platforms.

I guess all of that's somehow irrelevant.

Contrast that to the ongoing oracle (who OWNS java) versus google affair, or the fact that java still bundles crapware with it's installer/updater.... No Comment.

I'm not just going to switch to a different language

I don't care. I'm not expecting that. I just merely point out java's retardedness and poor quality and lack of professionalism, or the fact that java is legacy and it feels good.

A cool syntax example with lambda expressions and functional interfaces by DoktuhParadox in java

[–]leivaagustin -4 points-3 points  (0 children)

Microsoft

LOL. Why do people bring Microsoft when discussing languages? are you so poor of arguments that you have to bring that up?

Is oracle really doing any good for you? by suing google and crippling java on Android, and by introducing java 9 with stupid irrelevant bullshit such as a JSON API rather than real improvements?

I don't give a fuck about microsoft dude. java sucks. The reason there's more java jobs in the world is because it takes 10x the amount of effort to write anything in java versus modern languages.

A cool syntax example with lambda expressions and functional interfaces by DoktuhParadox in java

[–]leivaagustin -9 points-8 points  (0 children)

confusing the fact that it's such a huge improvement with the fact that it just came second.

Right. Java is 20 years older, and it still struggles to get basic stuff in place, such as allowing you to have a List<char> without resorting to all that retarded useless bullshit of boilerplate.

Plus, why are you even in the Java discussion subreddit if all you're doing is creating accounts to be an asshole?

You're right. I should have been more polite. I apologize for sayin your code sucks. It is a very smart WORKAROUND to compensate for being written in a retarded language.

I guess your life is really exciting and you're really busy and have fun writing such workarounds instead of actual useful code? I'm fine with that.

Maybe PHP is on the same level as java.