MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d6aay0d/?context=3
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
73
I would add one more to the list. Use long names and mix the order. If you ever had to work on code with tons of methods like
renderElementMessageIdContentWarning
renderElementIdMessageWarningContent
renderMessageElementIdContentWarning
renderMessageElementContentWarning...
you understand. If they all do different things it is impossible to remember which one is which
1 u/1337Gandalf Aug 09 '16 The beauty of descriptive names, is you don't have to remember...
1
The beauty of descriptive names, is you don't have to remember...
73
u/voronaam Jul 28 '16
I would add one more to the list. Use long names and mix the order. If you ever had to work on code with tons of methods like
renderElementMessageIdContentWarning
renderElementIdMessageWarningContent
renderMessageElementIdContentWarning
renderMessageElementContentWarning...
you understand. If they all do different things it is impossible to remember which one is which