Rails8

杰瑞发布于2024-10-05

And yes, this is now true about CSS as well. Here’s the same chart for our CSS. Individual files, relying exclusively on standardized CSS available in the latest evergreen versions of Chrome, Safari, and Firefox.
是的,现在CSS也是如此。这是我们CSS的相同图表。单个文件,完全依赖于Chrome、Safari和Firefox最新常青版本中提供的标准化CSS。
Now, when some JavaScript people see arguments like this, it seems like their brain just turns into a red mush of rage. Like I’ve insulted their religion and all its holy prophets.
现在,当一些JavaScript用户看到这样的论点时,他们的大脑似乎变成了愤怒的红色糊状物。就像我侮辱了他们的宗教和所有神圣的先知一样。
I don’t quite get it, but let me try to ameliorate it anyway: It’s OK to still use bundlers! I’ve been pretty excited about the progress brought forward with esbuild and bun. I think both projects are really cool, and if you’re working on one of those big, honking SPA apps with hundreds or thousands of NPM dependencies, and megabytes of JavaScript that needs to travel over the wire, you should take full advantage of these powerful tools.
我不太明白,但让我试着改进一下:仍然可以使用捆绑器!我对esbuild和bun带来的进展感到非常兴奋。我认为这两个项目都很酷,如果你正在开发一个具有数百或数千个NPM依赖关系的大型SPA应用程序,以及需要通过网络传输的兆字节JavaScript,你应该充分利用这些强大的工具。
All I’m demonstrating here is that it’s no longer necessary to live and work like this. You can choose something different. Hotwire is an alternative. #Nobuild is an alternative. Nobody is taking your favorite bundler away. TypeScript is still there for those who want that. IT’S ALL GOOD!
我在这里要证明的是,不再需要像这样生活和工作。你可以选择不同的东西。热线是一种替代方案#Nobuild是一种替代方案。没有人会拿走你最喜欢的包。TypeScript仍然适合那些想要它的人。一切都好!
What I’m saying is that I’m just incredibly, over-the-moon pleased with the fact that I don’t need any of that stuff any more. That I can develop entirely against the superb runtime that’s shipped with every browser to handle JavaScript and CSS. I think that’s so cool! I think that’s part of what makes the web so special as a development platform.
我想说的是,我真的非常高兴,因为我不再需要这些东西了。我可以完全针对每个浏览器附带的处理JavaScript和CSS的出色运行时进行开发。我觉得这太酷了!我认为这就是网络作为一个开发平台如此特别的部分原因。
I don’t even mind having had to travel a long way to get here. I did webpack, I’ve done esbuild, I’ve done all of it along the way. But I’m a firm believer that complexity ought to be a temporary price we pay for progress. The final destination, for me, has always been simplicity. And nothing is simpler than sending a plain-text JavaScript or CSS file straight to a browser and watch the magic play.
我甚至不介意必须长途跋涉才能到达这里。我做了webpack,我做了esbuild,我一路上都做了。但我坚信,复杂性应该是我们为进步付出的暂时代价。对我来说,最终的目的一直是简单。没有什么比直接将纯文本JavaScript或CSS文件发送到浏览器并观看魔术表演更简单的了。
Viva the web!
Kamal offers zero-downtime deploys, rolling restarts, asset bridging, remote builds, accessory service management, and everything else you need to deploy and manage your web app in production with Docker. Originally built for Rails apps, Kamal will work with any type of web app that can be containerized.
Kamal提供零停机部署、滚动重启、资产桥接、远程构建、配件服务管理,以及使用Docker在生产环境中部署和管理web应用程序所需的一切。Kamal最初是为Rails应用程序构建的,它可以与任何可以容器化的web应用程序一起使用。