r/ProgrammerHumor • • May 25 '21

Not_a_Meme.jif

/img/o4w97sa7iidz.jpg

[removed] — view removed post

13k Upvotes

416 comments sorted by

View all comments

Show parent comment

43

u/Rick-T May 25 '21

Isn't C# just Microsoft Java? What's the big deal?

96

u/wrexinite May 25 '21

C# is infinitely more aesthetically pleasing

45

u/[deleted] May 25 '21

C# would be perfect if not for that damn PascalCasing everything

19

u/TheRedmanCometh May 25 '21 edited May 25 '21

And the _PrivateFields

7

u/[deleted] May 25 '21

Oh god

29

u/11b403a7 May 25 '21

I prefer pascal case and find it more readable and have pushed our team to use it as our style standard

29

u/PotentBeverage May 25 '21 edited May 25 '21

The problem arises when both methods and objects are PascalCase, versus methods being camelCase and objects being PascalCase

(plus as an aside I prefer k&r 1tbs / java style braces over allman / C style)

→ More replies (4)
→ More replies (6)
→ More replies (5)

49

u/11b403a7 May 25 '21

ASP is, imo, pretty superior to Spring. For one thing. The level of xml hell is just absolutely unbelievable. That and the spring framework use of naming conventions as a style guide is just mind blowing

We're using Java 8, which is 8 stable releases behind. We don't have "var", streams in this version is dog poo, annotations is not the same in either version and lambdas aren't the same either. C# seems like a far superior language to this Java 8.

19

u/TheRedmanCometh May 25 '21

ASP is, imo, pretty superior to Spring. For one thing. The level of xml hell is just absolutely unbelievable.

Bro if you're using XML with Spring you're like a decade out of date....

Even legacy apps are usually migrated by now.

That and the spring framework use of naming conventions as a style guide is just mind blowing

....what? Elaborate?

34

u/MagnetScientist May 25 '21

Sounds like the problem is the version of Java you're forced to use, rather than Java per se. Java has improved quite a bit since Java 8. I must admit I've since moved to other languages for unrelated reasons, though.

16

u/11b403a7 May 25 '21

Oh I'm not gonna deny that, but because I have no incentive to learn Java 16 (as they won't let us use it anyway), I'm not going to install it on my personal machine.

And don't get me started on React/Redux vs Vue/Vuex

6

u/shittwins May 25 '21

Go on.. I’m interested in your thoughts of react vs vue?

10

u/11b403a7 May 25 '21

It's not so much react vs Vue that's my real bitch but rather Vuex vs Redux. I think reducers are a mess and overcomplicate a very simple concept

11

u/[deleted] May 25 '21 edited May 30 '21

State management is way easier now.

Redux has always been a big hammer, the only problem was that for many years it's the only hammer we had - big or small nail.

There are libraries such as Zustand now that are infinitely easier. Not to mention things like Apollo, which is a GraphQL client that caches calls and negates the need for a lot of state in the first place.

In the last ~3 years of being a React dev, I've never needed redux, let alone the messy and complicated implementations Devs needed before a lot of this stuff ^ came out.

5

u/11b403a7 May 25 '21

Redux is our "approved" tech for react state management. However, I'll look into uthe one you linked

→ More replies (2)

13

u/erbrecht May 25 '21

You need to look at spring boot. I've been using it for several years and I like it more and more each day. Very flexible, very customizable. I can't really compare it to ASP because I've only used dotnet core for for a few side projects, but it should definitely be an improvement over plain spring.

→ More replies (1)

7

u/omegaonion May 25 '21

Latest spring boot and java features will definitely make you feel a lot better. A lot less xml hell, a lot more language features, also kotlin is great to work with and really easy to fit in to the project.

3

u/11b403a7 May 25 '21

I wish they'd let us use kotlin. But nope.

7

u/Each57 May 25 '21

To be honest, I don’t like using “var”. It makes code reading harder.

7

u/11b403a7 May 25 '21

I like var. How are you naming your variables?

4

u/_fishysushi May 25 '21

I think he means its harder to read because of the type inference, not names. var is fine when you can clearly see the type (constructors for example), but its hard to read the code when you use var with method calls.

→ More replies (2)
→ More replies (7)

12

u/MKite May 25 '21

Another benefit of C# is that its used for game engine development in Unity which can be built to various scripting backends - including IL2CPP

https://docs.unity3d.com/Manual/IL2CPP-HowItWorks.html

https://docs.unity3d.com/Manual/overview-of-dot-net-in-unity.html

→ More replies (3)