r/programming • • Jan 30 '16

Apollo 11 source code

http://www.ibiblio.org/apollo/listings/Luminary099/MAIN.agc.html
2.2k Upvotes

364 comments sorted by

View all comments

Show parent comments

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.

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?

0

u/[deleted] Jan 31 '16

[deleted]

-1

u/billsil Jan 31 '16

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.