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

> One letter variables are supposed to be used in scopes that fit on the screen completely.

Exactly, and ideally in less space than that. If you have something like:

  for (i=0; i<10; i++) {
      foo(i);
      bar(i);
  }
There is no point in using a "descriptive" name for the index. It's completely obvious what's going on. Anything more verbose would just hamper readability.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: