Live data from Hacker News

.NET 10

devblogs.microsoft.com

591–600 of 605 posts

Re: .NET 10

#591

Something great about this release as well is the release of "file-based apps" https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals... Basically, you can now write scripts in C# without the ceremony of a solution or project file — writing some code in a cs file and running `dotnet run myFile.cs`will execute the file directly. You can also shebang to make it directly executable! Hoping this inspires more peopl…

That's how I learned C in the 80s. Just compile the C file into an EXE. It's a good way to get started. That said, I'm certain you've always been able to simple compile a .cs to an .exe? When I ran guerilla C# programming classes in jail, I couldn't get anything from the outside, so I was stuck with the .Net v2 csc.exe which is squirreled away in a subfolder of Windows on a default install of Visa. What .Net 10 adds…

You've needed to have a project file in the past to compile .cs files, and this gets rid of that need. There are things that are part of more esoteric corners of Roslyn like .csx files that have allowed similar behavior in the past, but this fronts .cs directly as a scripting solution.

Scraping main() has been a thing for a while in dotnet — so called "Top-level programs" have be in since C# 9/.NET 5, aka about 5 years ago.

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...

Re: .NET 10

#592

Earlier quoted context omitted.

Why? How does it affect them if you decide to use your allowance to donate?

Not affect them personally but more around what value is the business getting. We agreed to disagree :(

The value the business gets is continued development of free resources that they depend on. Not very hard :)

Re: .NET 10

#593

Earlier quoted context omitted.

I use .Net a lot as in Europe it's everywhere. I think it occupies the same niche in Europe as Java does in America. Startups, enterprise, you name it. Lots of jobs in London with it for Finance. And in 20 years I've personally never needed a paid library. Maybe one company had bought Telerik back in the day? I've now built up multiple startups, some with millions of users. The only thing I ever plugin that's not a M…

C# is pretty popular in the US as well in certain spaces... especially Govt or Banking and adjacent environments. Mostly line of business applications. I'd say Java is slightly more popular, but I never really liked Java's ecosystem ergonomics, though they're better today it's just not for me. Similarly, I'm not a fan of "Enterprise" development regardless... I find a lot of .Net shops, like Jave, just create a lot o…

The problem with enterprise apps is that they're usually wide but shallow. Which means a ton of classes that don't do a lot and managing class complexity is actually the biggest challenge.

So it's just a very different type of code and you can point at the language, but the reality is that it's the domain.

Re: .NET 10

#594
post #446
post #415

Earlier quoted context omitted.

Copilpt will migrate it to .net 10 — there is upgrade agent

No, it won't. WebForms are .NET Framework only and are basically the key reason why any app stay on .NET Framework. A ton of internal apps used by few user with is built upon WebForms. It's just not worth it.

Well, besides webforms there is a lot of other stuff.

Rest web api will be migrated.

Razor — also.

Re: .NET 10

#595

Earlier quoted context omitted.

That's how I learned C in the 80s. Just compile the C file into an EXE. It's a good way to get started. That said, I'm certain you've always been able to simple compile a .cs to an .exe? When I ran guerilla C# programming classes in jail, I couldn't get anything from the outside, so I was stuck with the .Net v2 csc.exe which is squirreled away in a subfolder of Windows on a default install of Visa. What .Net 10 adds…

You've needed to have a project file in the past to compile .cs files, and this gets rid of that need. There are things that are part of more esoteric corners of Roslyn like .csx files that have allowed similar behavior in the past, but this fronts .cs directly as a scripting solution. Scraping main() has been a thing for a while in dotnet — so called "Top-level programs" have be in since C# 9/.NET 5, aka about 5 yea…

Right, I think .Net 7 brought the top-level statements to Program.cs.

The oldest version of .Net I could find on Windows 11 was .Net 4, but it still compiles just great without a project file since it has since v1:

https://www.youtube.com/watch?v=KmIwGxcMOLg

Re: .NET 10

#596
post #589

Earlier quoted context omitted.

Ah, well, obviously the point of the question was to be odd for oddness's sake, as some form of bizarre, self-inflatory social ploy! I couldn't possibly have intended my question as a straightforward request for information about something, now could I? That would just be weirdy-weird, if people started asking each other questions for the purpose of receiving answers. Thanks for answering though.

The reason I thought it was odd was that I've never seen any correlation between someones hobbies outside of work and what tech stack they use at work.

That's OK. I keep seeing a correlation between people's proneness to be like

>The reason I thought it was odd was that I've never seen [it]

and which tech stacks they feel more comfortable with.

Re: .NET 10

#597
post #429

Earlier quoted context omitted.

There is no way a reasonable person would not deploy to Linux and postgres for cost reasons alone. No one wants to pay Microsoft or Oracle money for databases, operating systems or frameworks nowadays.

I beg to differ. Every government agency I’ve worked at will gladly pay SQL server license fees.

I think the word government agency is key here :)

Re: .NET 10

#598
post #555
post #354

Earlier quoted context omitted.

Do you measure that standard by leetcode?

No, we don't do any coding tests, just discussions of what you've done and how deep your knowledge of your tools goes. .NET folks are far less likely to understand much beyond the syntax, nevermind the "why" of things (even WHY you need StringBuilder) or what a database index is, etc.

Interesting. One would thing, "script kiddies" would be more common among Pythonistas. On the other hand, .NET might be more user-friendly, so that devs are productive even without the knowledge of what's going on under the hood. Kudos for the interview practices, that's similar to how I conduct as well :)

Re: .NET 10

#599

Earlier quoted context omitted.

I'm not sure it is more powerful but it might be more ergonomic. The strange part about both (today - it made sense 20 years ago) is the whole bytecode thing. That should go away imo.

.NET needs runtime code generation for some of its core features, like generics. Bytecode makes this much easier.

I agree that .NET uses bytecode and likely cannot practically remove it outside of narrow cases. My argument is, if .NET were a greenfield project, they likely would not use bytecode today.

Re: .NET 10

#600
post #91

Earlier quoted context omitted.

> While suffering the performance loss of V8 versus CLR, JVM or any compiled language The number of startups for whom that performance differential matters more than developer output is tiny.

Yeah, except plenty of them are probably using Kubernetes and NoSQL, because everyone dreams to be Google.

I don't think it's about dreaming to be Google. K8s is pretty easy to set up now with a hosted cloud platform if you start with it, and helm takes care of pretty much all your infra needs. Migrating to K8s is what's awful. From there, the docs have most everything you need to know and there's an abundance of helpful information online that covers most problems you'll run into.
Post reply on HN