行业动态
dev.to ·
@Anas Hamad
AI 写代码是否正在悄然改写我们沿用多年的工程规则?
文章指出 Shopify 自 2020 年押注 React Native 以共享代码库,如今转向分别用 Swift 和 Kotlin 编写原生应用。作者认为原因在于 AI 编码代理让重复实现同一功能的成本大幅下降,从而改变了跨平台方案原有的时间与体验权衡,但该因果关系尚未有公开数据佐证。
AI推荐理由 文章以 Shopify 从 React Native 回归原生 Swift/Kotlin 为例,提出 AI 编码代理正在改变跨平台与原生开发之间的成本权衡。观点有启发性,但 Shopify 的决策动因、AI 代理写原生代码的实际效率均未给出可验证证据,属讨论性推断,需保留不确定性。
62
正文
Here's a genuinely philosophical question: is AI writing code quietly rewriting rules we've followed for years?
Since 2020, Shopify bet big on React Native, writing one codebase that runs on both iOS and Android. It saved massive time and let non-mobile developers contribute to their apps.
Now they're going back to native Swift and Kotlin, writing the app twice, once fully native for each platform.
The surprising reason? Coding agents. Writing the same feature twice used to be expensive in time and effort, which was the whole reason cross-platform code sharing existed. But now AI agents write native code fast and reliably enough that doing it twice costs almost the same as doing it once.
The old Trade-off was: less time and one shared codebase, in exchange for weaker performance and a UX that never quite matched each platform's native feel. The new Trade-off is: full native performance and a better UX, at a time cost that AI has quietly shrunk.
So here's the real question for discussion: is this the beginning of the end for cross-platform frameworks? Or do React Native and Flutter still win in other scenarios? Curious what you think.
🔗 Original Source & Reference: https://shopify.engineering/back-to-native
Published automatically via FeedMind AI Content Pipeline.