Clean Code with PHP examples

所在平台: Udemy

课程主页: https://www.udemy.com/course/clean-code-php/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:使用PHP示例的整洁代码 课程概述:本课程旨在教授有用的整洁代码原则,帮助您在编写代码时应用这些概念。整洁代码将帮助您:编写更好的PHP代码,成为更优秀的PHP程序员;创建易于维护的项目;在面试中展现对高级编程概念的了解。课程中包含PHP示例,并提及Symfony和MVC等内容。 课程结构分为四个部分: 1. **引言** - 讨论什么是整洁代码以及其重要性。 2. **小函数** - 专门讨论小函数,因为我认为这是整洁代码中最重要的原则之一,此外还有小类、单一责任原则和不同抽象层次的分隔。 3. **整洁代码:基本原则** - 讨论方法和变量命名、参数、注释和异常等基本内容。 4. **整洁代码:高级原则** - 涉及更抽象的主题,如面向对象对象与数据结构对象的区别、组合优于继承、差代码的症状、状态、低耦合高内聚、命令与查询分离、告知而不是询问、德梅特法则、YAGNI等。 课程中有一些幽默的元素,因为我相信学习整洁代码也可以充满乐趣。我尝试关注您在编程时每天都能使用的内容,避免无用的理论知识。如果您用两个小时的时间来学习这门课,您将成为一个更优秀的开发者,这段时间与看一部电影相似。 总之,本课程不仅信息丰富,而且简洁高效,适合希望提升编程技能的开发者。

课程评论(0条)

课程详情

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.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 conceptsThe 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 important2. 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 exceptions4. 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.

课程标签

0人关注该课程

主题相关的课程