3 ms·
ROFL. I get the sentiment... but respectfully disagree: code lies all the time. To make a few... - misleading function/variable names - improperly captured er
by asah 10y ago
ROFL. I get the sentiment... but respectfully disagree: code lies all the time.
To make a few...
- misleading function/variable names
- improperly captured errors/exceptions
- improperly structured locking/concurrency
- code that's overly complex or naively simplistic eg naively insecure.
- dahart 10y agoThis is a great point, code is often very messy, and often misleading the way it's written, and often has bugs. But, fwiw my reaction to your first line is that to announce your disagreement is to not get the sentiment of the quote. What he meant was that code is executed and comments are not. When he said "code never lies" he meant that if your code is buggy, then the bugs will be experienced by users. So your point is actually orthogonal to the point being made, and doesn't either refute or support the quote.