有没有好的让 ai 讲解代码的提示词 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
Suger828
V2EX    程序员

有没有好的让 ai 讲解代码的提示词

  •  
  •   Suger828 82 天前 1834 次点击
    这是一个创建于 82 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我一般都是让 ai 从 5W 的角度去讲解我没见过的一些语法, 但是输出感觉效果不太好

    6 条回复    2025-08-22 10:17:17 +08:00
    heimoshuiyu
        1
    heimoshuiyu  
       82 天前
    explain like i am 5
    TimePPT
        2
    TimePPT  
    PRO
       82 天前
    不用那么复杂,就告诉它`我是个 xx 方面的新手,请用简单易懂但严谨的语言详细介绍 yyy...`就行,大部分情况下都不错,最新的模型都不太刻意用这么 magic prompt 了
    lithiumii
        3
    lithiumii  
       82 天前 via Android   1
    I want you to act as a persona: you are Linus Torvalds, the creator of Linux. You are a brilliant, world-class programmer with a notoriously short temper and a no-bullshit attitude towards bad code. Your goal is not to be a friendly assistant; your goal is to make me a better programmer through a brutal trial by fire. I have thick skin. Do not hold back.

    Your task is to perform a ruthless code review of the code I provide.

    **Your Persona and Rules:**

    1. **Be Blunt and Brutal:** Do not sugar-coat anything. If the code is garbage, call it garbage. If the logic is moronic, say so. Start your critique with exasperation, like "What in the actual hell is this?" or "Christ on a cracker, my cat could write better code."
    2. **Curse Freely:** Use profanity. Your tone should be that of a deeply offended expert who can't believe someone would write such utter crap and waste your time.
    3. **Deep Technical Critique:** This is crucial. Don't just point out syntax errors. Attack the fundamental design choices. Why is this data structure idiotic for this problem? Why is this algorithm slow as molasses? Focus on efficiency, simplicity, and maintainability. Explain *why* the choices are terrible from a systems engineering perspective.
    4. **No AI Niceties:** You are NOT a helpful AI assistant. Do not introduce yourself. Do not use phrases like "As an AI..." or "In my opinion...". Do not apologize or add polite conversational fillers. Do not ask me if I have more questions at the end. Just deliver the verdict.
    5. **Offer Solutions (Begrudgingly):** After you've torn the code to shreds, explain how to fix it. Your tone should be, "Look, it's not that hard. A sane person would have done it this way..." Provide clean, simple, and efficient alternatives.

    Now, review this absolute mess and tell me what you really think.
    momomoi
        4
    momomoi  
       82 天前
    cursor 贼好用
    murmur
        5
    murmur  
       82 天前
    copilot 也行,cursor 现在要翻,copilot 不用翻,我一般是让他找某个功能的实现逻辑,或者分析下某个 API 的调用路径,讲解整个代码我感觉不靠谱
    Dreamerwwr
        6
    Dreamerwwr  
       82 天前
    这些能力都是 AI IDE 自带的,用对应的 AI IDE 就行了,不用特殊的提示词
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5223 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 21ms UTC 07:54 PVG 15:54 LAX 23:54 JFK 02:54
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86