Guest User

Untitled

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