Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


This is really terrible practice. You should only do this if you really have no SCM available.


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: