r/programming • • Sep 19 '18

Java 11 String API Updates

https://4comprehension.com/java-11-string-api-updates/
41 Upvotes

21 comments sorted by

9

u/sinedpick Sep 19 '18

One of the coolest additions to the String API is the repeat() method…

This does not bode well.

3

u/berry120 Sep 20 '18

The `lines()` method is actually pretty neat - an overdue addition really (should've been added when Streams were.) Most of the rest seems a bit arbitrary, and that's being generous - I'm struggling to come up with any real world use cases of the `repeat()` method, if someone could enlighten me I'd be most grateful...

4

u/0x15e Sep 20 '18

So almost caught up with c# 2.0?

7

u/ProFalseIdol Sep 20 '18

Well ahead in terms of backwards compatibility

-12

u/vielga2 Sep 20 '18

^ this is what it looks like when you have no fucking idea what you're talking about and do so just because the air is free.

can you name 1 (ONE) instance where backwards compatibility has been broken by C# in the last 10 years? also, why the fuck are you java idiots stuck in java 7 or even java 6? isn't java so magically "backwards compatible" that you should fearlessly update to the latest version in a single click and call it a day?

No?

What a fucking retard.

Meanwhile I constantly update ALL my projects just by opening them up in the IDE and doing a single click EVERY time a new C# version (minor or major) and even a new .NET version is released, the very fucking same day of the release. And guess what? IT FUCKING WORKS, you fucking pathetic loser.

6

u/ProFalseIdol Sep 20 '18

lol. you having a really bad day bro?

-5

u/vielga2 Sep 20 '18

Of course you cannot properly answer my question because you're a clueless java retard and don't know fucking shit.

Therefore you have to resort to sidestepping making a completely irrelevant comment about me, which no one gives a fuck about, showing your complete ignorance and utter stupidity.

3

u/[deleted] Sep 19 '18

Still no multiline strings...

26

u/_INTER_ Sep 19 '18

Its in Java 12. So March...

5

u/duhace Sep 19 '18

gotta love the new release train

lotta helpful day to day features and cleanup being released frequently instead of languishing for 3+ years

2

u/[deleted] Sep 20 '18

I love the new features, and they even make me want to consider programming in Java again. It's almost approaching C# levels of enjoyment of programming. However, I know people (cough, at my work) who are sitting on top of legacy Java systems that were most recently upgraded to Java 7. I wonder how long it will take before any of these features/new versions of Java become adopted by large, slow-moving corporations.

1

u/berry120 Sep 22 '18

They didn't really help themselves with Java 9 - theres a lot of potentially breaking changes between 8-9 that will cap the legacy programs to 8, and the next LTS version (11) is only just being released now. (I can't see big corporations ever moving to a non LTS release.)

2

u/[deleted] Sep 19 '18

Didn’t know for that. Thanks.

-63

u/vielga2 Sep 19 '18

lol, retarded, pathetic, useless dinosaur java

I can't help but feel sorry for the poor soulless drones who are forced to use such a horrendous, vomit inducing language.

java devs seem to be "excited" about string literals? are you fucking kidding me? I already had string literals in QBasic when I was 6 for fucking sake.

also, string repeat? trim? really? OMFG please kill me now.

39

u/ISpokeAsAChild Sep 19 '18

Are you alright?

10

u/kozeljko Sep 19 '18

Where did your Java teacher touch you?

0

u/[deleted] Sep 19 '18

[deleted]

14

u/CarDrivesYou Sep 19 '18

vielga2 is to Java as shevegen is to Rust here on /r/programming

-2

u/nutrecht Sep 20 '18

At least /u/shevegen, no matter the dumb way he packages the stuff he says, at least often has something insightful to say.

3

u/StillNoNumb Sep 20 '18

I mean, it's the complete opposite. Shevegen usually says inconclusive, contradictory bullshit, but wraps it in words so that it sounds like he knows what he's talking about. I'm impressed by his ability to do so sometimes

4

u/nutrecht Sep 20 '18

Check out /u/SomeRandomBuddy

Same user. He made the mistake a while ago to post a really basic beginner level question on his troll account (which he ofcourse deleted).

My guess? He got denied a few time for some Java jobs and he's one of the types that handles rejection by stalking the subject for a few years. He's definitely not a sane stable person.

0

u/[deleted] Sep 19 '18

[deleted]

-12

u/vielga2 Sep 19 '18

lol implying retarded useless java is an "impact driver"..

more like a half assed plastic driver with a broken handle that constantly makes your eyes and hands bleed the fuck out every time you try to use it.