Course Outline
Day 1
Introduction
Good and standardized naming
- Names for packages, files, classes, functions, and variables must be meaningful and derived from their purpose.
- Names should be readable.
- Names should be searchable.
- Consider the namespace being created; does it make logical sense?
Classes, objects, and data structures
- Distinguish between objects that perform actions and structures that simply hold data.
- Understand when and why to use data structures.
- Understand when and why to use objects.
- Overview of OOD (Object-Oriented Design) and abstraction.
- The role of getters/setters and their rationale.
- Prefer many small classes with corresponding small functions.
Effective commenting
- Differentiate between good and bad comments.
- Learn how to write effective comments and disregard unnecessary ones.
Day 2
Functions
- Perform only one task.
- Keep them small.
- Argument usage (effective vs. ineffective).
- Avoid unintended side effects.
Error handling
- Decide when to handle errors directly versus allowing them to propagate.
- Determine the appropriate action and rationale when handling an exception.
- Implement custom error handling classes.
Code formatting: Strategies for better code presentation.
Test-Driven Design: An open discussion on Uncle Bob's philosophy that software development should embrace TDD.
Requirements
No specific prerequisites are required to attend this course.
Custom Corporate Training
Training solutions designed exclusively for businesses.
- Customized Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
- Flexible Schedule: Dates and times adapted to your team's agenda.
- Format: Online (live), In-company (at your offices), or Hybrid.
Price per private group, online live training, starting from 2600 € + VAT*
Contact us for an exact quote and to hear our latest promotions
Testimonials (2)
The teacher addressed many relevant topics for clean coding with practical examples.
Ben van Oeveren - Movella
Course - Clean Code
I really liked that there were a lot of practical exercises in which you could put the learned immediately into action.