Udemy

Clean Code with PHP examples

立即報名
  • 8,658 名學生
  • 更新於 1/2026
4.2
(60 個評分)
  • 提示:
  • 透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期*
全年招生
課程級別
學習模式
修業期
1 小時 55 分鐘
教學語言
英語
授課導師
Liviu Oprisan
評分
4.2
(60 個評分)
課程連結
*提示: 以上時間表僅供參考,以機構網站為準。

課程簡介

Clean Code with PHP examples

Learn Clean Code to become a better PHP developer, write easy to maintain code and do better at interviews.

This is a course about useful clean code principles.
My aim is to teach you concepts that you can use every time you write code.

In the last section I also provide a file to put in your AI agent context to help it write more maintainable code.

Clean Code can help you:

- Write better PHP code and thus become a better PHP programmer

- Create easy to maintain projects

- Perform better during interviews by showing knowledge of advanced programming concepts


The course has PHP examples and I sometimes mention things like Symfony and MVC.


The course is structured in 4 parts:

1. Introduction - where we discuss what is clean code and why it's important

2. Small Functions - I gave small functions an entire section because I think its one of the most important principles of clean code, together with small classes, Single Responsibility Principle and Not crossing Different Levels of Abstraction.

3. Clean code: Fundamental Principles - I discuss here about fundamental things like method and variables names, parameters, comments and exceptions

4. Clean code: Advanced Principles - Here I talk about more abstract topics like the difference between an OOP Object and a Data Structure Object, Composition over Inheritance, Symptoms of Bad Code, State, Low Coupling - High Cohesion, Command and Query Separation, Tell Don't Ask, The Law of Demeter, YAGNI and more.

The course also contains some memes because you can't spell clean code without fun.

I tried to focus on things you can use every day when programming and stay away from barren theory.
There's no point wasting our time with useless knowledge that would just seem like it's helping you as a programmer, but that you will forget in 2 weeks.
If that would have been the point, this would be a 10 hours course about programming patterns.
But it isn't.

I tried to make the course full of useful information but not too long.
If you invest as little as two hours of your life in this course, about the time you would spend watching a movie, you will become a much better developer.

課程章節

  • 5 個章節
  • 26 堂課
  • 第 1 章 Introduction
  • 第 2 章 Clean code: Small functions
  • 第 3 章 Clean code: Fundamental principles
  • 第 4 章 Clean code: Advanced principles
  • 第 5 章 Clean Code for AI

課程內容

  • How to write clean code in PHP, Why it's important to keep functions small, How to name variables, functions and classes, How many parameters a functions should have, How clean code affected MVC, How to beautify predicates, Why comments are bad and when you can use them, The difference between an OOP object and a Data Structure Object, Why composition is good and inheritance is bad, What are the symptoms of bad code, What state is and why it's important, Why your code should have low coupling and high cohesion, How to avoid spaghetti code, What are Command and Query separation, Tell Don't Ask and The Law of Demeter, How over-engineering is not a solution to bad code

此課程所涵蓋的技能


評價

  • P
    Prima Wirawan
    5.0

    nice topik

  • M
    Michael Belete
    5.0

    good job

  • C
    Claython Remboski Duarte
    4.0

    It's a good course. I was expecting a bit more coding, but I understand now that the goal is more about convincing us to use clean code and showing just a few examples of how to do it. I recommend it, it's interesting.

  • A
    Abbas Totah
    3.5

    I think this course is missing examples of good and bad code, in general, it's good.

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策與使用條款才繼續瀏覽。

我已閱讀及同意