Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nendroid
on Oct 16, 2020
|
parent
|
context
|
favorite
| on:
What does code readability mean? (2018)
You want to encode as much context into the name as possible without breaking abstraction. Meaning that the definition of the function should not be part of the name. Only the API of the function and context should be encoded into the name.
So for example:
areaOfTwoDimensionalBox
is better than:
area
is better than:
widthOfBox_times_heightOfBox
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:
So for example:
is better than: is better than: