Hacker News new | past | comments | ask | show | jobs | submit login

Do you then document the new function, though?



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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: