News for hackers. Stuff that matters.
Re:Using React, Redux and SSR to acommodate users without Ja... by kumarvvr on Sunday June 07, 2020 @09:06AM (#23447048)
If we are going to use SSR, why not use asp.net core mvc like frameworks. Its orders of magnitude easier to reason about and highly productive during development.

I used to be a fan for react, but a month ago I started a project in asp.net core mvc, and am hooked. Of course I have a lot of experience in c#, so that helps i guess.

Re:Using React, Redux and SSR to acommodate users without Ja... by eyelidlessness on Sunday June 07, 2020 @11:09AM (#23447900)
> Its orders of magnitude easier to reason about

This may be the case for you, but for me I can hardly think of anything easier to reason about in terms of producing a document tree than a pure function over state which returns that tree.

Re:Using React, Redux and SSR to acommodate users without Ja... by tommica on Sunday June 07, 2020 @10:03AM (#23447407)
What kind of things does it do to make you feel like that? What got you hooked?
Re:Using React, Redux and SSR to acommodate users without Ja... by kumarvvr on Sunday June 07, 2020 @10:11AM (#23447457)
1. Dependency Injection and convention based routing allows to get started on projects quite quickly.

2. An integrated approach to data access and view generation is a god send when you are a lone developer. With the front-end and back-end separated, there is twice the cognitive load to handle, no matter if the languages are same on both ends.

3. Reasoning about a web-app, in terms of views (or pages) is much easier to start with. Of course, we can always complicate the thing by adding JS, but ASP.NET Core MVC provides a very well laid out template to begin with, that is suitable for most web apps.

4. C# is an amazing language to work with. It's mind blowing awesome, especially after working for a year with JS/TS. To quote Steve Jobs, "It's like giving someone a glass of cold water in hell"

5. Async/Await in C# is easier to work with.

6. Expressing Ideas in C# is very easy and systematic.

7. Performance is fantastic. Just see the Techempower benchmarks. Performance is money, in today's cloud world.

Re:Using React, Redux and SSR to acommodate users without Ja... by tommica on Monday June 08, 2020 @09:52AM (#23456466)
Thank you for sharing - I've thought about looking into it, but never got around it - this peaked my interest once again :)