TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Remix: On Rails

95 pointsby goranmoominover 3 years ago

20 comments

cientificoover 3 years ago
Rails was done by a product guy to solve one need. Most of the &quot;the new rails&quot; challengers are made by engineers.<p>Rails took a need: creating a blog engine; and make everything needed to have the simplest and most understandable way of doing it. Going through that example was like: -&quot;Ahh makes sense.&quot;. Features were secondary and the focus was on the solution. It was about solving one specific use case and grow from there.<p>So far, any framework I saw that claims to be the new rails, is speaking about features and the million things you can do.<p>It feels like Rails was done by a product guy, and all alternatives were done by engineers.<p>From reading the article, remix feels like the best way to deploy to edge. An engineering problem. Not a user one.
评论 #29603299 未加载
评论 #29603162 未加载
评论 #29605159 未加载
评论 #29603610 未加载
评论 #29606052 未加载
AtroxDevover 3 years ago
I&#x27;m getting the following on visiting the page, couldn&#x27;t have said it better:<p>&gt; Unexpected Server Error<p>&gt; Cannot destructure property &#x27;series&#x27; of &#x27;e&#x27; as it is undefined.
评论 #29606733 未加载
dinosaursover 3 years ago
I haven’t tried Remix, but I’ve seen the demos and read the docs. It looks promising but from what I’ve seen I think you can hardly call it the next Rails. The older I get, the more experienced I get, the more I think back of my Rails days as an amazing time. The framework had&#x2F;has it all. I haven’t found anything that comes close to the developer experience and how easy and structured it is to work with.
评论 #29606260 未加载
评论 #29604204 未加载
评论 #29606685 未加载
tshaddoxover 3 years ago
&gt; We could probably add some SSG functionality very easily, but it’s just not that compelling when you can run your app at the edge for pennies. I mean seriously. You sacrifice so much flexibility when you prerender everything. But when you’re running your app at the edge on CF workers you can have SSG speed without sacrificing the flexibility of SSR.<p>Kinda true, except that with no focus on cache hit rate and no discussion of (for example) pre-warming HTTP caches, this is mostly unrealized for a large class of websites. When you’re running on a CDN with a large number of nodes (like Cloudflare), with a lot of dynamic pages that change frequently, and a geographically broad visitor base, you’re likely to have a bad cache hit rate in production. And the trouble is you won’t really notice it for your demo tweets, because you’re gonna get mostly cache hits from your own CDN node.<p>There have been demo tweets from Remix (and other similar frameworks too, I suspect) that boast about their 50ms response times and attribute that to computing at the edge, but really they’re just setting a generous max-age and getting a 50ms cache hit from the traditional CDN (not edge compute) node. One such demo I saw on Twitter had a much more bog-standard React SSR response time of more like 350ms when you get a cache miss. At that point you’re not getting anything from Remix related to “edge compute” other than <i>maybe</i> the slightly reduced network latency from server to client (but that’s unlikely to matter much when it’s 300ms to do the React SSR render).
vosperover 3 years ago
IMO the big deal in Remix is partial hydration with React (not trivial to roll your own and do it well) and shipping perfectly functional websites without the need for JS.<p>It’s the framework that lets you develop in React + Typescript, without thinking about what’s server-side and what’s not, which also lets users consume pure, well-structured HTML plus the minimum JS that’s needed for interactivity.<p>Astro is also doing partial hydration for a number of frameworks, but it’s static only so it’s much more limited.
评论 #29604167 未加载
评论 #29605891 未加载
评论 #29603981 未加载
Zababaover 3 years ago
I&#x27;m going to play the role of the skeptic here, but the last time I heard about a new Rails for JS was in the context of RedwoodJS [1] a year and half ago. I don&#x27;t think it delivered on that, at least from a popularity point of view, as I&#x27;ve only heard about it once or twice since.<p>Looking at the website of Remix [2] itself, it feels a bit weird. I may be missing something, but it feels like what Remix offers is what traditional server-side rendered HTML already does. Fetching a document and then all the JS instead of JS fetching JS? That sounds like how a classic website works. HTML forms with server-side validation? Same thing here. The part about error boundaries is interesting, and it looks like an exception mechanism for different part of a web page. I like the idea, though I&#x27;ve always heard that it&#x27;s important to separate logic from presentation, and this seems to go in the opposite direction.<p>Considering the philosophy page [3], maybe that&#x27;s the whole point and the goal is to build on existing React skills&#x2F;codebases to go back to a traditional way of doing web applications? I&#x27;ll be honest, I&#x27;m a bit confused here. I&#x27;ve never worked with the React ecosystem, so maybe that&#x27;s why I don&#x27;t understand everything.<p>[1]: <a href="https:&#x2F;&#x2F;redwoodjs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;redwoodjs.com&#x2F;</a>, <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22537944" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22537944</a><p>[2]: <a href="https:&#x2F;&#x2F;remix.run&#x2F;" rel="nofollow">https:&#x2F;&#x2F;remix.run&#x2F;</a><p>[3]: <a href="https:&#x2F;&#x2F;remix.run&#x2F;docs&#x2F;en&#x2F;v1&#x2F;pages&#x2F;philosophy" rel="nofollow">https:&#x2F;&#x2F;remix.run&#x2F;docs&#x2F;en&#x2F;v1&#x2F;pages&#x2F;philosophy</a>
评论 #29602296 未加载
评论 #29602693 未加载
dadroover 3 years ago
The optics of the site currently being down does not instill much confidence in wanting to use this in production.
评论 #29613545 未加载
tao_oatover 3 years ago
The article seems to be suffering from the Hacker News effect. Here&#x27;s a mirror: <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20211218090314&#x2F;https:&#x2F;&#x2F;marbiano.dev&#x2F;into-remix&#x2F;on-rails" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20211218090314&#x2F;https:&#x2F;&#x2F;marbiano....</a>
评论 #29613537 未加载
robertwt7over 3 years ago
I only tried the tutorial in remix and still don&#x27;t get the use cases, probably because it&#x27;s a new way of development compared to the traditional MVC?<p>I thought it&#x27;s still missing a lot of stuff compared to rails &#x2F; other battery included frameworks? The closest one comparable right now is redwoodJS<p>Probably because it&#x27;s unopinionated? for instance how would you setup middleware, events, logging, etc?<p>Battery included frameworks like django, laravel, rails, all have extensive docs and way to setup everything. Also jumping between those frameworks already gave you familiarity due to the mvc structure. Now i&#x27;m probably just confused, from mvc, to spa and api, now to SSR with data fetching and processing happening all in 1 file?<p>Maybe the docs need to be better. or i&#x27;m just not good with new stuff..
评论 #29603045 未加载
评论 #29605022 未加载
teerayover 3 years ago
There really should be a sentence early on describing what Remix <i>is</i>. I thought it was a gem or something.
qudatover 3 years ago
Intrigued by Remix but ultimately didn&#x27;t see anything super appealing. I already use react-router v6 and can pretty quickly plumb things together to get up and running with an SPA. Organizing code by feature already colocates code together which I&#x27;ve been doing for years in react&#x2F;redux.<p>SSR adds a tinge of complexity but can be accomplished in ~200 lines of code and proper data fetching abstractions.<p>To be fair, I also cannot stand rails or other batteries-included frameworks. My general perspective is they are great until they are not and then you&#x27;ll be scouring docs&#x2F;stack overflow to figure out how to bend it to your use-case. And after hours of reading you come to the conclusion that it cannot do what you want it to do and then you open an issue and hope the maintainers will accommodate.<p>Regardless I&#x27;m keeping my eye on remix to see what they come up with next.
cutlerover 3 years ago
Blitz.js is the real contender for the Rails in JS crown not Remix or Redwood.
评论 #29605213 未加载
rmetzlerover 3 years ago
HTTP 500<p>Unexpected Server Error<p>Cannot destructure property &#x27;series&#x27; of &#x27;e&#x27; as it is undefined.
评论 #29613549 未加载
xrdover 3 years ago
I would love to hear someone compare this to SvelteKit, and their different adaptors, like Vercel or Cloudflare workers.<p>i.e.: <a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;pages&#x2F;framework-guides&#x2F;deploy-a-svelte-site" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;pages&#x2F;framework-guides&#x2F;dep...</a>
评论 #29610718 未加载
dmitriidover 3 years ago
&gt; 16 years ago, David Heinemeier Hansson (DHH) took the stage and delivered one of the most impressive code demos the world has ever seen.<p>16 years later there&#x27;s no tech stack that can replicate this demo (except Elixir LiveView [1]). And yet we&#x27;re told tech has progressed.<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=MZvmYaFkNJI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=MZvmYaFkNJI</a>
评论 #29603245 未加载
评论 #29603335 未加载
评论 #29604069 未加载
jackconsidineover 3 years ago
Interesting take. I had the experience with Remix and drew the comparison to Tailwind.css [1]. I get the sense that Remix&#x27;s move away from REST + SPA will be polarizing because of the magnitude of the shift, but tremendously productive for many developers who embrace it.<p>[1] <a href="https:&#x2F;&#x2F;koptional.com&#x2F;article&#x2F;remix-fullstack-paradigm-pros-and-cons.html#a-short-intro" rel="nofollow">https:&#x2F;&#x2F;koptional.com&#x2F;article&#x2F;remix-fullstack-paradigm-pros-...</a>
评论 #29602031 未加载
0x142857over 3 years ago
this is ironic<p><a href="https:&#x2F;&#x2F;s2.loli.net&#x2F;2021&#x2F;12&#x2F;18&#x2F;E7faXl2AnVbr5W9.png" rel="nofollow">https:&#x2F;&#x2F;s2.loli.net&#x2F;2021&#x2F;12&#x2F;18&#x2F;E7faXl2AnVbr5W9.png</a>
strogonoffover 3 years ago
Remix seems quite appealing, but I wish they went with Qwik’s model rather than SSR HTML + hydrated React. I wonder if their architecture allows to plug it in under the hood.
syspecover 3 years ago
Is this a backend framework built on top of NodeJS? It looks slick, but I can&#x27;t find the backend docs
评论 #29601875 未加载
lefrenchyover 3 years ago
I may have missed it, but what makes Remix able to run SSR at the edge? Can you not do that with NextJS?
评论 #29601654 未加载
评论 #29602485 未加载