News for hackers. Stuff that matters.
Re:.NET Myths Dispelled by cglan on Saturday March 12, 2022 @05:11PM (#30655431)
Gonna be honest, .NET seems to have a weird cult following on here and Reddit but I find the naming to be absolutely atrocious and I hate developing with it. Everything is .Net including .net classic but not everything is compatible making documentation a huge pain to find. It’s also ridiculously over complicated and enterprisy with a lot of heavy weight boilerplate that reminds me of Java. It also copies a lot of the mistakes of the spring framework where you’ll have side effects or code paths that occur that aren’t really able to be found with a debugger. The language itself is fine but the framework around it is just repeating all the same mistakes of everything else

One of the reasons I love go is that everything seems to be explicit. Notice something occurring? Well chances are you can set a breakpoint and trace what’s happening

Re:.NET Myths Dispelled by nick_ on Saturday March 12, 2022 @05:32PM (#30655611)
A list of the top ten weird cult followings on HN and Reddit would not include .NET
Re:.NET Myths Dispelled by TillE on Saturday March 12, 2022 @06:07PM (#30655901)
If anything I see way less discussion of C# than it merits, given its key role in the world's most popular game engine.
Re:.NET Myths Dispelled by procinct on Saturday March 12, 2022 @05:20PM (#30655512)
I definitely don’t find modern .NET (ie .NET Core) to be overly enterprisy or boilerplated at all. Certainly nothing like .NET framework or Java.
Re:.NET Myths Dispelled by bluefirebrand on Saturday March 12, 2022 @05:28PM (#30655580)
Gotta admit GP has a point about naming though.

Search for info on .NET and you will find stuff on ASP.NET, .NET Framework, .NET Core at the very least. Probably more.

You have to really know what you are looking for and that's hard sometimes because everything is just .NET

Re:.NET Myths Dispelled by muwtyhg on Saturday March 12, 2022 @06:27PM (#30656080)
This was made even worse when .NET Core was renamed to just '.NET', making it difficult to get good, specific results when googling.
Re:.NET Myths Dispelled by pelorat on Sunday March 13, 2022 @07:36AM (#30660346)
Simply search for ".NET 5" and ".NET 6" including quotes.
Re:.NET Myths Dispelled by nightski on Saturday March 12, 2022 @06:35PM (#30656143)
I very rarely search "dotnet". Usually searches are based more around the specific technology/library/namespace in the ecosystem I have questions on. This feels to me like a non-issue.
Re:.NET Myths Dispelled by dustymcp on Sunday March 13, 2022 @03:29AM (#30658850)
This .net core good, asp.net MVC etc bad.
Re:.NET Myths Dispelled by pjmlp on Saturday March 12, 2022 @06:00PM (#30655845)
You haven't seen nice MVC middleware pipeline configurations with a decent number of services (DI).

Sometimes I feel like being on JEE 1.4 days.

Gotta love those enterprise architects.

Re:.NET Myths Dispelled by jayd16 on Saturday March 12, 2022 @06:08PM (#30655907)
What's so enterprisey about the modern Host/DI? Honestly seems really clean and thin to me.
Re:.NET Myths Dispelled by cogman10 on Saturday March 12, 2022 @06:31PM (#30656109)
Nothing, IMO. DI, when used properly, significantly cleans up code bases. It's code bases without DI that often become both untestable and unwieldy.
Re:.NET Myths Dispelled by pjmlp on Sunday March 13, 2022 @03:33AM (#30658879)
The keyword here is used properly.

Now go on to work on codebases with rules that every class must have an interface, there are no news, everything must come over service locators, 3rd APIs aren't accessed directly, rather over wrapper classes,....

Ah and no PR ever gets accepted if the rules aren't followed.

Re:.NET Myths Dispelled by erik_seaberg on Sunday March 13, 2022 @06:04AM (#30659800)
Any language that permits any style choices at all is going to be vulnerable to self-inflicted rules requiring bad style.
Re:.NET Myths Dispelled by pjmlp on Sunday March 13, 2022 @06:08AM (#30659815)
Just like any language used in enterprise shops is not free from enterprise space architects, and .NET is no exception given its customer base from Microsoft products.
Re:.NET Myths Dispelled by pjmlp on Sunday March 13, 2022 @03:34AM (#30658884)
Codebases with rules that every class must have an interface, there are no new in use other than basic stuff like arrays, everything must come over service locators (configurable externally), 3rd APIs aren't accessed directly, rather over wrapper classes,....
Re:.NET Myths Dispelled by manigandham on Sunday March 13, 2022 @05:15PM (#30665786)
Sounds like a problem with your devs/architects/process than the language stack. It would create a mess out of Java or Go or Ruby too.
Re:.NET Myths Dispelled by cameronh90 on Saturday March 12, 2022 @06:40PM (#30656188)
I think pretty much every .NET developer would agree with you that the naming and versioning has been an absolute clusterfuck.

It is starting to settle down into a sensible place since .NET 5 though.

If only they would drop ".NET" and "C#" and officially replace them with dotnet and csharp in all material.

Re:.NET Myths Dispelled by mjevans on Saturday March 12, 2022 @07:22PM (#30656549)
Some unique searchable term would be great. As other replies point out, .net, c#, dotnet, and csharp are all collisions with old documentation.
Re:.NET Myths Dispelled by DeathArrow on Sunday March 13, 2022 @02:44PM (#30664439)
You can use date search in Google, you know?
Re:.NET Myths Dispelled by akdor1154 on Saturday March 12, 2022 @06:13PM (#30655951)
'The problem with java is not java, it is java developers.' .NET certainly enables the same ridiculous layers of enterprisey junk, and even promotes them in older default frameworks.

But like any language, it just takes discipline to stop your team building this bloat.

A CLI app in .NET is as clean as you build it, and sensible frameworks are now available for web stuff too.

Re:.NET Myths Dispelled by branko_d on Sunday March 13, 2022 @02:26PM (#30664254)
> Everything is .Net including .net classic but not everything is compatible making documentation a huge pain to find.

I wish they would have just called the new version ".core" and be done with it.

For a long time, it was difficult to figure out if a particular piece of information you found by googling ".net" was for the old or the new. Things are improving though, as the old version gradually fades, so you can reasonably assume the new version unless stated otherwise...

Re:.NET Myths Dispelled by wvenable on Saturday March 12, 2022 @05:28PM (#30655574)
I can't agree with this assessment. I'm curious as to what environment you are comparing it to?
Re:.NET Myths Dispelled by achtung82 on Saturday March 12, 2022 @05:54PM (#30655789)
The thing i see a lot of people bringing up as the large problem with .Net is naming and branding. I could agree with those sentiments but dont really how those are serious criticisms. Thats like saying i hate Java cause i prefer tea.

Anyway if you hate developing in .Net dont do it but I personally find it a lot more enjoyable than other languages ive worked with.

Re:.NET Myths Dispelled by tester756 on Saturday March 12, 2022 @05:15PM (#30655467)
>It’s also ridiculously over complicated and enterprisy

What does it mean? dependency injection?

Re:.NET Myths Dispelled by radicalbyte on Saturday March 12, 2022 @05:42PM (#30655686)
There are some older libraries which are horrible enterprise-ware: WCF (Windows Communication Foundation, think SOAP) and older Entity Frameworks in particular.

From the tone of the OP I would assume that things such as encouraging good engineering practises such as good interface design and using appropriately sized units of code are also "problems" with .Net. You hear that a lot from inexperienced developers.

The thing is - the modern framework is far nicer and has largely avoided the problem. Even to the point that I prefer occasionally having to deal with some of the ugly enterprise libraries to the constant hunting down of broken dependencies, vague runtime bugs or massive framework churn you see in the Python/Javascript world. Or having an overly verbose and ugly language like Go or Java.

Re:.NET Myths Dispelled by hackerfromthefu on Monday March 14, 2022 @09:09AM (#30671973)
Awww gee .. enterprisey used that way just seem to mean 'has features i don't need right now'.

WCF had problems with configuration complexity, but that was because it was ambitious! It had so many capabilities and provided a uniform configuration interface for all of them, so it was complex.

.NET was built as a platform to allow ALL sorts of programming, not just beginners level - therefore it comes with a degree of complexity.

I've come to appreciate that mostly people calling it 'too complex' or 'enterprisey' just haven't understood why someone else needs the features they don't understand yet.