前些天 X 上还一堆人讨论要不要看 AI 生成的代码,现在《Clean Code》作者鲍勃大叔都说:“我不看 AI 写的代码”
他的原话是,这是他能利用 AI 生产力的唯一方式。人类读代码太慢了,如果还逐行审查,就丧失了用 AI 的意义。
但不看不等于不管。他的做法是给 AI Agent 设置层层关卡:单元测试、Gherkin 测试(一种用接近自然语言描述软件行为的测试格式)、QA 流程、代码质量指标、变异测试(故意往代码里塞小错误,看测试能不能抓住)、测试覆盖率,等等。
他在今年早些时候还公开了自己的具体实践:一套四个 Agent 组成的流水线,分别负责需求规格化、编码、重构和架构审查,每个阶段都比上一个阶段更形式化,需要的人工干预也更少。他同时还会看测试覆盖率、依赖结构、圈复杂度、模块大小这些指标,从指标推断代码质量,而不是从代码本身。
【注:圈复杂度(Cyclomatic Complexity)衡量代码中独立执行路径的数量,数字越大说明逻辑越复杂,越难维护和测试。】
当 AI 生成代码的速度远超人类阅读代码的速度,代码审查的形态也在跟着改变。以前的核心能力是读代码、写代码,现在可能正在变成写测试、定约束、设指标。鲍勃大叔过去几十年一直在推测试驱动开发(TDD),现在 AI 时代高质量的测试覆盖反而比代码更有价值。
他今年在 O'Reilly 上开了一门课,叫《AI Agents for Clean Code》,也在自己的 Clean Coders 平台推出了新系列《Clean AI: Agentic Discipline》。主旨一样:AI Agent 不是不需要纪律,是需要不同的纪律。
𝘀𝘁𝗼𝗽 telling Claude Code/Codex "no em dashes".
𝘀𝘁𝗼𝗽 telling Claude Code/Codex "stop saying delve".
𝘀𝘁𝗼𝗽 telling Claude Code/Codex "don't sound like AI".
you never gave it a 𝘄𝗿𝗶𝘁𝗶𝗻𝗴 𝘀𝘆𝘀𝘁𝗲𝗺. every README, PR description and landing page ships in the same AI voice, and you ban words one at a time.
orwell wrote the fix 𝟴𝟬 𝘆𝗲𝗮𝗿𝘀 𝗮𝗴𝗼. six rules, 1946. paste them into your global CLAUDE.md / AGENTS.md and every session picks them up:
→ never use a long word where a short one will do
→ if it is possible to cut a word out, cut it out
→ never use the passive where you can use the active
6 blocks you can copy-paste directly 👇
@trq212 I am also working round the clock doesnt mean anything...if those efforts are for right cause and rightly utilized and i am appropriately benifitted.
@shivassangwan@AnjneyMidha India think they are in shadows, but reality is in gutter. Most of energy and talent interacting with AI is focused on productivity automation.
What are Fast Recovery Diodes: Where are they used?
High-frequency switching is the backbone of modern power electronics, and at the heart of it all sits the Fast Recovery Diode (FRD).
If you’ve ever wondered how Switch-Mode Power Supplies (SMPS) or electric vehicle inverters manage to stay efficient while switching at lightning speeds, these diodes are a key part of the answer.
Unlike standard rectifier diodes (like the 1N400x series) designed for 50/60 Hz mains, Fast Recovery Diodes are engineered to handle frequencies reaching into the hundreds of kHz or even MHz.
What makes them "Fast"?
The secret lies in Minority Carrier Lifetime Control. When a diode switches from forward-biased (conducting) to reverse-biased (blocking), there is a brief moment where stored charge carriers must be cleared. This period is known as the Reverse Recovery Time (t_{rr}).
In standard diodes, this process is slow, causing significant power loss and heat. To fix this, FRDs use specific fabrication techniques:
* Heavy Metal Doping: Adding trace amounts of gold or platinum to the silicon acts as "recombination centers," helping charge carriers disappear much faster.
* Irradiation:** Bombarding the silicon with high-energy particles to create crystal defects that achieve a similar high-speed effect.
Why use them over Schottky Diodes?
While Schottky diodes are even faster, they are generally limited to lower voltages (usually under 100V-200V). Fast Recovery Diodes bridge the gap by offering:
✅ High Reverse Voltage: Capable of handling hundreds or thousands of volts.
✅ Ultra-Fast Speeds: t_rr values typically range from 100ns down to less than 50ns.
✅ Low Leakage: Significantly lower reverse leakage current than Schottky alternatives.
Real-World Applications:
* SMPS Output Rectification: Essential for converting high-frequency AC to DC.
* DC-DC Converters: Acting as steering or blocking diodes.
* Motor Drives: Handling inductive "kickback" in H-bridge configurations.
* Inverters: Essential for the efficiency of EV powertrains and solar energy systems.
Whether you're designing a compact charger or a high-power industrial motor drive, understanding the recovery characteristics of your diodes is the difference between a reliable circuit and a thermal failure.
Discover more in the link in the comments.
#PowerElectronics #ElectricalEngineering #Semiconductors #CircuitDesign #electroniccomponents #electronicsnotes