Coding in Style
4.4 (14 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,304 students enrolled

Coding in Style

Improve your code with few simple techniques
4.4 (14 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,304 students enrolled
Created by Dragos Ionel
Last updated 11/2018
English
English [Auto-generated]
Price: Free
This course includes
  • 1 hour on-demand video
  • 23 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What you'll learn
  • The students will drastically improve the clarity, efficiency and maintainability of the code they write.
Requirements
  • Basic knowledge in on programming languages. While the presentations will use Swift as example, the information is general.
Description

Learning how to write code does not finish when a programmer learns a new programming language.

On the contrary, the interesting part just starts then.

He or she needs to learn what is the best way to write the code in that language so it is easy to understand and to maintain.

The course  teaches you lots of small secrets that will tremendously improve your code.

Each lesson will show you an example, teach you how to improve it, and explain you the reason for it.

Who this course is for:
  • Beginner and intermediate level developers who are looking to improve their code.
Course content
Expand all 53 lectures 01:10:02
+ Introduction
4 lectures 07:50
Introduction
01:59
When is your code finished?
1 question
When is the code finished quiz answer
00:55
Code quiz
00:30
Refactoring
04:26
+ Code formatting
9 lectures 06:05
Code formatting - introduction
01:13
Code quiz
00:11
Indenting
00:40
Code quiz
00:13
Empty lines
00:36
Code quiz
00:09
Spaces
02:05
Code quiz
00:05
Line length
00:52
+ Naming
21 lectures 25:11

In this section we are talking about naming. A name might not seem important when you write the code, but after a while, a good name has a tremendous importance.

Why is the name important
01:01
Code quiz
00:05
Capitalization
01:19
Code quiz
00:05
For variables and constants, use nouns. For functions, use verbs.
02:08
Code quiz
00:08
Make the code clear so comments are not needed
02:38
Code quiz
00:06
Be specific
01:53
Code quiz
00:09
define the variable in the smallest context possible
05:04
Code quiz
00:03
Shorten the variables, but not too much
02:09
Code quiz
00:07
Use long variables but not too long. Remove useless words
01:46
Code quiz
00:06
Do not use negations
01:30
Code quiz
00:06
Misleading names
03:02
Code quiz
00:07
Don't be creative, don’t be a funny guy
01:35
+ Comments
10 lectures 07:30
Introduction
01:36
Code quiz
00:11
Document “Why”
01:51
Code quiz
00:08
Only if needed
00:48
Code quiz
00:04
Do not comment junk
00:52
Code quiz
00:14
Don’t track the history
01:05
Conclusion
00:40
+ Coding with Grace
9 lectures 24:23
Introduction
01:15
Code quiz
00:20
Do not repeat yourself
05:58
Code quiz
00:11
Write only pure functions
02:57
Code quiz
00:15
Keep the private parts private
03:31
Code quiz
00:29
Reduce the cyclomatic complexity
09:26