[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 do you not love me anymore?

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: 29
Thread images: 2

File: java.jpg (8KB, 256x256px) Image search: [Google]
java.jpg
8KB, 256x256px
Why do you not love me anymore?
>>
>>59979761
I don't hate java, but I don't particularly enjoy it either.
>>
Because people here don't work
>>
All entry-level jobs are in webdev now.
>>
>>59979761
because java is too complicated, using dynamically typed languages and no objects is so much easier
>>
I still love you
>>
>>59979761
I never loved you
>>
>>59979971
>because java is too complicated
Nigga you crazy.
>>
>>59979761
It was a one time fling. I found a new girl.


I hope we can still be friends.
>>
https://pastebin.com/87bdsd1r

this is why
>>
Because unlike your language, the VM implementations you're running on are inherently unsafe.
>>
>>59980138
Why didn't you just push chars to stack and then pop onto a new string?

Don't blame Java for your own retardation.
>>
>>59980210
Not my solution. That's the "proper" solution to the problem on leetcode
>>
S-L-O-W
>>
>>59979761
java my love i will never leave you, i just use others sometimes not by my choice if i could just use you i would but others don't know who you are. or what you can do.
>>
>>59979971

>using dynamically typed languages and no objects is so much easier
>>
>>59979761
We don't hate you. We just hate Oracle.
>>
>>59980239
Then explain why you're using a retarded solution that's not even yours to show that java is shit
>>
>>59979761
If I wanted a heavy language with lots of conveniences, I'd use C#.
>>
>>59985526

>with lots of conveniences
Are you talking about the same language?
>>
>>59979761
I still love you in the sense that you give me money each month.

However, I do hate Larry Ellison, please stop seeing him behind me back.
>>
>>59979761
I love you, but clojure is so pleasure... sorry.
>>
>>59985553
C# with .NET holds your hand through everything. It's does what Java fucked up trying to do.
>>
>>59979761
I never loved you, awful shit.
>>
>>59985598

Oh no, I agree. C# is full of convenience. Java has none of it, Java is defined by its boilerplate.
>>
>>59980138
jesus christ, have you ever looked at the String API? this isn't Java's fuck up - it's yours.

public static String reverseWords2(String sentence) {
StringBuilder sb = new StringBuilder(sentence.length() + 1);
String[] words = sentence.split(" ");
for (int i = words.length - 1; i >= 0; i--) {
sb.append(words[i]).append(' ');
}
sb.setLength(sb.length() - 1); // Strip trailing space
return sb.toString();
}


Yes, still not a succinct as the Python version, but performance is better I guarantee. and plus if all you're going to be doing is reversing words, then you'd be using Python anyway. As part of a larger application the above solution isn't bad.
>>
>>59980239
https://leetcode.com/problems/reverse-words-in-a-string/#/solutions
I checked anon. I'm not seeing your solution anywhere. There is no editorial solution, and all the top Java solutions are highly optimized < 5 line solutions. Here is one -
public String reverseWords(String s) {
String[] words = s.trim().split(" +");
Collections.reverse(Arrays.asList(words));
return String.join(" ", words);
}


pretty fucking sad you have to make shit up and build a strawman because you hate Java this much.
>>
>>59985489
>>59985975
>>59980239

B T F O
>>
>>59979761
Forced use of feature like exceptions
C++'s operator overloading is comfy
Thread posts: 29
Thread images: 2


[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.