Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Things To remember:
- - Give meaningful names to methods and variables.
- - Remove unnecessary spaces
- - Code should be placed where it belongs
- - Redundancy remove
- - if { ….
- } else { ….
- }
- - remove any boolVariable == true/false
- - Change Simple One statement condition to ternary
- - Suppress return value warnings by using don’t care ( _ )
- - Use A common enum for static string
- - Use Extensions and generics for generalised methods
- - Use Private scope for things not accessed outside
- - Keep all the TableViewCell/CollectionViewCell related code in its own class by giving the data it requires in the setup method
- - Don’t use indexPath by passing in the setupCell method for making a particular action based on indexPath(as it can be changed)
- - Try breaking methods into sub methods so that they don’t get bigger and bigger
- - Make a identifier variable in the TableViewCell/CollectionViewCell class denoting its unique identifier
- - Make Good commits by giving the headline and the description as well. Write the description referring to the git diff.
- - Don’t ever use rebase (Personal advice)
Add Comment
Please, Sign In to add comment