3 ms·
When you use it right, brevity is clarity. I'm all for descriptive names, but the elaborate wording in those method names is like writing "utilize" when you cou
by Stratoscope 14y ago
When you use it right, brevity is clarity. I'm all for descriptive names, but the elaborate wording in those method names is like writing "utilize" when you could have said "use".
Utilize, upward, starting at, finished writing
vs.
Use, up, from, wrote
So:
def shift_records_upward_starting_at(position)
could be:
def shift_records_up_from(position)
and:
def someone_else_just_finished_writing?(document)
could be:
def other_user_just_wrote?(document)
I don't think the shorter versions are any less clear.
- nonrecursive 14y agoI really like your revisions. While I agree with the spirit of the 37s post, I've found that megalong method names like the ones they listed are hard to reason about simply because they take up more human memory, thus making it harder to hold other objects in memory at the same time in order to compare.