Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tempodox
on Oct 31, 2014
|
parent
|
context
|
favorite
| on:
OS X 10.10 – Source Code
You still can put one on top of that, like this:
#if 20141031 // Date as a valid number != 0 // Active code #else // Inactive code #endif
Helps documenting experimental alternatives, even without SCM.
gpvos
on Oct 31, 2014
[–]
This is really terrible practice. You should only do this if you really have no SCM available.
tempodox
on Oct 31, 2014
|
parent
[–]
I'm talking about
experimental
alternatives. This is not for production code. And it's still better than just out-commenting code to deactivate it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: