# Hourly Productivity Rates by Code Type

## Lines Per Hour (Senior Developer, 5+ years)

| Code Type | Lines/Hour | Notes |
|-----------|-----------|-------|
| Simple CRUD/UI | 30-50 | Forms, basic views, standard patterns |
| Complex business logic | 20-30 | State machines, workflows, validations |
| GPU/Metal/shader programming | 10-20 | Metal, CUDA, OpenGL, compute shaders |
| Native C/C++ interop | 10-20 | FFI, bridging headers, memory management |
| Video/audio processing | 10-15 | AVFoundation, CoreMedia, codecs |
| System extensions/plugins | 8-12 | Kernel extensions, DAL plugins, drivers |
| Comprehensive tests | 25-40 | Unit, integration, snapshot tests |
| Infrastructure/DevOps | 15-25 | CI/CD, Docker, Terraform, scripts |
| API integrations | 20-30 | REST, GraphQL, WebSocket clients |
| Data processing/ETL | 15-25 | Parsers, transformers, pipelines |

## Overhead Multipliers

| Activity | % of Coding Time |
|----------|-----------------|
| Architecture & design | +15-20% |
| Debugging & troubleshooting | +25-30% |
| Code review & refactoring | +10-15% |
| Documentation | +10-15% |
| Integration & testing | +20-25% |
| Learning curve (new frameworks) | +10-20% |

Total overhead typically: 1.9x-2.25x raw coding hours.
