|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/object-oriented-programming-adventure-in-python/
课程评论:没有评论
课程名称:Python中的面向对象编程。提升你的技能! 概述:本课程教授如何将单一脚本利用面向对象编程(OOP)技术重构为模块化的结构,学习内容包括继承、组合和多态,同时使用UML来设计和沟通系统。课程涉及如何应对客户不断请求的新功能,同时思考在合适的位置使用正确的工具。你将准备进行一项大练习,组织代码。 目标受众:本课程特别适合以下开发者: - 想要练习OOP基础的初学程序员 - 希望将小脚本转换为逻辑代码模块的开发者 - 希望以最小变动和风险重构代码的开发者 挑战:参加此课程的学生通常了解Python的基本特性,但尚未意识到OOP在代码结构中的作用。尽管他们可能见过类、对象、继承和多态,但不知道在何时何地应用这些技术。这可能导致错误的技术应用,使得OOP失去效率。本课程关注代码变更,教授何时、何用及为什么应用特定的OOP技术,并探讨何时需要更换不再适合的技术。 课程收获:完成本课程后,你将能够: - 有效地重构现有和未来的代码,分解为小模块 - 通过依赖注入解耦模块 - 使用多态将模块变为插件 - 通过组合解决开放-关闭原则的违背问题 - 利用UML类图沟通设计 课程主题: - 类和对象:类实例化、自我、数据属性、UML、方法 - 继承:何时使用和不使用继承 - UML:使用UML类图设计和沟通系统 - 多态:开放-关闭原则,避免使用条件语句(if/else) - 组合:用组合替代继承 - 重构:分拆脚本,使系统模块化以实现单一职责 - JSON:从JSON文件加载数据 - 生成器表达式和列表推导:高效转换JSON数据为对象 时长:包含1.5小时视频时间和3小时练习的时间。 教师:本课程由Loek van den Ouweland授课,他是一位拥有25年专业经验的高级软件工程师,曾创建Wunderlist for Windows、Microsoft To-do和Windows的Mahjong,热爱教授软件工程。
This course teaches you how to take a single script and use OOP techniques to refactor it into modules in a playful way. You learn Inheritance, Composition and Polymorphism and use UML to design and communicate the system. The customer keeps requesting new features that forces you to think about the right tool in the right place. Will OOP allow you to refactor the code each time without risk of breaking things? Prepare for a big exercise in organizing code!Target audienceDevelopers who especially benefit from this course, are:beginner programmers who want to practice OOP basicsdevelopers who want to learn how to turn small scripts into logical code modulesdevelopers who want to learn how to refactor code with minimal change and riskChallengesStudents that are interested in this course often know basic Python features but are not yet aware of the role of OOP in structuring your code. Perhaps they have seen classes, objects, inheritance and polymorphism but they don't know where and when to apply these techniques. This can lead to the wrong technique in the wrong place, which makes OOP useless and inefficient. Because this course focuses on changing code, you learn WHEN, WHAT and more important, WHY you can apply a certain OOP technique and perhaps even more interesting, when a certain technique is NOT appropriate anymore and needs to be replaced with another one.What can you do after this course?improve existing and future code by effectively refactoring code into small modulesdecouple your modules by using dependency injectionmake modules into plugins by using Polymorphismsolve open-closed principle violations by using compositioncommunicate your designs with UML class diagramsTopicsClasses and Objects: Class instantiation, self, data attributes, UML, methodsInheritance: When to use and not use InheritanceUML: Use UML class diagrams to design and communicate your systemPolymorphism: Open-closed principle, prevent switches (if/else)Composition: Replace inheritance with compositionRefactoring: Split up scripts and make a system modular to achieve single responsibilityJSON: Load data from a JSON fileGenerator expressions and List comprehensions: Convert JSON data to object efficientlyDuration1,5 hours video time, 3 hours including practicing exercises.The teacherThis course is taught by Loek van den Ouweland, a senior software engineer with 25 years of professional experience. Loek is the creator of Wunderlist for windows, Microsoft To-do and Mahjong for Windows and loves to teach software engineering.