7 ms·
What's the closest thing to Rails in a language with a sound static type system?
by rustc 1y ago
What's the closest thing to Rails in a language with a sound static type system?
- twodave 1y agoProbably something like ASP.NET MVC with C#
- mattgreenrocks 1y agoYep. 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#.
- twodave 1y agoIt’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.
- t-writescode 1y agoI'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.
- deleted 1y ago[deleted]
- rc_mob 1y agophp8.4 with Laravel
- touristtam 1y agoHonest question: Why Laravel vs Symfony? I have no experience with the former and some with the later (albeit dated now)
- pjerem 1y agoUnironically, 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.
- christophilus 1y agoLINQ 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.
- Capricorn2481 1y agoLike 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#
- ldjkfkdsjnv 1y agospring boot
- purplerabbit 1y agoEveryone ITT will hate me for saying this, but: T3 stack.
- diordiderot 1y agoAdonisjs
- t-writescode 1y agoI'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.
- digianarchist 1y agoCrystal + Lucky https://crystal-lang.org https://crystal-lang.org https://luckyframework.org/ https://luckyframework.org/