Programming Best Practices Lecture

To Read

Sections 6.1-6.4 of A First Course in Object Oriented Development.

Recording, Part 1

Programming Best Practices Lecture, Part 1

Content, Part 1

00:00 Content of seminar 3
01:40 Content of this lecture
02:17 Dividing the code into packages
07:19 Code conventions
10:05 Comments
14:11 Exercise in comments
17:58 Introduction to code smell and refactoring
20:07 Code smell: duplicated code
26:21 Exercise in duplicated code
28:56 Code smell: long method
33:28 Exercise in long method
38:44 Code smell: large class

Recording, Part 1

Programming Best Practices Lecture, Part 2

Content, Part 2

00:00 Code smell: long parameter list
08:26 Exercise in long parameter list
12:16 Code smell: Too much primitive data
23:04 Exercise in primitive data
27:25 Code smell: meaningless names
31:31 Exercise in meaningless names
34:04 Code smell: anonymous values
37:45 Exercise in anonymous values

Solutions to Exercises

Here's a NetBeans project with the code that was written during the exercises, refact-exe-solution.zip