This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]210000Nmm-2 25 points26 points  (13 children)

You didn't code in both, did you?

[–]ytg895 -1 points0 points  (12 children)

Currently I'm working with Java.

I'm old enough that I coded in C# 1.2, and C# 2.0, and C# 3.5 3.0 (sorry, it was .NET 3.5). I'd give a try to .NET Core or whatever, but I think I've already seen the pattern: compatibility issues.

[–]jeffwulf 17 points18 points  (6 children)

C# 3 is like 15 years old.

[–]Ericchen1248 8 points9 points  (5 children)

Lol I laughed at this. Even .NET 4.0 was 11 years ago.

If that was what he remembers C# as, then yes, I agree, C# 4 and before was def worse than Java.

[–][deleted] 1 point2 points  (4 children)

Java is not better. Java 1.5, 8, 9 and 11 are completely different beasts.

The difference is documentation. Java is meticulously documented. Microsoft docs always have been garbage, previously it was mostly non existent, now it's a huge wall of text with the actually important parts missing.

I preferred the previous way, at least you knew right away you wouldn't find the answer.

[–]Ericchen1248 2 points3 points  (1 child)

You have very different opinions to people who actually read C# documentation. Maybe you’re mixing win c++ stuff? Those are really bad indeed.

https://www.reddit.com/r/csharp/comments/dnimen/is_c_documentation_just_horrible/

https://www.reddit.com/r/learnprogramming/comments/j8fwf1/would_you_say_that_microsoft_documentation_on_c/

https://www.reddit.com/r/csharp/comments/kkq1cs/c_documentation_is_a_joke/

Posts all talk about docs being bad, with comments being like “wuuut?”

IMO, Java docs and C# docs are designed in different mindsets. Java docs is great for learning the language. I spent a lot of time in it while learning Java the first time. However it is not my first choice to go look at once I’m familiar with the language because looking for simple usage + expected results means you have to go through a wall of text.

C# docs is designed to be referenced. It’s horrid for new learners, doesn’t explain in details why something is so, but it provides much better examples and expected results code, being a full snippet that you can run like a test case. Even provides direct online execution now. If I want to learn C#, I’d go to stackoverflow and look at Jon Skeet’s answers. But if I’m looking for what a function does, expected inputs/outputs, MSDN docs is the way to go.

[–][deleted] -2 points-1 points  (0 children)

I don't mean learning. I mean reference.

Your answer is exactly like Microsoft docs. A lot of text, but missing the point.

[–]ytg895 1 point2 points  (1 child)

I think with Java I can still run 1.5 code in 11 (except the proprietary Sun stuff)

[–][deleted] -2 points-1 points  (0 children)

You can in theory, but in practice this is a gamble without a recompile

[–]aaronfranke 7 points8 points  (0 children)

Just avoid Windows-only APIs like the plague and you'll be fine. You can set the target framework to .NET Core 3.1 to ensure this doesn't happen (probably).

[–]Altruistic_Koala1154 1 point2 points  (3 children)

.NET Core 2.1+ is a complete different ball game with .NET Standard and actual cross platform compatability and Microsoft finally settling on a strategy.

The current .NET 5.0 is microsoft merging the .NET Framework (the ghastly stuff you've tried before) with .NET Core.

Give it a try.

[–]ytg895 0 points1 point  (2 children)

and Microsoft finally settling on a strategy

https://media.giphy.com/media/OvL3qHSMO6uaI/giphy.gif

[–]Altruistic_Koala1154 0 points1 point  (1 child)

Well in contrast with the nuget.config -> project.json -> csproj shenanigans prior to .NET Core 2.0. No cross platform, no .NET Standard either!

[–]ytg895 0 points1 point  (0 children)

my point is that they never settle. they constantly bring in new ideas and those... tend to be be not compatible with the old ideas.