Sometimes No Code Is Best

Sometimes No Code Is Best 图片 1

Yesterday I decided I needed a new function in my Rust program. I used 3 different LLMs in OpenCode to try to generate this method. The first model I used (a local model) seemed to have problems and could not generate a working implementation after 1 hour of effort.

No Code

I then decided just to write it myself. I spent about 30 minutes and had an elegant, reliable implementation at the end (yes I think highly of my own code sometimes).

After further consideration, I tried 2 other models: DeepSeek V4 Flash, which is an online model. DeepSeek wrote a working implementation in just 1-2 minutes, with only 2 prompts. And finally Qwen 3.6 35B (on my local PC) managed a version in 4-5 minutes, with 3 prompts.

I reviewed all the code, and decided the problem could be better addressed in a different way —with just some CSS instead. So the final thing I did was delete the function entirely and add a couple CSS rules. I feel like the "no code" implementation is the best version by far.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论