- Using X hours and writing 300 lines of code without any comments and zero maintainability
- Using 3*X hours and writing 50 lines of self-explaining, fully maintainable code
I always prefer the second approach. It costs more at development time but it always pays back in the long term and have nearly zero costs after deployment. But this approach is very rare unfortunately.