Course Code: cleanc
Duration: 14 hours
Prerequisites:

There are no specific requirements needed to attend this course.

Overview:

Why do we need Clean Code? Programs evolve, therefore the code is continuously updated it can be very, very difficult to go back through unclean code to find and update the source code on average, the cost of writing the original code is only 40% of the total cost of a system; 60% of the cost, on average, is spent maintaining and updating code. Bad code dramatically increases that 40/60 ratio, bordering on 20/80 in the worst cases; the more unclean the code is, the more time we just spend updating it.

Course Outline:

Day 1

Introduction

Good and standardized naming

-names of packages, files, classes, voids and functions as well as variables need to have meaningful names derived from their purpose

-should be readable

-should be searchable

-consider the namespace we're generating; does it make sense?

Classes, objects and data structures

-there's a difference between objects that do something and structures that simply contain data

-when to use data structures, and why

-when to use objects, and why

-OOD and abastraction

-getters/setters and why

-better to have many small classes, with many small voids and functions

Good comments

-there are good and bad comments;

-we need to know how to generate good comments and forget about the rest

Day 2

Functions

-one thing only

-small

-arguments (good and bad)

-unintended side effects

Error handling

-when to handle errors, when to let them bubble up

-if we handle an exception, what do we do with it and why

-custom error handling classes

Code Formatting: how can we better format the code

Test-Driven Design: Open discussion of Uncle Bob's idea that programs should be TDD

Sites Published:

United Arab Emirates - Clean Code

Qatar - Clean Code

Egypt - Clean Code

Saudi Arabia - Clean Code

South Africa - Clean Code

Brasil - Clean Code

Canada - Clean Code

中国 - Clean Code

香港 - Clean Code

澳門 - Clean Code

台灣 - Clean Code

USA - Clean Code

Österreich - Clean Code

Schweiz - Clean Code

Deutschland - Clean Code

Czech Republic - Clean Code

Denmark - Clean Code

Estonia - Clean Code

Finland - Clean Code

Greece - Clean Code

Magyarország - Clean Code

Ireland - Clean Code

Luxembourg - Clean Code

Latvia - Clean Code

España - Código limpio

Italia - Clean Code

Lithuania - Clean Code

Nederland - Clean Code

Norway - Clean Code

Portugal - Clean Code

România - Clean Code

Sverige - Clean Code

Türkiye - Clean Code

Malta - Clean Code

Belgique - Clean Code

France - Clean Code

日本 - Clean Code

Australia - Clean Code

Malaysia - Clean Code

New Zealand - Clean Code

Philippines - Clean Code

Singapore - Clean Code

Thailand - Clean Code

Vietnam - Clean Code

India - Clean Code

Argentina - Código limpio

Chile - Código limpio

Costa Rica - Código limpio

Ecuador - Código limpio

Guatemala - Código limpio

Colombia - Código limpio

México - Código limpio

Panama - Código limpio

Peru - Código limpio

Uruguay - Código limpio

Venezuela - Código limpio

Polska - Clean Code

United Kingdom - Clean Code

South Korea - Clean Code

Pakistan - Clean Code

Sri Lanka - Clean Code

Bulgaria - Clean Code

Bolivia - Código limpio

Indonesia - Clean Code

Kazakhstan - Clean Code

Moldova - Clean Code

Morocco - Clean Code

Tunisia - Clean Code

Kuwait - Clean Code

Oman - Clean Code

Slovakia - Clean Code

Kenya - Clean Code

Nigeria - Clean Code

Botswana - Clean Code

Slovenia - Clean Code

Croatia - Clean Code

Serbia - Clean Code

Bhutan - Clean Code

Nepal - Clean Code

Uzbekistan - Clean Code