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

    def group_by_interval(timestamps, interval_duration)
        # do the stuff
Why does this require a comment?


Who said require? I said it's nice to any future reader explain the algorithm if the implementation is complex. I've certainly benefited from such explanations in code.




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

Search: