Clean Code培训

课程编码

CleanC

课程时长

14 小时 通常来说是2天,包括中间休息。

要求

There are no specific requirements needed to attend this course.

课程概览

为什么我们需要清洁代码?程序不断更新,因此代码不断更新,通过不清楚的代码可以非常非常非常难以找到并更新源代码,编写原始代码的成本只有系统总成本的40% ;平均花费的60%用于维护和更新代码。不良的代码大大增加了40/60的比率,在最坏的情况下接近20/80;代码越不洁净,我们花更多的时间来更新它。

Machine Translated

课程大纲

Day 1

Introduction

Good and standardized naming

-names of packages, files, classes, voids and functions as well as variables need to have meaningful names derived from their purpose

-should be readable

-should be searchable

-consider the namespace we're generating; does it make sense?

Classes, objects and data structures

-there's a difference between objects that do something and structures that simply contain data

-when to use data structures, and why

-when to use objects, and why

-OOD and abastraction

-getters/setters and why

-better to have many small classes, with many small voids and functions

Good comments

-there are good and bad comments;

-we need to know how to generate good comments and forget about the rest

 

Day 2

Functions

-one thing only

-small

-arguments (good and bad)

-unintended side effects

Error handling

-when to handle errors, when to let them bubble up

-if we handle an exception, what do we do with it and why

-custom error handling classes

Code Formatting: how can we better format the code

Test-Driven Design: Open discussion of Uncle Bob's idea that programs should be TDD

 

客户评论

★★★★★
★★★★★

课程分类

相关课程

促销课程

订阅促销课程

为尊重您的隐私,我公司不会把您的邮箱地址提供给任何人。您可以享有优先权和随时取消订阅的权利。

我们的客户

is growing fast!

We are looking to expand our presence in China!

As a Business Development Manager you will:

  • expand business in China
  • recruit local talent (sales, agents, trainers, consultants)
  • recruit local trainers and consultants

We offer:

  • Artificial Intelligence and Big Data systems to support your local operation
  • high-tech automation
  • continuously upgraded course catalogue and content
  • good fun in international team

If you are interested in running a high-tech, high-quality training and consulting business.

Apply now!