Python OOP: Object Oriented Programming From Beginner to Pro

所在平台: Udemy

课程主页: https://www.udemy.com/course/python-oop-object-oriented-programming-from-beginner-to-pro/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Python面向对象编程:从初学者到专家 概述:本课程旨在为各级Python开发者提供编写优雅、组织良好、可维护的面向对象软件所需的知识。面向对象编程(OOP)对于初学者来说可能较为复杂,许多Python课程只教授类、对象、字段和方法等基础知识,而没有阐明为何以这种方式组织软件是如此强大的关键概念。许多Python开发者因此在处理基于Django构建的面向对象软件时,常常不知如何组织代码,最终导致软件维护困难,添加新功能时不得不对已有有效的代码进行破坏性修改。 本课程的主要目标是让Python开发者对OOP有清晰的理解。通过详尽的解释和现实案例,我们将探讨如封装、抽象、多态、组合、继承、依赖注入、UML、SOLID原则及设计模式等基本OOP概念,帮助你开发出既优秀又可维护的面向对象软件。 学习内容: 课程第一部分假设你是OOP的完全初学者,介绍了OOP的基本理念:类和对象、属性和方法、访问修饰符、静态属性和静态方法、特性与getter/setter。完成本部分后,你将具备编写和理解面向对象软件的工具。 然而,单有工具是不够的!编写优秀的软件需要理解帮助你有效组织代码的原则。课程的其余部分集中在这些经过时间检验的原则上,教你如何思考、重构及交流良好设计、可维护和可扩展的OOP软件。每个概念都通过一个初始违反该原则的例子开始,接着讨论问题并提供重构解决方案,帮助你深入理解该原则及其应用。 第二部分涵盖了你整个职业生涯中将会用到的基础OOP原则:封装、抽象、继承、多态、耦合、组合(及其相对于继承的优势)以及脆弱基类问题。 第三部分介绍了统一建模语言(UML),用于以标准化的方式可视化建模类和对象及其关系。 第四部分深入探讨SOLID原则,基于第二部分的概念,这部分将深化你如何分配类的责任及管理它们之间关系的理解。 第五部分介绍了"四人帮"设计模式。这些模式提供了针对软件设计中反复出现问题的成熟解决方案,巩固你在课程中所学的所有内容。你将学习六个实用的设计模式:状态模式、观察者模式、外观模式、适配器模式、原型模式和抽象工厂模式。 通过本课程的学习,你将具备编写干净、可扩展且可维护的OOP代码的知识和信心。

课程评论(0条)

课程详情

This course is for Python developers, of any level, that want to learn everything needed to write elegant, organised, maintainable object-oriented software.Object-oriented programming (OOP) can be confusing for beginners. Most Python courses just teach you about classes, objects, fields and methods - without teaching the crucial concepts that show why organising software in this way is so powerful.Python developers often then go on to work on object-oriented software, such as web applications built with Django, without having any clue of how to organise their code. This leads to software that is a nightmare to maintain, as adding new features often requires you to make breaking changes to existing working and tested code.I created this course with the goal to demystify OOP for Python developers. Through clear explanations and real-world examples, we will explore essential OOP concepts such as encapsulation, abstraction, polymorphism, composition, inheritance, dependency injection, UML, SOLID principles, and design patterns - giving you everything that you need to develop great, maintainable and elegant object oriented software.What you will learnThe first part of the course assumes that you're a complete OOP beginner, and introduces the very fundamentals of OOP: classes and objects, attributes and methods, access modifiers, static attributes and static methods, properties vs getters and setters. By the end of this section, you'll have the tools to write and understand object-oriented software…But tools alone aren't enough! Writing great software requires understanding the principles that help you organise your code effectively. The rest of the course focuses on these time-tested principles, teaching you how to think, refactor, and communicate about well-designed, maintainable, and extendable OOP software. Each concept is introduced with an example that first violates the principle, followed by a discussion of the issues and a refactored solution - helping you to really understand the principle and its applications.Section Two covers the foundational OOP principles you'll use throughout the rest of your career: encapsulation, abstraction, inheritance, polymorphism, coupling, composition (and its advantages over inheritance), and the fragile base class problem.Section Three introduces Unified Modelling Language (UML) to visually model classes and objects, and the relationships between them in a standardised way.Section Four dives into the SOLID principles, building on the concepts from Section Two. This section will deepen your understanding of how to assign responsibilities to classes and manage relationships between them.Section Five introduces the "Gang of Four" design patterns. These patterns provide proven solutions to recurring problems in software design, reinforcing everything you've learned in the course. You will learn six useful design patterns: State Pattern, Observer Pattern, Facade Pattern, Adapter Pattern, Prototype Pattern and Abstract Factory Pattern.By the end of this course, you'll have the knowledge and confidence to write OOP code that is clean, scalable, and maintainable.

课程标签

0人关注该课程

主题相关的课程