with one click
blog-writing
My blog writing style. Use it for polish a blog article.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
My blog writing style. Use it for polish a blog article.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | blog-writing |
| description | My blog writing style. Use it for polish a blog article. |
本技能用于按照特定的技术博客写作风格辅助创作或润色文章。
问题引入 → 背景说明 → 核心概念讲解 → 实现细节 → 总结/展望
常见的文章类型包括:
遇到这个问题是这样的,
select * from t where a < 5 and a > 5我期望它能直接推导出来,这是一个空集,因为a < 5 and a > 5恒为假。结果呢?它给我搞出来了一个全表扫!这不就傻逼了。嗯,扫了一眼我们的代码,开始没看太懂。于是决定自己想想怎么做。
首先我们想下 iterator 的概念。一个 iterator 是可以调用多次的,它不是调用一次就返回了,而是可以 next 多次直到最终结果的完成。我们可以搞一个状态机,记录里面的状态,每次 next 之后更新状态,直到结束。
老实说,我非常不喜欢这个feature。Go自做主张弄一些背后我无法确定的事情。顺带一提吧,另一个Go中我不喜欢的feature是init函数。
无栈协程可以在编译器做些支持,提供 await yield 之类的关键字,其实本质上就是回调写法用 monad 的形式让代码不那么回调地狱。无栈协程使用起来不太舒适,即使语法糖各种已经弄得很方便的情况。有个无解的痛点是,只要是无栈协程实现,都克服不了函数染色的问题。
核心原则:真实、深度、实用、亲切