Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork927
Open
Description
One major contributor of code smell (in my opinion) is code that superfluously includes the type of the thing in its name. (e.g.List itemList, orCREATE TABLE itemTable instead of justitems). This goes hand-in-hand with the "avoid context-duplication" rule too.
One edge-case to consider is date type variables- whereby you may haveitem.dateAdded, and simply removing the type from the name leaves you withitem.added, which is very unclear (sounds more like a boolean flag set if the item has been added). My personal preference is to follow the form of At. So,dateAdded would beaddedAt. This defies the A/HC/LC pattern somewhat however, so take it as you will.
Metadata
Metadata
Assignees
Labels
No labels