CodeFlag
QuestionsPricing

The future is
Flagging Code, not writing it.

AI writes the code now. Companies are hiring engineers who can catch dangerous anti-patterns. Practice spotting real bugs in code segments and simulated PRs and level up!

Start Flagging — FreeView Pricing

What You'll Flag

Review Python scripts, TypeScript components, C++ programs, SQL queries, Dockerfiles, GitHub Actions workflows, HTML markup, rendered UIs, and Git commands. Catch injection vulnerabilities, memory leaks, CI/CD misconfigurations, and unhandled edge cases across 5 categories.

Security
Performance
Readability
Best Practices
Error Handling
PythonTypeScriptGitHub Actions YAMLHTMLUI Visual ReviewGitPR Diff ReviewsC++SQLDockerfile

Simple Pricing

Free challenges included, no account needed. Upgrade to unlock all 100+ questions.

Monthly

$9/mo
  • Unlimited code reviews
  • All 5 categories
  • Detailed explanations
  • Fixed code examples
Best Value

Lifetime

$85 once
  • Unlimited code reviews
  • All 5 categories
  • Detailed explanations
  • Fixed code examples
  • Lifetime access
  • All future content

The developers who thrive won't write the most code,
they'll catch the worst bugs.

Code review is the highest-leverage skill in the AI era. Start training it today.

Go to Questions
TermsPrivacyCommercial Disclosure

Contact: ronantech@proton.me

© 2026 CodeFlag. All rights reserved.

PR: Add Fallback for Price API

Review the code and identify the issue.

Python (diff)
-
-
+
+
+
+
+
-
+
-
-
-
+
+
+
 import requests
 
 def get_product_price(product_id):
     response = requests.get(f'https://api.store.com/products/{product_id}')
    response.raise_for_status()
    return response.json()['price']
    try:
        response.raise_for_status()
        return response.json()['price']
    except (requests.RequestException, KeyError):
        return 0.0
 
 def calculate_order_total(items):
    total = 0
    total = 0.0
     for item in items:
         price = get_product_price(item['product_id'])
         total += price * item['quantity']
    if total <= 0:
        raise ValueError('Order total must be positive')
     return total
 
 def process_checkout(user, items):
    total = calculate_order_total(items)
    total = calculate_order_total(items)
    if total == 0.0:
        return {'status': 'empty_cart'}
     charge_user(user, total)
     return {'status': 'success', 'charged': total}