So as a 56yo "old school" LAMP-stack monkey, could someone please give me a quick rundown exactly what benefits would investing the mental energy (a non-trivial amount) and time (less an issue) give to someone in my ancient yet comfortable canvas Cons? For sure next.js is an interesting framework and of course I use plenty of typescript in my projects to keep the UXs from feeling stale, but I have yet to see the over…
Remix – A framework focused on web fundamentals and modern UX
111–120 of 307 posts
Re: Remix – A framework focused on web fundamentals and modern UX
#112Earlier quoted context omitted.
the team behind remix probably has the biggest following in the react scene, so even without having any major differentiation (though I happen to think they do have) it's going to gain popularity.
I'd never heard of Remix before today. To contrast, I heard about Next 3-4 years ago, despite not using it at work until a few months ago
Guillermo Rauch (main dude behind Next and Vercel) was well known in the scene before next which also helped it gain the initial traction to build upon.
Feels like a similar case. IIRC remix wasn't suppose to be open source, but feels like nowadays it's a better choice for them to go the Next route and build services around their framework.
My bet is they'll build a Cloudflare Edge Suite abstraction (or even get bought by CF for their edge offerings)
Re: Remix – A framework focused on web fundamentals and modern UX
#113Off topic: this is the best landing page I've ever seen on a mobile device. Keep scrolling down for some surprises!
Re: Remix – A framework focused on web fundamentals and modern UX
#114Earlier quoted context omitted.
There's no strong requirement to use Node for your backend...your Remix codebase can fetch() data from anywhere in the `loader` function: https://remix.run/docs/en/v1/guides/api-routes#api-routes
I get that I can run this as a SPA, but then don't I lose out on the prerendered HTML fetched from the server? That's what I mean by isometric with Node.
I think for remix to be able to do what it does, it kind of needs to run as a JS (not node!) backend, because a big part of it is running react on the server. Also, you are literally writing the server and client code in the same file. Closure and Reason which have strong react ports/bindings might be able to do it, but otherwise I don‘t see how.
What other backends need is probably a totally different framework, that wraps up a react server renderer with native language bindings. Might be neat, but totally different.
Re: Remix – A framework focused on web fundamentals and modern UX
#115So the web dev madness has come full circle - the react people just built rails in react. In the mean time I just keep using rails...
Re: Remix – A framework focused on web fundamentals and modern UX
#116Earlier quoted context omitted.
I like to think of like this: I use Next.js for my marketing site. I use Remix for my web app. Next is good if you just need to get some HTML on the page. Remix is good if you need a connect to a database or backend API.
I'm curious what do you think is missing from Next.js that would make it better at connecting to databases and backend APIs? There is a bit of evidence that people are building heavily used web apps with Next.js that connect to databases, backend APIs, and expose APIs of their own, for example: https://nextjs.org/showcase
Re: Remix – A framework focused on web fundamentals and modern UX
#117So the web dev madness has come full circle - the react people just built rails in react. In the mean time I just keep using rails...
Re: Remix – A framework focused on web fundamentals and modern UX
#118Re: Remix – A framework focused on web fundamentals and modern UX
#119Earlier quoted context omitted.
They just did (maybe still going) Q&A session where they did a demo and answered question. Remix seems to be more like PHP or Ruby On Rails, it handles both server side functionality (calls to db, third-party APIs...) as well as the frontend code in a single file.
That can be done on NextJS as well using getInitialProps, getServerSideProps, or getStaticProps Some of the notable differences between NextJS and Remix are the following: - While both support file-based routing, Remix is baked with React Router -- giving developers the capability to declare custom routes without sticking to file structure conventions - NextJS banks on its static site generation to generate "cache-ab…
Also, there's a lot more to caching with NextJS than SSG.