News for hackers. Stuff that matters.
Re:What Makes .NET Core So Special? by MarvelousWololo on Friday November 09, 2018 @06:54AM (#18413815)
I'm complete new to C# and Java but I'm looking into them to choose a new language to learn. I'm mostly worried about memory consumption since I often use a cheap $5 VPS. Would you happen to know which one would be a better fit for my use case? Thank you.
Re:What Makes .NET Core So Special? by kankroc on Friday November 09, 2018 @07:21AM (#18413893)
If your end game is working professionally just check what is more in demand in your geographic location.

Personal opinion

C# is a lot better than Java. You have less boilerplate code (getter and setter in 2018, really?) and lambdas are great.

But really both are similar so you can pretty much just start with one and still find your way in the other.

Re:What Makes .NET Core So Special? by yawz on Friday November 09, 2018 @10:03AM (#18414839)
Java is the most popular language of the JVM ecosystem, but not the only one. If I were to restart from scratch, I would seriously look into Kotlin, which is how Java should have been.
Re:What Makes .NET Core So Special? by lockje on Friday November 09, 2018 @09:02AM (#18414357)
Honestly, people still using the getter and setter argument in 2018 as a reason to pick a language should not be taken seriously.

Indeed Java has more boilerplate, but honestly I've never been bothered by it (as you can generate most within your IDE) and because its explicitly written down it can make code more readable.

And Java also has lambda's.

Re:What Makes .NET Core So Special? by jcelerier on Friday November 09, 2018 @09:33AM (#18414596)
> because its explicitly written down it can make code more readable.

more text to read does not means "more readable", it means more effort to do

Re:What Makes .NET Core So Special? by walljm on Friday November 09, 2018 @01:31PM (#18416660)
unless that text validates hidden assumptions, or conveys important information to the user.

not always the case, but you can't argue that "less text is more readable" any more than you can argue "more text is more readable". what you want is, "just the right amount of text" which will depend on your tastes.

Re:What Makes .NET Core So Special? by tigershark on Friday November 09, 2018 @09:42AM (#18414666)
Java is much heavier to read because of all the boilerplate. And it may have lambda but for example the stream implementation sucks compared to the elegance of LINQ. They had 8 years to make it right and I’m still amazed how did they manage to implement it so badly...
Re:What Makes .NET Core So Special? by wernercd on Friday November 09, 2018 @09:21AM (#18414508)
Yeah... the bigger reason to move away from Java isn't Getters and Setters...

The bigger reason is one word: Oracle

Whether you go towards C# or other companies... Oracle is a horrible company.

Re:What Makes .NET Core So Special? by Accipitriform on Friday November 09, 2018 @11:20AM (#18415525)
Oracle is only one player in the Java ecosystem. OpenJDK owns just about everything now, and most organizations are going to get support somewhere besides Oracle. There's been some good recent innovation with Java, and I think it'll continue due to the new accelerated release schedule.

That reminds me, I want to experiment some with AOT compilation and also the new GC plugins.

Re:What Makes .NET Core So Special? by osd on Friday November 09, 2018 @11:16AM (#18415501)
lambda's are much more limited in flexibility when compared with linq. Because of the way java lambda's work, I imagine there are some scenarios where they are more performant, but it probably comes down to the specific problem/usage.
Re:What Makes .NET Core So Special? by meddlepal on Friday November 09, 2018 @07:38AM (#18413950)
If you want to be on the JVM I highly recommend giving Kotlin a look before Java. Great language and excellent tooling.
Re:What Makes .NET Core So Special? by bunderbunder on Friday November 09, 2018 @08:57AM (#18414324)
I would go so far as to argue that Kotlin is the JVM's real equivalent to C#. The syntax is different, but language semantics are much more similar.
Re:What Makes .NET Core So Special? by araxhiel on Friday November 09, 2018 @10:11AM (#18414914)
I would like to learn Kotlin, but I've no prior knowledge about Java... That's a real impediment?

If it isn't, do you know (by chance) about some resource(s) for a total newbie/newcomer to the language?

thanks in advance.

Re:What Makes .NET Core So Special? by nobleach on Friday November 09, 2018 @12:18PM (#18416029)
I'd say a rudimentary knowledge of the Java ecosystem is required, Maven or Gradle are the preferred deps management and build tools. It's a bit of a bummer as quite a bit of 3rd party docs assume you have already written things in Java, and gloss over things like, importing a library. For someone who doesn't have a magic importer (or worse yet, someone who is not using an IDE), you'll literally have to dig around in API docs just to figure out what comes from where (I'm looking RIGHT AT YOU Vertx!!)

Overall, the language feels pretty nice though.

Re:What Makes .NET Core So Special? by meddlepal on Saturday November 10, 2018 @10:03AM (#18421558)
I don't think lack of other JVM knowledge will be a big impediment, but it might be a small annoyance bootstrapping a project (e.g. how to do dep mgmt) and debugging (how to read a stack trace).
Re:What Makes .NET Core So Special? by osd on Friday November 09, 2018 @11:18AM (#18415511)
jetbrains is doing a very good job of creating good error messages, but just like any other jvm language, you can run into huge, messy, jvm stacktraces. In my experience, Java/jvm proficiency is useful
Re:What Makes .NET Core So Special? by nycdotnet on Friday November 09, 2018 @05:02PM (#18418426)
We're using .NET Core 2.1 in prod on Linux Docker containers. One of our production services that gets 2-3 requests per second on average (not a ton of traffic, but a legit prod workload) uses between 78 and 90 MB of RAM.
Re:What Makes .NET Core So Special? by nicoburns on Friday November 09, 2018 @07:33AM (#18413939)
If you're worried about memory usage, then neither is great (C# is a little better than Java), you may want to look into Go or Rust.
Re:What Makes .NET Core So Special? by cies on Friday November 09, 2018 @09:00AM (#18414345)
In this list we also have D and Swift. Good on yr mem, general purpose-y (Go is not a GP lang), quite popular.
Re:What Makes .NET Core So Special? by kodablah on Friday November 09, 2018 @09:44AM (#18414682)
> quite popular

Disagree, especially on the same level as the others with D, and especially concerning cross-platform ecosystem with Swift.