in reply to
Re: Re: Re: Coding while drunk
in thread Coding while drunk
Programming languages are meant to communicate a solution to another human through a conversation that a computer is barely smart enough to understand.
I repectfully disagree. Programming languages are abstractions that allow humans to write complex instructions for a computer while remaining isolated from the lower level requirements of the implementation. By the way, no computer is even "barely smart enough to understand" those instructions. Computers just follow them.
I wasn't really disagreeing with dws in principle. In fact, I agreed that the original poster should regain his understanding of the code. I also suggested that he comment it (for the future) and test it.
I only disagreed that the code should be discarded out-of-hand simply because the poster was drunk when he wrote it. Of course, if he is unable to regain his understanding, then it should probably be rewritten. That, however, has its own hazards and might come with its own bugs. That brings us back to testing...
"My two cents aren't worth a dime.";