有没有好的让 ai 讲解代码的提示词 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
请不要在回答技术问题时复制粘贴 AI 生成的内容
Suger828

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

  •  
  •   Suger828 Aug 21, 2025 2311 views
    This topic created in 251 days ago, the information mentioned may be changed or developed.

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

    6 replies    2025-08-22 10:17:17 +08:00
    heimoshuiyu
        1
    heimoshuiyu  
       Aug 21, 2025
    explain like i am 5
    TimePPT
        2
    TimePPT  
    PRO
       Aug 21, 2025
    不用那么复杂,就告诉它`我是个 xx 方面的新手,请用简单易懂但严谨的语言详细介绍 yyy...`就行,大部分情况下都不错,最新的模型都不太刻意用这么 magic prompt 了
    lithiumii
        3
    lithiumii  
       Aug 21, 2025 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  
       Aug 21, 2025
    cursor 贼好用
    murmur
        5
    murmur  
       Aug 22, 2025
    copilot 也行,cursor 现在要翻,copilot 不用翻,我一般是让他找某个功能的实现逻辑,或者分析下某个 API 的调用路径,讲解整个代码我感觉不靠谱
    Dreamerwwr
        6
    Dreamerwwr  
       Aug 22, 2025
    这些能力都是 AI IDE 自带的,用对应的 AI IDE 就行了,不用特殊的提示词
    About     Help     Advertise     Blog     API     FAQ     Solana     2700 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 49ms UTC 14:31 PVG 22:31 LAX 07:31 JFK 10:31
    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