Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As someone who works on a codebase with almost no comments, please leave a comment for every block of code that does something and explain why (1 comment for every 5 or 10 lines of code should be fine).

And for regex you have this in some languages: https://docs.python.org/3/library/re.html#re.X



Please include any technical and especially business reasons in the ”why”, please.




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

Search: