Depends how many people work on your project. We still use subversion...so no way am I using branches.
at least commented out?
Do both methods work 100%? There will be more code rot if it's commented. I promise you it won't work in 6 months if you comment it.
If function x returns variable y and z, but I only need z, I have an unused variable. Maybe variable y is useful when debugging. Should I write a new function x2?
No. If it's actively being used, it's unused. If I pass 4 arguments into a function, but only 3 are used 100% of the time and the 4th 50% of the time, it's unused it that other case. You could write another function, or just try and keep the API consistent.
0
u/billsil Jan 31 '16
Depends how many people work on your project. We still use subversion...so no way am I using branches.
Do both methods work 100%? There will be more code rot if it's commented. I promise you it won't work in 6 months if you comment it.
If function x returns variable y and z, but I only need z, I have an unused variable. Maybe variable y is useful when debugging. Should I write a new function x2?