原文
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43422162
Hacker News 上的一个帖子讨论了前端 (FE) 开发中快速变化和废弃的步伐,并将其与 Rust 等后端 (BE) 技术的相对稳定性进行了对比。原发帖人哀叹前端框架和工具需要不断更新和重写。 评论者表达了类似的挫败感,他们争论 React 和 Angular 等框架的寿命和必要性。一些人认为框架很快就会过时,需要不断学习和适应,而另一些人则认为某些框架,如 React,仍然可行。 有人提出了替代方案,包括服务器端渲染、最小化 JavaScript 使用以及采用更简单的技术,如 Phoenix LiveView 和 Alpine.js。一些人认为解耦前端和后端团队会加剧这个问题。一些人建议完全放弃框架。大家普遍认为不断重写代码以跟上最新框架的步伐并非良策。甚至有人指出,作者自己的网站使用了过时的主题,突显了这个问题的普遍性。
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
The most frustrating thing about dipping in to the FE is that it seems like literally everything is deprecated. Oh, you used the apollo CLI in 2022? Bam, deprecated, go learn how to use graphql-client or whatever, which has a totally different configuration and doesn’t support all the same options. Okay, so we just keep the old one and disable the node engine check in pnpm that makes it complain. Want to do a patch upgrade to some dependency? Hope you weren’t relying on any of its type signatures! Pin that as well, with a todo in the codebase hoping someone will update the signatures.
Finally get things running, watch the stream of hundreds of deprecation warnings fly by during the install. Eventually it builds, and I get the hell out of there.
It’s just nuts to me the degree to which FE development as a whole seems to embrace the breaking change, the deprecation, etc. I’ve been working on a large rust project for nearly four years and in that time there have been a few minor breaking changes in or of third party libraries, but only one major breaking change that required significant changes to our application. Meanwhile in JS it seems like you can’t go more than six months without having to rewrite something. It’s bananas.
Okay, rant over.
reply