|
|
|
Ask HN: How to learn to give clear, descriptive names to class, methods etc
|
|
6 points
by jackbean
5506 days ago
|
|
Its one thing I wish I did better when writing code. The names are either obscure or turn into sentences before I can fully express what they try to do. There probably isn't a surefire way to get better at this and something that must be worked on and cultivated. But any advise pointing the way is appreciated. |
|
The strategy I use is to iterate naming, just as I would any other aspect of code. You are unlikely to want to do this as often, but if you find your current names are no longer working for you, it might be time for a change.