My experience is that for complex architectures, files must be split. Allowing AI to index a self-consistent logic that fits into a single context based on filenames is far more stable than it piecing together bits and pieces and guessing the overall picture. Of course, AI won't split files on its own, so I ask it to refactor a portion of the code almost every day.
This article is machine translated
Show original

yetone
@yetone
03-21
我不是完全激进地反对在 vibe coding 时代文件不需要拆分。我觉得如下两种情况是需要拆分的:
1. 这个文件中的有些逻辑是被其他地方复用的
2. 文件里面有太多状态流转了,你可以通过文件拆分来维护状态流转的边界 x.com/yetone/status/…
From Twitter
Disclaimer: The content above is only the author's opinion which does not represent any position of Followin, and is not intended as, and shall not be understood or construed as, investment advice from Followin.
Like
Add to Favorites
Comments
Share
Relevant content


