News for hackers. Stuff that matters.
Re:Ask HN: What tech stack would you use to build a new web ... by isaacdl on Monday December 20, 2021 @11:28AM (#29626659)
I'd start with a .NET 6 MVC application. The default templates will get you started with robust routing and authentication, and you can back it with anything you want for database access. You might find it valuable to start with Entity Framework (EF) - depending on whether or not you want/like to use an ORM. That would provide pretty robust tools for managing database migrations, etc.

It's "boring" but C# is an extremely developer-friendly language these days, and it's hard to beat the availability of documentation, examples, and libraries.

EDIT: and on the front-end, the MVC templates that Microsoft provides start with Bootstrap. I've found Bootstrap and some native Javascript provides more than enough flexibility for quite a while. Bootstrap is great for an MVP, and has a lot of flexibility to make it look good!

Re:Ask HN: What tech stack would you use to build a new web ... by tester756 on Monday December 20, 2021 @11:37AM (#29626790)
MVC 6? not Core?
Re:Ask HN: What tech stack would you use to build a new web ... by nathanaldensr on Monday December 20, 2021 @11:40AM (#29626848)
.NET 6 is Core. Microsoft hasn't used the Core moniker since .NET 5 dropped it.
Re:Ask HN: What tech stack would you use to build a new web ... by tester756 on Monday December 20, 2021 @12:04PM (#29627090)
I meant that "MVC 6" is quite old, ain't it?

https://stackoverflow.com/questions/38109524/what-is-the-dif...

Re:Ask HN: What tech stack would you use to build a new web ... by c0wb0yc0d3r on Tuesday December 21, 2021 @02:39AM (#29634971)
MVC 6, was "never" released. As this answer[0] describes.

[0]: https://stackoverflow.com/a/38109745

Re:Ask HN: What tech stack would you use to build a new web ... by vucetica on Monday December 20, 2021 @11:30AM (#29626692)
Ditto.
Re:Ask HN: What tech stack would you use to build a new web ... by incognos on Monday December 20, 2021 @11:31AM (#29626707)
downside: you have to run on windows
Re:Ask HN: What tech stack would you use to build a new web ... by isaacdl on Monday December 20, 2021 @11:35AM (#29626767)
Not really true any more! I've done most of my development in Windows, true, but my understanding is that development on Linux is pretty much a first-class citizen these days.

You can definitely deploy/host the application on Linux just fine - we do it all the time!

Re:Ask HN: What tech stack would you use to build a new web ... by hdjjhhvvhga on Monday December 20, 2021 @12:04PM (#29627095)
And how does it work now? I remember I tried it in the old days, but noticed serious memory leaks after 30 days or so, so I decided to periodically restart the server to avoid them as debugging this stuff was a real PITA.
Re:Ask HN: What tech stack would you use to build a new web ... by fabian2k on Monday December 20, 2021 @11:35AM (#29626763)
.NET 6 runs on Linux without issues (for web applications, it's mostly GUI applications where there are still major differences between platforms).
Re:Ask HN: What tech stack would you use to build a new web ... by mbesto on Monday December 20, 2021 @11:36AM (#29626771)
Run what? You can run it on Linux and Macos:

https://dotnet.microsoft.com/en-us/download

Re:Ask HN: What tech stack would you use to build a new web ... by deanebarker on Monday December 20, 2021 @11:41AM (#29626855)
No, you don't. I work for an enterprise software company that built on .NET for 20 years. We just upgraded the codebase to .NET 5, and all future deployments will be on Linux.
Re:Ask HN: What tech stack would you use to build a new web ... by metaltyphoon on Monday December 20, 2021 @11:34AM (#29626741)
Wow. This is more than half a decade old joke.
Re:Ask HN: What tech stack would you use to build a new web ... by at10ti0n on Monday December 20, 2021 @11:37AM (#29626796)