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

My understanding is that shortened variable names are recommended for small, tight contexts (loops, short functions) but not generally.


That and conventionally standard names, like r for request/reader, w for writer, etc.

Agreed. Functions shouldn’t be full of short non-descriptly named variables.

The longer the lifetime/scope of a variable, and the more variables there are, the more descriptive the names should be.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: