メインコンテンツへスキップ
Academind
すべてのコース

Academind Proのコース

Clean Code

Learn how to write readable, understandable and therefore maintainable code - step by step, in an example-driven way

  • 8セクション · 95件のレクチャー
  • 合計6 時間 40 分
Clean Code

このコースについて

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.

学べること

You’ll apply clean-code rules and principles across real code examples (Python, JavaScript, TypeScript) without relying on any single language or paradigm.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

前提条件

  • 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.

このコースの対象者

  • 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.

カリキュラム

始める前に、このコースの構成とペースをご確認ください。

  1. 1Getting Started12件のレクチャー · 31 分
    1. 01Welcome to the Course!2:27分
    2. 02What is "Clean Code"?5:57分
    3. 03Clean Code - Key Pain Points & How To Write Clean Code3:31分
    4. 04How Is This Course Structured?1:22分
    5. 05Course Prerequisites3:16分
    6. 06Clean Code & Strongly Typed Languages2:31分
    7. 07About The Course Code Examples2:04分
    8. 08Functional, OOP, Procedural: The Course Concepts Always Apply!1:29分
    9. 09Clean Code, Principles & Patterns & Clean Architecture3:17分
    10. 10Clean Code vs Quick Code5:01分
    11. 11Module & Course Resources0:00分
    12. 12The Academind Pro Referral Program0:00分
  2. 2Naming - Assigning Names to Variables, Functions, Classes & More16件のレクチャー · 1 時間 6 分
    1. 01Module Introduction1:01分
    2. 02Why Good Names Matter3:23分
    3. 03Choosing Good Names4:03分
    4. 04Casing Conventions & Programming Languages3:07分
    5. 05Naming Variables & Properties - Theory3:48分
    6. 06Naming Variables & Properties - Examples4:44分
    7. 07Naming Functions & Methods - Theory2:36分
    8. 08Naming Functions & Methods - Examples3:10分
    9. 09Naming Classes - Theory1:56分
    10. 10Naming Classes - Examples2:34分
    11. 11Exceptions You Should Be Aware Of6:24分
    12. 12Common Errors & Pitfalls7:50分
    13. 13Demo Time!10:29分
    14. 14Your Challenge - Problem1:11分
    15. 15Your Challenge - Solution10:01分
    16. 16Module Resources0:00分
  3. 3Code Structure, Comments & Formatting10件のレクチャー · 32 分
    1. 01Module Introduction1:06分
    2. 02Bad Comments3:52分
    3. 03Good Comments3:50分
    4. 04What is "Code Formatting" Really About?2:26分
    5. 05Vertical Formatting8:03分
    6. 06Formatting: Language-specific Considerations2:03分
    7. 07Horizontal Formatting3:36分
    8. 08Your Challenge - Problem1:01分
    9. 09Your Challenge - Solution6:19分
    10. 10Module Resources0:00分
  4. 4Functions & Methods20件のレクチャー · 1 時間 45 分
    1. 01Module Introduction1:12分
    2. 02Analyzing Key Function Parts1:38分
    3. 03Keep The Number Of Parameters Low!6:38分
    4. 04Refactoring Function Parameters - Ideas & Concepts3:43分
    5. 05When One Parameter Is Just Right2:12分
    6. 06Two Parameters & When To Refactor4:07分
    7. 07Dealing With Too Many Values4:26分
    8. 08Functions With A Dynamic Number Of Parameters2:41分
    9. 09Beware Of "Output Parameters"4:19分
    10. 10Functions Should Do One Thing!9:51分
    11. 11Why "Levels of Abstraction" Matter6:11分
    12. 12When Should You Split?2:51分
    13. 13Demo & Challenge13:09分
    14. 14Stay DRY - Don't Repeat Yourself2:03分
    15. 15Splitting Functions To Stay DRY5:41分
    16. 16Don't Overdo It - Avoid Useless Extractions6:51分
    17. 17Understanding & Avoiding (Unexpected) Side Effects12:01分
    18. 18Side Effects - A Challenge9:21分
    19. 19Why Unit Tests Matter & Help A Lot!6:15分
    20. 20Module Resources0:00分
  5. 5Control Structures & Errors17件のレクチャー · 1 時間 10 分
    1. 01Module Introduction2:52分
    2. 02Useful Concepts - An Overview1:22分
    3. 03Introducing "Guards"2:53分
    4. 04Guards In Action6:33分
    5. 05Extracting Control Structures & Preferring Positive Phrasing3:17分
    6. 06Extracting Control Structures Into Functions4:03分
    7. 07Writing Clean Functions With Control Structures7:32分
    8. 08Inverting Conditional Logic8:07分
    9. 09Embrace Errors & Error Handling6:57分
    10. 10Creating More Error Guards4:27分
    11. 11Extracting Validation Code4:10分
    12. 12Error Handling Is One Thing!3:35分
    13. 13Using Factory Functions & Polymorphism8:56分
    14. 14Working with Default Parameters1:14分
    15. 15Avoid Magic Numbers & Strings0:00分
    16. 16Module Summary3:37分
    17. 17Module Resources0:00分
  6. 6Objects, Classes & Data Containers / Structures15件のレクチャー · 1 時間 20 分
    1. 01Module Introduction1:42分
    2. 02Important: This is NOT an OOP or "Patterns & Principles" Course!2:14分
    3. 03Objects vs Data Containers / Data Structures4:10分
    4. 04Why The Differentiation Matters3:57分
    5. 05Classes & Polymorphism12:54分
    6. 06Classes Should Be Small!6:20分
    7. 07Understanding "Cohesion"4:49分
    8. 08The "Law Of Demeter" And Why You Should "Tell, Not Ask"11:40分
    9. 09The SOLID Principles2:05分
    10. 10The Single-Responsibility-Principle (SRP) & Why It Matters7:04分
    11. 11The Open-Closed Principle (OCP) & Why It Matters5:43分
    12. 12The Liskov Substitution Principle5:56分
    13. 13The Interface Segregation Principle4:18分
    14. 14The Dependency Inversion Principle7:00分
    15. 15Module Resources0:00分
  7. 7Summary & Checklist1件のレクチャー · 9 分
    1. 01Concepts Summary & Checklist9:05分
  8. 8Course Roundup4件のレクチャー · 7 分
    1. 01Staying Clean!2:56分
    2. 02Possible Next Steps2:43分
    3. 03Thanks & Goodbye!1:14分
    4. 04Bonus!0:00分

始める準備はできましたか?

このコースをAcademind Proで購入するか、Academind InfiniteのAll Accessですべてのコースを利用しましょう。

ブラックフライデー: All Access 1年分が $249 $249 · までの限定価格セール価格で購入する
  • Academind Proでこのコースを購入

    $89買い切り

    税込 · 30日間返金保証

    • このコースへの無期限アクセス
    • このコースの今後のアップデートすべて
    • ダウンロード資料、コード、修了証
    Clean Codeを購入
  • Academind InfiniteのAll Access

    $25/月

    または$249 $249 /年17%お得

    • すべてのコースを、すべての機能付きで
    • 新しいコースも随時追加
    • チューター(すべての機能)
    All Accessを始める

All Accessには、Academind Proのすべてのコースも含まれます。

Academind ProとAcademind Infinite

コースもログインもそれぞれ別の、2つのプラットフォームです。

Academind Pro

pro.academind.comにある、これまでのコースプラットフォームです。Proのサブスクリプションとご購入のコースは、引き続きProでご利用いただけます。

Academind Proにログイン

Academind Infinite

AIファーストの新しいプラットフォームです。ProメンバーはProのアカウントでログインできます。Pro All AccessにはInfiniteも含まれ、すべてのコースを受講できます。

Academind Infiniteにログイン

Proのアカウントをお持ちか、Proでコースをご購入済みですか?

Infiniteに移ったのは、Proのコースの一部だけです。お持ちのコースを選んで、Infiniteでのページを開いてください。