Writing Clean Code in Swift — Udemy Course

In this course, you will learn how to write Clean Code. Clean code refers to the code that is easy to understand and maintain in the long term. This course is language independent, which means you can use any programming language to follow along.

Let’s take a look at the contents of the course.

Naming

In this section you are going to learn how to name your variables, functions, classes etc. This is one of the most important sections of the course and it sets the tone for the whole course.

Functions

In this section, you will learn how to write reusable functions. You will also learn how to write smaller functions which do only a single job, following the single responsibility principles.

Comments

In this section, you will write how to write good comments and how to avoid bad comments. I am going to show you when you should write comments and when you can remove comments and let your code speak for itself.

Objects and Data Structures

In this section, you will learn multiple ways of writing the same code. First you will implement the code using Object Oriented Principles and then you will implement the same solution using Data Structures.

Error Handling

In this section, you will learn how to handle errors in your application. You will also learn when it is suitable to return nulls from a function and when it is not.

Unit Testing

In this section, you will learn how to write tests for your application. Unit tests allow you to better architect your app and by using test driven development principles you will end up with better and cleaner code.

Classes

In this section, you will learn how to implement Classes in your application. You will learn how to name your classes and how to make sure your classes are small and bounded by context.

This is a great course and after finishing this course, you will be able to write cleaner and more maintainable code.

Let’s get started!

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts. https://www.udemy.com/user/mohammad-azam-2/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store