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

The most recent breakthrough in my coding style has been naming methods and variables so that documentation of anything other than input expectations is largely unnecessary.

In your example something like textByRepeatingText(text, times)



Sorry but I had to think really hard to figure how the name textByRepeatingText could have been thought up.

It might fits your thinking, but it certainly doesn't mine. Documentation is the common language (hopefully).




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

Search: