[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: behind.jpg (203 KB, 1280x720)
203 KB
203 KB JPG
Why is Java so slow to upgrade and innovate compared to C#? Is it worth it to learn Java when C# just seems tidier? Why is Java years behind and why are they so slow to catch up?
>>
>>106695596
Java is older, Java has more stakeholders and it also has a lot of extremely bad design decisions baked in that can't be fixed.
>>
>>106695596
Ok, but hear me out, make Name public and you won't need either.
>>
File: Eclipse.jpg (118 KB, 1665x611)
118 KB
118 KB JPG
you only seethe because your IDE blows
>>
>>106695609
What would it take to fix it?
>>
They're owned by Oracle, notoriously shit rent seeking fuckface corpo that immediately halts innovation the moment they buy a new thing. The one good thing Microsoft did in the 2010's was unleash the C#/.NET team and let them innovate to their heart's content. They also attempted to open source and de-license a lot of things to get more developers on board with it.
>>
>>106695596
With this image as my only C# experience, it's an improvement that you can specify getters and setters so easily but it's still pretty stupid that they're something you use.
>>
>>106696479

They make more sense once you use them often and find cases where you can make use of the get/set functions beyond blindly returning the underlying object
>>
>>106696425
copy Cshart, but they can't. other JVM languages pay some costs to work around the JVM and just spawn a bunch of boxed objects.
>>
>>106696459
too bad M$ is still pussyfooting it cuz god forbid they lose out on VS subs.
>>
>>106696421
What IDE is that?
>>
>>106695596
>so slow to upgrade and innovate compared to C#
Laughs in project loom you stupid nigger. This thread is filled with moronic javalets who havent written a single line of code
>>
>>106696421
>Eclipse
I'd rather Jeetbrains
>>
>>106695596
Pot calling the Kettle black
>>
>>106695596
I don't use any JVM languages but kotlin/scala/groovy probably has a solution
>>
>>106696509
But that's all the auto-generated getters and setters do is it not? Why not just make the member variable public at that point?
>>
>>106698105
>Laughs in project loom
da fuck are you talking about? that shit was over sold, it just works for niche cases, what developers need right now is structured concurrency and is still in beta and has been for years.
>>
>>106698105
What is project loom?
>>
>>106698781

No, sometimes you want something else to happen when get/set are called, that are uniquely attached to that property. Either modify the value or spin off another method/workflow. As I said once you get deep into it and are writing a lot of code you find out why these fields are useful, it's a convenience thing.
>>
>>106699007
You're not understanding what I'm saying. The C# auto-generated getter and setter functions do nothing except getting and setting right? If you want to do something else you need to write the functions yourself. So why even have them?
>>
>>106699404
>The C# auto-generated getter and setter functions do nothing except getting and setting right?
you can refactor auto properties to have side effects without fucking the ABI compatibility, and if you don't need that... well, your code is just less verbose
>>
>>106695596
>empty complaint
nocoders should be hanged
>>
>>106699404
get and set is for newbies
get and init is for real hackers
>>
>>106695658
If you're going to make your getters/setters public then sure, but no one ever does that in practice
>>
>>106695658
>>106698781
>Why not just make the member variable public at that point?
can't have fields in interfaces
>>
>>106695596
It's just a bad language full of horrible paradigms and awful standard libraries. It's simply easier to move on to another language than to try and fix this mess.
>>
>>106695596
>Why is Java so slow to upgrade and innovate compared to C#?
Because they actually give a fuck about compatibility.
Why is C# so slow to execute?
>>
>>106699404
yes
>>
>>106695596

Java was designed for small apps so people could have tools built for their business quickly, but jeety people are using Java to build large games, pseudo operating systems and large scale projects that should really be written in C/C++



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.