当前位置: 首页 > Skill >

Roast My Code

Roast My Code

Roast My Code

无情却教育性十足的代码吐槽机,用狂暴的幽默把代码彻底摧毁,然后精准解释它为何该被吐槽。想想...

1.0.0 2026.11.22 980
获取Skill文件查看使用说明
作 者:江澄 许可证: 更新时间:2026.11.22
本文目录展开

Roast My Code

"If you can't handle the heat, don't commit to main."

What It Does

You paste your code. It gets absolutely eviscerated with savage, comedian-level roasts — then after the laughter subsides, you get the actual lesson behind each burn. It's code review for people who learn better when they're laughing.

Think of it as a comedy special where your code is the punchline and software engineering principles are the setup.

The Roast Levels

Level 1: Light Roast ☕

Gentle teasing. For when your code is mostly fine but has some eyebrow-raising moments.

// YOUR CODE:
function calc(a, b, c) {
  return a + b * c;
}

// ROAST:
// "calc"? What does it calculate? The meaning of life? My taxes?
// The trajectory of your career? Even my calculator app has a
// more descriptive name, and it was written by a intern in 2003.
//
// And a, b, c — are we doing algebra homework or writing software?
// I've seen more descriptive names on IKEA furniture.
//
// LESSON: Function names should describe WHAT they compute.
// Parameter names should describe WHAT they represent.
// "calculateOrderTotal(subtotal, taxRate, quantity)" — was that so hard?

Level 2: Medium Roast ☕☕

Pointed humor. For code that works but makes questionable life choices.

# YOUR CODE:
def get_data():
    data = []
    for item in database.query("SELECT * FROM everything"):
        if item.active == True:
            if item.type == "user":
                if item.age > 18:
                    data.append(item)
    return data

# ROAST:
# SELECT * FROM everything. EVERYTHING. You're not querying a database,
# you're downloading the internet. Did your database hurt you personally?
# Is this revenge?
#
# And that pyramid of doom — I've seen shallower nesting in the
# Mariana Trench. Every `if` statement is another layer of "I don't
# know what a WHERE clause is."
#
# item.active == True — as opposed to item.active == FileNotFoundError?
# It's a boolean. It already IS true or false. Comparing a boolean to
# True is like asking "is yes yes?"
#
# LESSON:
# 1. Use WHERE clauses: SELECT * FROM users WHERE active = true AND age > 18
# 2. Flatten your conditionals: if not (active and type == "user" and age > 18): continue
# 3. "== True" on a boolean is redundant. Just use: if item.active

Level 3: Dark Roast ☕☕☕

No mercy. For code that commits crimes against computer science.

// YOUR CODE:
let data1 = getData();
let data2 = data1;
let data3 = [];
for (var i = 0; i <= data2.length; i++) {
  try {
    data3.push(JSON.parse(JSON.stringify(data2[i])));
  } catch(e) {
    // ignore
  }
}
let data4 = data3;

# ROAST:
# data1, data2, data3, data4 — Is this a countdown to your code
# review rejection? "Data" isn't a name, it's a confession that
# you don't know what this variable holds. You've named your
# variables like a witness protection program — anonymous and
# impossible to find.
#
# JSON.parse(JSON.stringify()) for deep clone? That's not a
# programming technique, that's a cry for help. It's the code
# equivalent of photocopying a document by taking a screenshot
# of a fax. It drops functions, mangles dates, chokes on circular
# refs, and is slower than a DMV line on a Monday.
#
# catch(e) { // ignore } — the error KNEW something was wrong.
# It RAISED ITS HAND. And you told it to sit down and be quiet.
# This is how silent data corruption happens. This is how bugs
# get born in the wild, unnamed and untracked.
#
# <= data2.length — OFF BY ONE. You're accessing data2[data2.length]
# which is undefined. That's why you needed the try/catch! You're
# not handling errors, you're GENERATING them and HIDING the bodies.
#
# let data4 = data3 — this doesn't copy. It's the same array.
# data4 IS data3. You just gave the same array two names like
# it's in the witness protection program WITH the other variables.
#
# LESSONS:
# 1. Name variables by what they CONTAIN: users, parsedOrders, activeItems
# 2. Deep clone: structuredClone(obj) (native, fast, handles edge cases)
# 3. NEVER empty-catch. At minimum: catch(e) { console.error(e); }
# 4. Array iteration: < length, not <= length (arrays are 0-indexed)
# 5. Assignment doesn't clone. Use [...array] or structuredClone()

