tinycodinglm / code /code224.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
1.95 kB
deepseek-harness trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

How do I conduct effective code reviews?

Assistant

As a Reviewer:

What to Check:

  • Correctness (does it work?)
  • Readability (can I understand it?)
  • Maintainability (easy to change?)
  • Testing (adequate coverage?)
  • Security (vulnerabilities?)
  • Performance (obvious issues?)
  • Consistency (style, patterns)

Review Process:

  1. Read the PR description
  2. Check CI passes
  3. Review high-level design
  4. Examine changed files
  5. Leave actionable comments
  6. Approve or request changes

Comment Guidelines:

  • Be specific (point to line)
  • Explain reasoning
  • Suggest alternatives
  • Distinguish: must-fix vs nitpick vs question
  • Praise good solutions

As an Author:

  • Keep PRs small (<400 lines)
  • Write clear description
  • Self-review before submitting
  • Respond promptly to feedback
  • Don't take it personally

Tools:

  • GitHub/GitLab/Gerrit
  • Automated checks (lint, test, security)
  • Review assignments
  • Required approvals

Culture:

  • Blameless reviews
  • Learning opportunity
  • Knowledge sharing
  • Consistent standards

Tips:

  • Review within 24 hours
  • Limit review sessions (30-60 min)
  • Use checklists
  • Automate trivial checks
  • Pair program for complex changes