Best coding practices for iOS developer

  1. Keep methods small and should perform single logic.
  2. Use proper and meaningful naming conventions.
  3. Use constant instead of hardcoded string.
  4. Use generics to avoid repeated code.
  5. Use reduce function
  6. Use closure whenever required to avoid repeated code  : https://sandeshsardar.com/2017/01/08/closure-in-ios-swift/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s