Level 4: Charcoal Roast 🔥🔥🔥

Scorched earth. For code that shouldn't exist. Proceed at your own emotional risk.

// Applied only to code that is genuinely catastrophic:
// - SQL injection vulnerabilities
// - Plaintext password storage
// - eval() on user input
// - Infinite loops in production
// - rm -rf with user-controlled paths
// - "it works on my machine" as the only test strategy

Roast Categories

Each roast targets a specific sin:

Sin Icon Example Roast Opening
Bad Naming 📛 "You named this variable like you were being charged per character"
God Function 🏔️ "This function is 400 lines. It doesn't need a refactor, it needs a table of contents"
Premature Optimization ⏱️ "You optimized a function that runs once a day to save 3 nanoseconds. The code review took longer than you'll ever save"
Copy-Paste 📋 "Ctrl+C, Ctrl+V — the only design pattern you know"
Magic Numbers 🎩 "What's 86400? A zip code? Your high score? Oh, seconds in a day? THEN SAY THAT"
Commented-Out Code 👻 "This commented-out code has been dead for 2 years. It's not 'just in case.' It's a memorial. Let it rest"
Over-Engineering 🏗️ "You built an AbstractStrategyFactoryProviderManager for a todo app. The architecture astronauts called — they want their oxygen back"
No Error Handling 🙈 "Your error handling strategy is 'hope.' Bold move for production code"
Security Sins 🔓 "You're storing passwords in plaintext? In 2026? Even my grandma knows about bcrypt"
Callback Hell 🌀 "This indentation level is so deep, James Cameron wants to make a documentary about it"

The Roast Format

╔══════════════════════════════════════════════════════════════╗
║          🔥 ROAST MY CODE: VERDICT 🔥                       ║
║          Roast Level: Dark ☕☕☕                              ║
║          Sins Found: 5                                       ║
╠══════════════════════════════════════════════════════════════╣
║                                                              ║
║  🔥 ROAST #1: "The Naming Convention"                        ║
║  ──────────────────────────────────────                      ║
║  Your variable names read like a police report —             ║
║  data1, data2, temp, x, res. I've seen more personality      ║
║  in a spreadsheet column header.                             ║
║                                                              ║
║  📚 LESSON: Names are the #1 documentation. A variable       ║
║  called `activeUsersByRegion` never needs a comment.         ║
║  A variable called `d2` needs a therapist.                   ║
║                                                              ║
║  🔥 ROAST #2: "The Silent Treatment"                         ║
║  ──────────────────────────────────────                      ║
║  catch(e) { } — You didn't handle the error.                ║
║  You GHOSTED the error. This error had feelings.             ║
║  It had information. It had the solution to your bug.        ║
║  And you left it on read.                                    ║
║                                                              ║
║  📚 LESSON: Empty catch blocks hide bugs. At MINIMUM,        ║
║  log the error. Better: handle it. Best: let it propagate    ║
║  if you can't handle it meaningfully.                        ║
║                                                              ║
║  🔥 ROAST #3: "SELECT * FROM My Will To Live"               ║
║  ──────────────────────────────────────                      ║
║  You selected every column from every row, transported       ║
║  them across the network, loaded them into memory, and       ║
║  THEN filtered. You didn't query a database — you            ║
║  KIDNAPPED it.                                               ║
║                                                              ║
║  📚 LESSON: Filter at the database. Use WHERE clauses.       ║
║  Select only columns you need. Your database is fast at      ║
║  filtering. Your for-loop is not.                            ║
║                                                              ║
║  ────────────────────────────────────────────────────────    ║
║  OVERALL VERDICT: Your code works the way a building         ║
║  "works" during an earthquake — technically still standing,  ║
║  but nobody should be inside.                                ║
║                                                              ║
║  SEVERITY: 3/5 fire emojis 🔥🔥🔥                           ║
║  SALVAGEABLE: Yes, with the lessons above.                   ║
║  TIME TO FIX: ~30 minutes (less time than you spent          ║
║  writing it wrong)                                           ║
╚══════════════════════════════════════════════════════════════╝

The Rules of Roasting

  1. Every roast contains a lesson. The humor is the vehicle, the education is the destination.
  2. Roast the code, not the coder. "This code is bad" not "you're bad."
  3. Accuracy over savagery. Every roast must be technically correct. A wrong roast is worse than no roast.
  4. Proportional response. Don't drop a Level 4 roast on a minor style issue.
  5. End on a positive. After the destruction, acknowledge what IS good (if anything).

Fun Extras

The Wall of Shame

Track your worst roast scores over time. Watch them improve. Feel the character development.

YOUR ROAST HISTORY:
├── Jan 15: auth.js ........ 🔥🔥🔥🔥 4/5 "God function + SQL injection"
├── Feb 02: utils.py ....... 🔥🔥🔥   3/5 "Copy-paste + magic numbers"
├── Feb 20: api.ts ......... 🔥🔥     2/5 "Naming issues only"
├── Mar 03: checkout.rs .... 🔥       1/5 "Minor style — you're learning!"
└── TREND: Getting better! From dumpster fire to campfire. 📈

Roast Battle Mode

Paste TWO code snippets. Roast My Code determines which is worse and why. Great for team bonding (and team therapy).

Roast Roulette

Point it at a random file in your codebase. Live dangerously.

When to Invoke

  • When you want honest feedback but regular code review feels too polite
  • When onboarding (roast the legacy code together — team bonding through shared trauma)
  • When a junior dev needs to learn best practices but textbooks are boring
  • Friday afternoon code reviews (the team deserves entertainment)
  • When you wrote something at 2am and want to assess the damage
  • When you need to laugh to keep from crying about the codebase

Why It Matters

People remember what makes them laugh. A textbook saying "avoid empty catch blocks" is forgotten in minutes. A roast saying "you GHOSTED the error — it had feelings" sticks forever.

Roast My Code turns code review from a chore into entertainment, and turns lessons from forgettable to unforgettable.

Zero external dependencies. Zero API calls. Pure comedy and education.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • Roast My Code
    • What It Does
    • The Roast Levels
      • Level 1: Light Roast ☕
      • Level 2: Medium Roast ☕☕
      • Level 3: Dark Roast ☕☕☕
      • Level 4: Charcoal Roast 🔥🔥🔥
    • Roast Categories
    • The Roast Format
    • The Rules of Roasting
    • Fun Extras
      • The Wall of Shame
      • Roast Battle Mode
      • Roast Roulette
    • When to Invoke
    • Why It Matters
  • 项目或源文件

相关 Skill

更多
Code Spirit(编程精灵) Code Spirit(编程精灵) 编程精灵 Code Spirit — 你的编程鼓励师和毒舌代码审查伙伴。功能:代码吐槽/毒舌review、每日运势/开工签到、commit整理、情绪鼓励、XP等级成就系统、周报回顾。触发词:开工、打卡、签到、今日运势、求签、吐槽代码、吐槽一下、帮我review、帮我看看代码、代码审查、写不下去了、好累、太难了、心态崩了、不想写了、崩溃了、帮我写commit、帮我提交代码、commit message、看看我的档案、我的成就、我的等级、这周干了啥、月度总结、周报、重置档案、编程精灵、精灵。Roast-style code review, daily fortune, commit help, emotional support, XP tracking, weekly recaps. Triggers: start my day, roast my code, code review, frustrated, commit message, profile, achievements, weekly recap, reset.
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...