TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Are cross-platform frameworks worth it?

2 点作者 grumblingdev超过 1 年前
Things like Electron and React Native &#x2F; Expo always seem really cool. Write once, run anywhere.<p>When you see how large and well-resourced the companies are who use these frameworks, it really makes you feel as a solo dev, how could you possibly go a different direction. If they have all the money and man-power, and they can&#x27;t build for each platform specifically, what chance do you have.<p>For example: VSCode&#x2F;Discord&#x2F;Slack use Electron, Facebook Messenger Desktop uses React Native Desktop.<p>I&#x27;ve finally concluded that it&#x27;s not worth it. I&#x27;m sick to death of battling against some abstraction and build process, to try and do something that I KNOW how I would do it natively. Like when you are trying to get an ORM to do something that you know exactly how you would write yourself in SQL.<p>We now have declarative UI APIs for each platform (SwiftUI for macOS&#x2F;iOS and Jetpack for Android), and building on native tech allows better performance, less ram usage, faster startup, smoother animations, more integrated feel.<p>I really feel like the dream of write once, run anywhere has sailed. Instead of creating abstraction layers in a single language, we should embrace each platform, and use smart code&#x2F;project generation if we must, allowing the user to fallback to the native language and technology. It just doesn&#x27;t feel that difficult to learn Swift and Kotlin.

2 条评论

perilunar超过 1 年前
&gt; building on native tech allows better performance, less ram usage, faster startup, smoother animations, more integrated feel.<p>Yes, though there are significant downsides also.<p>&gt; I really feel like the dream of write once, run anywhere has sailed<p>I think it&#x27;s just getting started. The web is <i>the</i> universal platform. It&#x27;s not always the best choice, but it&#x27;s the place to start.
pestatije超过 1 年前
you missing desktop and web platforms