Re:Ask HN: How to become good at naming things in code?
by sloaken on Sunday April 05, 2020 @08:27PM
(#22789912)
Try to make the beginning part of the name unique. If you follow the Hungarian notation, put that at the end of the name not the beginning. Bad example strname, straddress, strphone. Better: namestr, addressstr, phonestr.
[ Parent
| on HN ]
Re:Ask HN: How to become good at naming things in code?
by tcbasche on Monday April 06, 2020 @01:50AM
(#22791190)
Arguably both of those are terrible. It's just fluff for no real benefit. Why do you not know what data type those things are?
What's wrong with 'address' or 'phone_number' or something to that effect?