Table of Contents
Clean code, TDD, refactoring
Čistý kód (clean code)
TDD
Refactoring
Clean code, TDD, refactoring
Čistý kód (clean code)
Clean Code
Uncle Bob: Clean Code Lecture series
Založeno na knize Clean Code. Krátké úryvky níže.
What is Clean Code?
(a
delší a rychlejší verze
s příkladem refactoringu)
How long should a variable name be?
How small should a function be?
What is the purpose of a comment?
How many arguments should a function have?
Why boolean arguments should be avoided?
What's the problem with switch statements?
Ne každý souhlasí se všemi názory Uncle Boba, viz např. tato
kritika knihy Clean Code
a komentáře pod ní.
TDD
TDD is double-entry accounting
Why you should write tests first
Is TDD Slow?
TDD of a stack
Refactoring
Refactoring
Code smells
Martin Fowler: How to refactor code the right way?
Webová stránky knihy
Refactoring: Improving the Design of Existing Code
Martina Fowlera (kde si můžete stáhnout
první kapitolu
s příkladem refactoringu části kódu, který pro divadelní společnost tiskne účet pro jednotlivé klienty.