Academind-Pro-Kurs
Clean Code
Learn how to write readable, understandable and therefore maintainable code - step by step, in an example-driven way
- 8 Abschnitte · 95 Lektionen
- 6 Std., 40 Min. insgesamt
Über diesen Kurs
Your code works—but when you come back a week later (or a teammate opens it), it suddenly feels harder than it should. You’re not alone: “working” code can still be confusing, fragile, and exhausting to change.
In this course, you’ll build a practical sense for what makes code easy for humans to read and maintain. You’ll see common pain points in real code, then fix them through hands-on “bad to good” transformations backed by examples, snippets, and demos.
By the end, you’ll be able to look at a messy piece of code and systematically improve it: make intent obvious, reduce surprises, keep changes local, and leave behind code your future self (and colleagues) can confidently extend.
Was du lernst
You’ll apply clean-code rules and principles across real code examples (Python, JavaScript, TypeScript) without relying on any single language or paradigm.
- 01
Name with intent
Write clear names for variables, properties, classes, and functions, and spot common naming pitfalls. You’ll make code self-explanatory so readers don’t need extra mental decoding.
- 02
Comment with purpose
Decide when comments are harmful noise and remove them confidently. When a comment is truly useful, you’ll write the kind that adds value instead of repeating the code.
- 03
Format for readability
Use horizontal and vertical formatting to guide the reader’s eye through a file. You’ll structure code so important ideas stand out and related logic stays visually grouped.
- 04
Design clean functions
Keep functions focused on one thing, control parameter counts, and use levels of abstraction to split logic into small, readable units. You’ll also write DRY code while avoiding unexpected side effects.
- 05
Simplify control flow
Replace deeply nested control structures with guards and extracted functions. You’ll also use errors and error handling as a cleaner alternative to sprawling
if-chains. - 06
Structure maintainable classes
Differentiate objects vs data containers/data structures and use cohesion to keep classes small and focused. You’ll apply the Law of Demeter and understand how SOLID supports clean, maintainable code.
Voraussetzungen
Basic programming knowledge in any language.
No prior experience with clean code is required.
You don’t need to know a specific programming language or paradigm.
Für wen dieser Kurs ist
Working developers
You can ship features, but you’re tired of codebases that become harder to touch over time. This course helps you write code your team can read, trust, and maintain.
Early-career programmers
You’ve learned to make programs run, but you’re unsure what “good code” looks like in real life. You’ll get a clear set of rules and examples you can apply immediately.
Serious builders
You’re not coding just for practice—you want habits that hold up in real projects. This course gives you a practical way to improve code quality without needing a specific language background.
Lehrplan
Sieh dir Aufbau und Tempo dieses Kurses an, bevor du startest.
1Getting Started12 Lektionen · 31 Min.
- 01Welcome to the Course!2:27 Min.
- 02What is "Clean Code"?5:57 Min.
- 03Clean Code - Key Pain Points & How To Write Clean Code3:31 Min.
- 04How Is This Course Structured?1:22 Min.
- 05Course Prerequisites3:16 Min.
- 06Clean Code & Strongly Typed Languages2:31 Min.
- 07About The Course Code Examples2:04 Min.
- 08Functional, OOP, Procedural: The Course Concepts Always Apply!1:29 Min.
- 09Clean Code, Principles & Patterns & Clean Architecture3:17 Min.
- 10Clean Code vs Quick Code5:01 Min.
- 11Module & Course Resources0:00 Min.
- 12The Academind Pro Referral Program0:00 Min.
2Naming - Assigning Names to Variables, Functions, Classes & More16 Lektionen · 1 Std., 6 Min.
- 01Module Introduction1:01 Min.
- 02Why Good Names Matter3:23 Min.
- 03Choosing Good Names4:03 Min.
- 04Casing Conventions & Programming Languages3:07 Min.
- 05Naming Variables & Properties - Theory3:48 Min.
- 06Naming Variables & Properties - Examples4:44 Min.
- 07Naming Functions & Methods - Theory2:36 Min.
- 08Naming Functions & Methods - Examples3:10 Min.
- 09Naming Classes - Theory1:56 Min.
- 10Naming Classes - Examples2:34 Min.
- 11Exceptions You Should Be Aware Of6:24 Min.
- 12Common Errors & Pitfalls7:50 Min.
- 13Demo Time!10:29 Min.
- 14Your Challenge - Problem1:11 Min.
- 15Your Challenge - Solution10:01 Min.
- 16Module Resources0:00 Min.
3Code Structure, Comments & Formatting10 Lektionen · 32 Min.
- 01Module Introduction1:06 Min.
- 02Bad Comments3:52 Min.
- 03Good Comments3:50 Min.
- 04What is "Code Formatting" Really About?2:26 Min.
- 05Vertical Formatting8:03 Min.
- 06Formatting: Language-specific Considerations2:03 Min.
- 07Horizontal Formatting3:36 Min.
- 08Your Challenge - Problem1:01 Min.
- 09Your Challenge - Solution6:19 Min.
- 10Module Resources0:00 Min.
4Functions & Methods20 Lektionen · 1 Std., 45 Min.
- 01Module Introduction1:12 Min.
- 02Analyzing Key Function Parts1:38 Min.
- 03Keep The Number Of Parameters Low!6:38 Min.
- 04Refactoring Function Parameters - Ideas & Concepts3:43 Min.
- 05When One Parameter Is Just Right2:12 Min.
- 06Two Parameters & When To Refactor4:07 Min.
- 07Dealing With Too Many Values4:26 Min.
- 08Functions With A Dynamic Number Of Parameters2:41 Min.
- 09Beware Of "Output Parameters"4:19 Min.
- 10Functions Should Do One Thing!9:51 Min.
- 11Why "Levels of Abstraction" Matter6:11 Min.
- 12When Should You Split?2:51 Min.
- 13Demo & Challenge13:09 Min.
- 14Stay DRY - Don't Repeat Yourself2:03 Min.
- 15Splitting Functions To Stay DRY5:41 Min.
- 16Don't Overdo It - Avoid Useless Extractions6:51 Min.
- 17Understanding & Avoiding (Unexpected) Side Effects12:01 Min.
- 18Side Effects - A Challenge9:21 Min.
- 19Why Unit Tests Matter & Help A Lot!6:15 Min.
- 20Module Resources0:00 Min.
5Control Structures & Errors17 Lektionen · 1 Std., 10 Min.
- 01Module Introduction2:52 Min.
- 02Useful Concepts - An Overview1:22 Min.
- 03Introducing "Guards"2:53 Min.
- 04Guards In Action6:33 Min.
- 05Extracting Control Structures & Preferring Positive Phrasing3:17 Min.
- 06Extracting Control Structures Into Functions4:03 Min.
- 07Writing Clean Functions With Control Structures7:32 Min.
- 08Inverting Conditional Logic8:07 Min.
- 09Embrace Errors & Error Handling6:57 Min.
- 10Creating More Error Guards4:27 Min.
- 11Extracting Validation Code4:10 Min.
- 12Error Handling Is One Thing!3:35 Min.
- 13Using Factory Functions & Polymorphism8:56 Min.
- 14Working with Default Parameters1:14 Min.
- 15Avoid Magic Numbers & Strings0:00 Min.
- 16Module Summary3:37 Min.
- 17Module Resources0:00 Min.
6Objects, Classes & Data Containers / Structures15 Lektionen · 1 Std., 20 Min.
- 01Module Introduction1:42 Min.
- 02Important: This is NOT an OOP or "Patterns & Principles" Course!2:14 Min.
- 03Objects vs Data Containers / Data Structures4:10 Min.
- 04Why The Differentiation Matters3:57 Min.
- 05Classes & Polymorphism12:54 Min.
- 06Classes Should Be Small!6:20 Min.
- 07Understanding "Cohesion"4:49 Min.
- 08The "Law Of Demeter" And Why You Should "Tell, Not Ask"11:40 Min.
- 09The SOLID Principles2:05 Min.
- 10The Single-Responsibility-Principle (SRP) & Why It Matters7:04 Min.
- 11The Open-Closed Principle (OCP) & Why It Matters5:43 Min.
- 12The Liskov Substitution Principle5:56 Min.
- 13The Interface Segregation Principle4:18 Min.
- 14The Dependency Inversion Principle7:00 Min.
- 15Module Resources0:00 Min.
7Summary & Checklist1 Lektion · 9 Min.
- 01Concepts Summary & Checklist9:05 Min.
8Course Roundup4 Lektionen · 7 Min.
- 01Staying Clean!2:56 Min.
- 02Possible Next Steps2:43 Min.
- 03Thanks & Goodbye!1:14 Min.
- 04Bonus!0:00 Min.
Bereit loszulegen?
Kaufe diesen Kurs auf Academind Pro oder hol dir mit All Access auf Academind Infinite alle Kurse.
Dieser Kurs auf Academind Pro
89 $einmalig
Inkl. MwSt. · 30 Tage Geld-zurück-Garantie
- Lebenslanger Zugriff auf diesen Kurs
- Alle künftigen Updates dieses Kurses
- Downloads, Code und ein Zertifikat
All Access auf Academind Infinite
25 $im Monat
oder
249 $249 $ im JahrSpare 17 %- Jeder Kurs, mit allen Funktionen
- Neue Kurse, sobald sie kommen
- Dein Tutor, mit allen Funktionen
All Access enthält außerdem jeden Academind Pro-Kurs.