Hacker News new | ask | show | jobs
by cdubzzz 1832 days ago
Do you then document the new function, though?
2 comments

You've heard the XTreme slogan "Where you would write a comment, we would write a method"?
I think the function name is pretty self documenting, I would go a step further and make a function named addScrollBars() clear on its intention here
Sure. Agreed. But I still docblock every function I write so this wouldn’t change much with respect to usefulness of the documentation.