News for hackers. Stuff that matters.
Re:.NET 8 by RajT88 on Tuesday November 14, 2023 @11:42AM (#38265717)
The .Net ecosystem has a lot of great tooling, for sure.

The main issue I have had is if you are trying to get into the .Net Ecosystem without spending money. There are quite good free tools, but you have to figure out what works best for you if you're used to the non-free ones.

I assume instead of Reflector for the decompilation, you used DotPeek?

Re:.NET 8 by bob1029 on Tuesday November 14, 2023 @12:20PM (#38266300)
> The main issue I have had is if you are trying to get into the .Net Ecosystem without spending money.

I suggest not trying to do this.

You can certainly make most of .NET8 work with a pure OSS toolchain, but your overall development experience is going to be destitute compared to that of the official tool chain. To be clear - I think paid alternatives, such as Rider are fantastic too, but even so I've had some trouble at the edges with paid 3rd party (Blazor apps, UWP, etc).

At the end of the day, you have to ask yourself about what your hourly rate is. If you are going to spend a 20 hour premium per week bandaging up a "free" .NET toolchain, whereas the official, $100/m stack costs you 1-2 hours, which one actually costs you more? What are your principles worth in terms of your free time?

Re:.NET 8 by neonsunset on Tuesday November 14, 2023 @12:42PM (#38266655)
Rider is absolutely great, give it a try. I have used and continue to use professionally macOS + VS Code/Omnisharp combo and it has been working nicely with Rider serving as an escape hatch for more complicated debugging scenarios, profiling or when you need to step through (possibly decompiled) 3rd party code.
Re:.NET 8 by SamFold on Tuesday November 14, 2023 @12:24PM (#38266369)
What would you say is the current best in class toolchain for .NET (assuming I'm running on a ARM Mac)?
Re:.NET 8 by gv83 on Tuesday November 14, 2023 @12:47PM (#38266735)
Jetbrains’ Rider by a very long shot

Vscode stuff is ok too if you dislike big and featureful ides, but it’s behind rider. dotnet cli to run commands is sufficient until you have very strange builds.

Keep in mind the language has many ways to do the same thing, so rider helps you doing the “modern” things. The base class library is also very vast. Take your time, C# is great but it has a ton of features.

Re:.NET 8 by starik36 on Tuesday November 14, 2023 @12:30PM (#38266483)
What is the issue with using Visual Studio Community Edition? Or if not on Windows, using VS Code with the plugin. All free.
Re:.NET 8 by wiseowise on Tuesday November 14, 2023 @12:38PM (#38266599)
Wasn’t there some issue with debugger on Non-Windows platforms?
Re:.NET 8 by oaiey on Tuesday November 14, 2023 @02:45PM (#38268556)
The issue that it is free as in beer but not open source as in MIT.
Re:.NET 8 by pjmlp on Tuesday November 14, 2023 @04:35PM (#38270126)
I think you mean open source as in GPL, given that MIT doesn't force to give the source code, hence why it is beloved for commercial products.
Re:.NET 8 by hit8run on Tuesday November 14, 2023 @01:02PM (#38266971)
Visual Studio for Mac is discontinued and will be retired next year:

https://learn.microsoft.com/en-us/visualstudio/mac/what-happ...

Re:.NET 8 by starik36 on Tuesday November 14, 2023 @02:27PM (#38268276)
Right. They rewrote the .NET plugin for VSCode as a replacement. It's reasonable.
Re:.NET 8 by oaiey on Tuesday November 14, 2023 @02:53PM (#38268680)
Well, the C# DevKit has to fix quite some bugs. I love it but it needs more work.
Re:.NET 8 by JAlexoid on Tuesday November 14, 2023 @01:01PM (#38266957)
>At the end of the day, you have to ask yourself about what your hourly rate is.

At the end of the day it's a question of how much ROI are you getting. Your hourly rate is irrelevant, when you're just learning a new tech... because when you're hacking/learning the hourly rate is $0.

Re:.NET 8 by squeaky-clean on Tuesday November 14, 2023 @01:11PM (#38267107)
If you spend 20 hours fixing something that wouldn't occur with the paid toolchain, at what price does it become worth it to skip those 20 hours when they're not directly applicable to what you're trying to accomplish?
Re:.NET 8 by JAlexoid on Tuesday November 14, 2023 @02:04PM (#38267905)
When you literally don't have $20 in your account. Then you can spend 100 hours and it's still worth it.
Re:.NET 8 by bad_user on Wednesday November 15, 2023 @07:05AM (#38275818)
Also, in big corporations, getting approval for spending $20 is as hard as getting approval for $200 or $2000.

Which is why FOSS software took off in big companies, because it's easier for developers to sample things out and then ask for forgiveness instead of asking for permission.

Also, hobbies. It doesn't even matter if you have $20 to spend, or not. Hobbies depending on paid tools are risky.

People underestimate the importance of free tools because they judge from the perspective of their overinflated consultancy rates.

Re:.NET 8 by CamperBob2 on Wednesday November 15, 2023 @12:59PM (#38279964)
Then again, this sort of decisionmaking is probably why you're a software developer with less than $20 in your bank account.
Re:.NET 8 by JAlexoid on Friday November 17, 2023 @12:40PM (#38307018)
I don't know... Possibly because your life circumstances made it that?

But hey! Talented people doing their best to break out of poverty is clearly a novel idea to you.

Re:.NET 8 by jayd16 on Tuesday November 14, 2023 @01:33PM (#38267454)
Just because you're not getting paid doesn't mean your time is worthless (or your hourly rate changes).
Re:.NET 8 by JAlexoid on Tuesday November 14, 2023 @02:12PM (#38268001)
That's where ROI comes in.

Should I have spent my full income for 3 months on an IDE, vs spending an extra 2 hours with the free tools?

It's not a hypothetical, that was the reality of my life in 2004. I had a lot of extra time, couldn't use it to make money and buying "enterprise grade" tooling wouldn't produce any extra value.

The ROI of an professional grade tool would have been - "you get to sleep extra two hours and have no food for 3 months"

Re:.NET 8 by sebazzz on Wednesday November 15, 2023 @11:41AM (#38278723)
> At the end of the day, you have to ask yourself about what your hourly rate is. If you are going to spend a 20 hour premium per week bandaging up a "free" .NET toolchain, whereas the official, $100/m stack costs you 1-2 hours, which one actually costs you more?

Also the official stack is supposedly supported, which means you can contact Microsoft if you have an issue.

In practice, you get some underpaid outsourced employee in the chat, who is just going to follow their script - so it is more effective to go to Visual Studio feedback or Github, depending on the issue.

Re:.NET 8 by just_testing on Wednesday November 15, 2023 @01:41PM (#38280561)
I teach for a living, mostly people of poor backgrounds, and a lot of them in the Third World. I understand your argument (and I buy some tools myself), but I can't tell them to use paid tools because the cost may be too high in the local currency and it adds up fast.
Re:.NET 8 by neonsunset on Wednesday November 15, 2023 @01:49PM (#38280677)
VS Code and Omnisharp are unconditionally free (and open source). DevKit and VS Community Edition are free for education scenarios. The arguments made in previous comments don’t correspond to reality.
Re:.NET 8 by just_testing on Thursday November 16, 2023 @02:31PM (#38294213)
Thank you!! Good to know.
Re:.NET 8 by guhidalg on Tuesday November 14, 2023 @11:49AM (#38265819)
I've used ILSpy instead of JetBrain's tools for this.

If you're a real OG, you used `ildasm`.

Re:.NET 8 by xeromal on Tuesday November 14, 2023 @12:45PM (#38266712)
I learned this from Jeffry Ritcher (https://www.amazon.com/CLR-via-C-Developer-Reference-ebook/d...)

A lot of what I know about C# is from his books. I wish every language had someone of his caliber write a book about it.

I think the version of the book I read was "CLR via c#" about 10 years ago

Re:.NET 8 by fomine3 on Wednesday November 15, 2023 @01:12AM (#38273823)
dnSpy was the best
Re:.NET 8 by starik36 on Tuesday November 14, 2023 @12:28PM (#38266441)
I use JustDecompile. It's free, last I checked, and it works great.
Re:.NET 8 by xeromal on Tuesday November 14, 2023 @12:44PM (#38266689)
I used dotPeek. Made quick work of it!