|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/api-in-csharp/
课程评论:没有评论
课程名称:C# API:设计和实现的最佳实践 课程简介: 本课程旨在帮助开发者学习如何在C#中设计和实现高质量的类型,以提高代码的可读性、可理解性和可靠性,从而避免其他开发者对你的代码感到厌烦。你将加深对面向对象编程的理解,掌握干净编码的原则,构建高质量的类型。 课程内容包括: - 理解良好设计类型的特征; - 掌握便利的API开发原则; - 学习编写干净代码,消除不良编码习惯; - 了解异常的作用,及其正确的抛出与捕获; - 学习如何将类型封装,以保护其不被错误使用; - 掌握构建面向对象基础架构的理念。 尽管C#是一门功能丰富的语言,但在实际应用中,依然存在许多设计不佳的类型。课程解决了如何有效利用C#特性的问题,旨在教授开发者如何编写不令人厌烦的优质代码,提升他们作为专业开发者的地位。 适合对象: 本课程面向所有C#开发者,从初学者到资深开发者皆可参与。课程内容覆盖广泛,适用于需要设计和实现API的所有开发者,包括简单和复杂的主题,适合不同背景的学习者。 授课方式: 本课程内容简明扼要,不包含冗余的内容。所有重要概念均被涵盖,特别重要的主题将深入探讨。对于绝对初学者,如果需要,可以通过Skype获取免费的额外帮助。该课程提供英文字幕,方便理解。 如果你希望提高编程技能,并学习如何创建高质量的C# API,欢迎参加本课程。
Learn how to design and implement types in C# so that the other developers won't hate you when using one of the types developed by you. It means you are going to learn how to write code of the high quality: readable, understandable and reliable. Improve your knowledge in object-oriented programming in the context of clean coding and building types of high quality.Understand the characteristics of a well-designed typeGrasp the principles of the convenient API developmentWrite clean code, get rid of unpleasant smellsLearn about what exceptions are intended for and how to throw and catch them properlyProtect your types from the incorrect usage making them properly encapsulated.Foundations of building object-oriented infrastructures Despite the fact that C# is a very rich on features language, it's very common to see poorly designed and implemented types in a real world. In fact, C# is one of the richest on features language among object-oriented languages in the world nowadays. But with great power comes great responsibility. It's challenging to use all those features in a right way. You probably have already heard the following well-known statement: most code sucks. Well, this course is all about how to produce code which doesn't suck. Owning skills of producing a well-designed and well-implemented types is the prerequisite for the other developers to treat you as a real professional. Content and Overview This course is aimed at all the C# developers, from beginners to seniors. Topics which are covered in the course are relevant for all kinds of C# developers since all developers design and implement APIs. The topics complexity is very different. There are plenty of very simple topics, and at the same time, there are topics which require from you a solid C# background. There are plenty of code examples throughout this course, so you will learn both theoretical and practical material. Starting with characteristics and principles of a well-designed type you will go further, learning how to give names for different members, how many parameters a method should take, is it a good idea to take a Boolean as a parameter of a method and much more than that. Then you will learn what encapsulation really means. How to encapsulate a type? There are some trade-offs we will deal with encapsulating our types. There are many experienced programmers who don't know what encapsulation is in essence. Investigating this topic together we will see how to build a consistent and reliable type. After mastering the topic of types encapsulating you will face the great problem of exceptions handling. Yep, it's a hard nut to crack. We will start from discussing a question of why do we use exceptions as a mechanism of errors handling. And why C# team didn't invent any other mechanisms? In the end, we will look at how to fight with null values. As you may know, Tony Hoar said that the invention of a null value was his billion-dollar mistake.To sum up, the course covers the following topics:API development principlesHow to give better names for API members and what naming conventions exist in the.NET platform and suited for C#.Common problems encountered by C# developers in the process of designing and implementing APIs: classes vs structures, abstract classes vs interfaces, creational patterns vs constructors, how to implement dispose pattern (are you sure you understand this allegedly simple case?)Common implementation smells such as poor naming, excessively long methods, output parameters and so on.Common Architectural Design Smells such as Primitive Obsession, Hidden Dependencies, Violation of Law of Demeter and other.How to deal with errors. It is surprisingly hard to develop robust software where errors handling is based on exceptions. We will find out why this is so and how to struggle with problems of error handling.How to deal with Nulls. Null Vales have always been a pain the ass. NullReferenceException is a well-known and popular guest in our software. We will look at the possible ways of diminishing the disrupting power of null-values.Teaching ApproachNo fluff, no ranting, no beating the air. I esteem your time. The course material is succinct, yet comprehensive. All important concepts are covered. Particularly important topics are covered in-depth. For absolute beginners I offer my help on Skype absolutely free, if requested. Don't forget that this course has English subtitles, so if you don't understand my accent, feel free to turn them on.Take this course and you will be satisfied.------------------------------Keywords related to the course:C# Clean CodeC# Best PracticesAPI in C#Building API in C#Clean Code in C# tutorialRefactoring