3 ms·
How are you going to express these in code: "We have to trim the last character because this third party library we're calling has a bug that doesn't handle nu
by NateDad 10y ago
How are you going to express these in code:
"We have to trim the last character because this third party library we're calling has a bug that doesn't handle null terminators"?
Or "we have to continue to support the old-style url for backwards compatibility reasons"
or "we're dropping down to assembly here because it's 100x as fast as the naive solution"
or even "This function ensures the returned string ends in a line return."
- Walkman 10y agoFirst three are "why comments" so they are good. The fourth is not a comment. It should be clear from the code what it does.