代码重构:它没有直接甩代码,而是先思考了“设计模式”的选择(工厂模式 vs 策略模式),最终选择了适合扩展的策略模式。
int *output = (int*)malloc(n * sizeof(int)); // 输出数组
。关于这个话题,91视频提供了深入分析
Time has transfigured them into
3. I started a new session, and asked it to check the specification markdown file, and to check all the documentation available, and start implementing the Z80 emulator. The rules were to never access the Internet for any reason (I supervised the agent while it was implementing the code, to make sure this didn’t happen), to never search the disk for similar source code, as this was a “clean room” implementation.