tinycodinglm / code /code225.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
2.03 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 manage technical debt effectively?

Assistant

Types of Technical Debt:

  • Deliberate: Known trade-off (document it!)
  • Inadvertent: Poor practices, lack of knowledge
  • Bit rot: Accumulated over time

Identifying Debt:

  • Code complexity metrics
  • Test coverage gaps
  • Frequent bug areas
  • Slow build/test times
  • Developer complaints
  • Architecture drift

Tracking:

  • Technical debt register (Jira, GitHub Issues)
  • Tag: tech-debt, refactor
  • Estimate effort to fix
  • Link to business impact

Prioritization:

  • Risk × Impact matrix
  • Hotspot analysis (churn + complexity)
  • Boy Scout Rule (fix when touching)
  • Dedicated sprint time (10-20%)
  • Hackathons/Innovation weeks

Paydown Strategies:

  • Refactor during feature work
  • Strangler Fig (gradual replacement)
  • Extract services
  • Improve test coverage first
  • Automate before refactoring

Prevention:

  • Code review standards
  • Definition of Done includes quality
  • Architecture decision records (ADRs)
  • Regular retrospectives
  • Training and mentoring

Metrics:

  • Technical debt ratio
  • Code coverage trend
  • Cycle time
  • Defect escape rate
  • Developer satisfaction

Tips:

  • Make debt visible
  • Allocate regular paydown time
  • Don't let perfect block good
  • Communicate business value
  • Celebrate improvements