News for hackers. Stuff that matters.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by rustc on Saturday May 03, 2025 @03:46PM (#43881615)
What's the closest thing to Rails in a language with a sound static type system?
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by pjerem on Saturday May 03, 2025 @04:02PM (#43881776)
Unironically, if you want something as mature as Rails, with batteries included, and static typing, the closest in my mind is aspnet core.

It’s honestly a really underrated framework, smartly designed, with probably the best ORM that exists and a great ecosystem.

Unfortunately, the documentation is painfully bad and the Getting Started guides are really boring compared to Rails or Django.

There may also be Laravel but I can’t say anything about it since I never tried it.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by christophilus on Saturday May 03, 2025 @07:33PM (#43883222)
LINQ is the thing I miss most in every other stack I’ve used. It’s a thing of beauty even if you don’t use EF.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by Capricorn2481 on Sunday May 04, 2025 @12:19PM (#43887602)
Like you say, trying to learn to do something in Asp.net core can feel like pulling teeth. I'm usually surprised to find there's a first party library that does what I need, yet I couldn't find it for hours.

I have complaints about Laravel, but I think it's a lot easier to find examples, and modern PHP has static typing improvements. But I would much rather use C#

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by twodave on Saturday May 03, 2025 @03:51PM (#43881648)
Probably something like ASP.NET MVC with C#
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by mattgreenrocks on Saturday May 03, 2025 @06:12PM (#43882787)
Yep. It’s ASP.NET. Arguably ASP.NET’s ORM is better than ActiveRecord even. With Blazor SSR you can use components on the server. IMO Blazor SSR needs a bit more time to bake and not reload is a huge mess currently. But the stack is great and will probably be undervalued simply due to the fact it is in C#.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by twodave on Saturday May 03, 2025 @06:27PM (#43882886)
It’s really more so because it’s Microsoft. And this is a shame, since C# has been IMO one of the great languages for at least 5 years now (C# 9/.NET 5), and has only gotten better since then.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by t-writescode on Sunday May 04, 2025 @07:53AM (#43886209)
I've been loving C# since .... 6 or 7? About 10 years now. It's genuinely a great language - took a lot of the rough spots of Java and fixed them and then kept getting better.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by rc_mob on Saturday May 03, 2025 @04:01PM (#43881769)
php8.4 with Laravel
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by touristtam on Monday May 05, 2025 @05:18AM (#43893194)
Honest question: Why Laravel vs Symfony? I have no experience with the former and some with the later (albeit dated now)
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by ldjkfkdsjnv on Saturday May 03, 2025 @04:22PM (#43881940)
spring boot
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by purplerabbit on Saturday May 03, 2025 @04:30PM (#43882029)
Everyone ITT will hate me for saying this, but: T3 stack.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by diordiderot on Saturday May 03, 2025 @05:01PM (#43882288)
Adonisjs
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by t-writescode on Sunday May 04, 2025 @07:52AM (#43886203)
I've been very happy with Kotlin's Ktor + Exposed, myself.

Exposed is a solid-enough ORM for my tastes, Ktor is easy-to-use and clean; and Kotlin gives me a type system and fluent / Ruby-style method chaining.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by digianarchist on Sunday May 04, 2025 @10:44AM (#43887013)