Writing Clean Code

所在平台: Udemy

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

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 编写整洁的代码 (Writing Clean Code) **课程概述:** 本课程旨在教授学员如何编写“整洁的代码”,即易于理解和长期维护的代码。课程内容独立于具体编程语言,学员可以使用任何编程语言进行学习。 **课程内容重点:** * **命名 (Naming):** 学习如何为变量、函数、类等选择恰当的名称。本部分是整个课程的基石,对后续内容有重要影响。 * **函数 (Functions):** 学习如何编写可复用的、小型且遵循单一职责原则的函数,即每个函数只做一件事情。 * **错误处理 (Error Handling):** 学习如何在应用程序中有效地处理错误,并理解何时可以返回 `null`,何时不适合。 * **单元测试 (Unit Testing):** 学习编写应用程序的单元测试。掌握测试驱动开发 (TDD) 原则,有助于更好地构建应用程序架构,最终产出更优质、更整洁的代码。 * **类 (Classes):** 学习如何在应用程序中实现类,包括如何为类命名,以及如何确保类做到小型化并边界清晰(bounded by context)。 **课程目标:** 完成本课程后,学员将能够编写更整洁、更易于维护的代码。

课程评论(0条)

课程详情

In this course, you will learn how to write Clean Code. Clean code refers to the code that is easy to understand and maintain in the long term. This course is language independent, which means you can use any programming language to follow along.Let's take a look at the contents of the course.NamingIn this section you are going to learn how to name your variables, functions, classes etc. This is one of the most important sections of the course and it sets the tone for the whole course.FunctionsIn this section, you will learn how to write reusable functions. You will also learn how to write smaller functions which do only a single job, following the single responsibility principles.Error HandlingIn this section, you will learn how to handle errors in your application. You will also learn when it is suitable to return nulls from a function and when it is not. Unit TestingIn this section, you will learn how to write tests for your application. Unit tests allow you to better architect your app and by using test driven development principles you will end up with better and cleaner code.ClassesIn this section, you will learn how to implement Classes in your application. You will learn how to name your classes and how to make sure your classes are small and bounded by context.This is a great course and after finishing this course, you will be able to write cleaner and more maintainable code.Let's get started!

课程标签

0人关注该课程

主题相关的课程