|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/clean-code-java/
课程评论:没有评论
课程名称:Java实例的整洁代码 课程概述:本课程旨在教授有用的整洁代码原则,帮助你在编写代码时随时应用。课程中包含Java示例,偶尔提及Spring和Lombok等技术。这些整洁代码原则同样适用于PHP、C#和Python。通过本课程,你可以为公司和自己节省大量开发时间,从而节省大量金钱。糟糕的编码实践会使中大型项目的开发进度变得非常缓慢,导致大量开发时间的浪费,同时这些项目也常常让人感到不愉快。该课程通过使用整洁代码原则,帮助你避免这些问题。 课程结构分为四个部分: 1. 引言 - 讨论什么是整洁代码及其重要性。 2. 小函数 - 专门讲解小函数,因为我认为它是整洁代码最重要的原则之一,其他原则如小类、单一职责原则和不同抽象级别不交叉也在此部分提及。 3. 整洁代码:基本原则 - 讨论方法和变量命名、参数、注释和异常等基本内容。 4. 整洁代码:高级原则 - 探讨更抽象的话题,如OOP对象与数据结构对象的区别、组合优于继承、糟糕代码的症状、状态、低耦合高内聚、命令与查询分离、告知而不询问、德默法则等。 课程中还包含一些幽默元素,因为整洁代码中不可或缺的是乐趣。我努力专注于日常编程中可用的内容,避免无用的理论知识,让你在投资两小时后,收获颇丰,成为更优秀的开发者。此课程的信息量丰富而不过于冗长,相当于观看一部电影的时间。
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.The course has Java examples and I sometimes mention things like Spring and Lombok. The same clean code principles apply also to PHP, C# and Python.What can this course do for you? It can save your company and yourself a lot of development time and therefore a lot of money. How? Bad code practices can make development very slow on your medium and big projects. This means a lot of money wasted on development time.This type of projects are also remarkably unpleasant to work on.This course helps you avoid this by using clean code principles. 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 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.