Live data from Hacker News

.NET for Beginners (2020)

dusted.codes

151–160 of 192 posts

Re: .NET for Beginners (2020)

#151

Earlier quoted context omitted.

> Now there are four options WPF, WinForms, UWP and Xamarin. Ok...Why are there four options? What are the differences? Are one or more of them about to be deprecated? You're most likely best of picking WinForms. It's old school, but it seems like it's going to be the one Microsoft will have the hardest time killing. WPF, UWP and Xamarin fine frameworks, but for the 0.9X developer who just want a window, with a few i…

VS + WinForms is like the Playschool Windows GUI development kit. That sounds like talking it down, but I'm not actually. Good for things like the sales guy wants something that pulls data out of a company database and sticks it in a excel file. And wants it tomorrow.

As a casual programmer, I've used WinForms successfully to write both trivial and somewhat complex GUI tools. I've never been able to use WPF to write anything useful, I just couldn't scrape together the patience required to adapt to it.

Re: .NET for Beginners (2020)

#152
post #71

Earlier quoted context omitted.

I'm currently trying to write a windows app and coming from web development (Python/Django and React) it is bewildering. Part of the problem is with web development, complicated as it is, the tutorials at least get you to a complete, working example. The windows tutorials seem to be very piecemeal where you start with a mostly complete app and fill in a couple things, but never get the whole picture. And like in your…

> Are one or more of them about to be deprecated? All of them are. Not officially , of course, but practically speaking all of them are dead-ends. MAUI is the "new hotness", which means that it'll only become obvious that it is also a dead end in about a year and a half. I wish I was joking.

> MAUI

What?! This wasn’t even on the list!

Re: .NET for Beginners (2020)

#153
post #21

I'd like to see some data around the central claim. Is C# really that hard for beginners? I watch a lot of beginners on twitch (for several years now) start with C# and almost zero idea about programming. They all seem do pretty well, whether they are learning unity, winforms, web dev. They don't even stop and wonder any of the issues discussed in the article, they simply make the project type they want in visual stu…

C# itself isn't hard, but the ecosystem is. I have been writing code for years and wanted to take a look at dotnet not that long ago. There are no tutorials on how to make something that is not also a tutorial on visual studio. I want to learn how to make a webapp or whatever in C#.NET, learn the paradigms, classes, and functions that I need to do that. I'll go look into Visual Studio after I understand the basics to make things easier, but I shouldn't need that as the price of admission. The author addresses this with a comment about goland. But the point is that any other language, the beginner material is about "here's a main.go text file that starts a web server..." and not "click some buttons in one specific IDE and magic happens". I can use emacs, vi, or VScode to write C, go, rust, python, javascript, etc... just about everything. But not C#.

Re: .NET for Beginners (2020)

#154

I recently tried to take a look at dotnet core since I heard it can compile and run on linux. Every tutorial I looked at for building a webapp started with "download visual studio and click these buttons..." which would result in a "mostly complete" program that it would go on to fill in some variables to. Literally every other language tutorial starts with a simple empty file and fills in functions with descriptions…

Check out https://dotnet.microsoft.com/learn/aspnet/hello-world-tutori... which is a hello world without VS.

Re: .NET for Beginners (2020)

#155

Earlier quoted context omitted.

> Now there are four options WPF, WinForms, UWP and Xamarin. Ok...Why are there four options? What are the differences? Are one or more of them about to be deprecated? You're most likely best of picking WinForms. It's old school, but it seems like it's going to be the one Microsoft will have the hardest time killing. WPF, UWP and Xamarin fine frameworks, but for the 0.9X developer who just want a window, with a few i…

> 0.9X developer That's pretty fantastic. Stealing this!

Meh, everybody is a 0.9X developer in many areas outside of their specialty. I'm a data engineer who specializes in security. I only need to generate a GUI or CRUD webapp once in a blue moon. So a stack that makes sane choices for me and holds my hand a bit is greatly appreciated.

Re: .NET for Beginners (2020)

#156

Earlier quoted context omitted.

Have you tried the dotnet site: https://dotnet.microsoft.com/ It explains everything, including how to get started for every scenario, and answers to every question in all of your comments here.

If the argument being made is ".NET isn't a language", and the response is "okay, then how do I install C#?" Linking the dotnet website probably doesn't advance the idea that C# and .NET aren't tied together.

That's a fact, not an argument. And who said that C# and .NET aren't tied together? You install the runtime/SDK to get started with the overall environment, similar to many other programming stacks.

Re: .NET for Beginners (2020)

#157
post #132

I can not agree more with this post. After being a C# developer for 5 years, I can not think of a worst language to learn that C#. The ecosystem is dead just check the latest startups from YC, how many are using C#? How many startups nowadays are using C#? Currently there are better options than C# or .NET. You want simplicity, you have Go. You can create an API server so simple and easy to understand. You want a ful…

How is Go easy? It is a much less expressive language than Java or C# and is more verbose. It’s C with GC and good concurrency. I never understood the hype around it.

> I never understood the hype around it. > It’s C with GC and good concurrency. Surely you've just answered your own question there

Re: .NET for Beginners (2020)

#158
post #71

Earlier quoted context omitted.

I'm currently trying to write a windows app and coming from web development (Python/Django and React) it is bewildering. Part of the problem is with web development, complicated as it is, the tutorials at least get you to a complete, working example. The windows tutorials seem to be very piecemeal where you start with a mostly complete app and fill in a couple things, but never get the whole picture. And like in your…

> Are one or more of them about to be deprecated? All of them are. Not officially , of course, but practically speaking all of them are dead-ends. MAUI is the "new hotness", which means that it'll only become obvious that it is also a dead end in about a year and a half. I wish I was joking.

Here we go again...

This is why people just stick with winforms.

Re: .NET for Beginners (2020)

#159
post #157
post #132

Earlier quoted context omitted.

How is Go easy? It is a much less expressive language than Java or C# and is more verbose. It’s C with GC and good concurrency. I never understood the hype around it.

> I never understood the hype around it. > It’s C with GC and good concurrency. Surely you've just answered your own question there

Who would want to write code in C?

Re: .NET for Beginners (2020)

#160
post #104
post #66

Earlier quoted context omitted.

> I wanted to try to a server backend with it, but I was lost as to which framework to use (ASP.net / .NET Core / .Net 5) so I ended up choosing neither. The new C# tutorials have solved a lot of this issue just by completely skipping over the legacy parts of .NET (.NET Framework & ASP.NET) and using the CLI to create a new project. You install .NET 5 (for context, it's just a newer version of .NET Core with the nami…

I appreciate the reply, and I will try that. However this sentence made me inadvertently laugh, because it captures every bit of confusion I had. > You install .NET 5 (for context, it's just a newer version of .NET Core with the naming realigned), and then write `dotnet new webapi` which will create a new ASP.NET Core API project.

> However this sentence made me inadvertently laugh, because it captures every bit of confusion I had

Haha, for further context, .NET 5 is the SDK + runtime. ASP.NET Core is the default Web framework that includes a ton of out of the box functionality.

I'd highly recommend taking a read of https://docs.microsoft.com/en-us/aspnet/core/introduction-to..., which links to the relevant tutorials for your scenario.

Post reply on HN