Functional vs Object Oriented Programming in Python
Answering some common questions on functional vs objected oriented in programming and then showing a few code examples to demonstrate a pure function and an object that stores state with a function that modifies the internal data.
Timestamps:
0:00 - Introduction
0:05 - Is Python an object oriented programming language
0:33 - Can you do functional programming in Python?
0:53 - Common object oriented languages used in a company
1:10 - Differences between functional and objected oriented programming
2:15 - How to make good classes in Python
4:05 - Unit testability of functional code compared to classes
4:35 - Writing a functional math module
7:18 - Why functional programming is good for concurrency
8:01 - Using list comprehensions for functional transformations
9:35 - Converting our functional code to a do_math class (should be DoMath)
11:40 - Altering the state of our class data
13:35 - Outro
Object oriented code:
https://pastebin.com/G2fkLrvL
Article:
https://beapython.dev/2020/01/21/functional-vs-object-oriented-programming-in-python/
Видео Functional vs Object Oriented Programming in Python канала BeAPythonDev
Timestamps:
0:00 - Introduction
0:05 - Is Python an object oriented programming language
0:33 - Can you do functional programming in Python?
0:53 - Common object oriented languages used in a company
1:10 - Differences between functional and objected oriented programming
2:15 - How to make good classes in Python
4:05 - Unit testability of functional code compared to classes
4:35 - Writing a functional math module
7:18 - Why functional programming is good for concurrency
8:01 - Using list comprehensions for functional transformations
9:35 - Converting our functional code to a do_math class (should be DoMath)
11:40 - Altering the state of our class data
13:35 - Outro
Object oriented code:
https://pastebin.com/G2fkLrvL
Article:
https://beapython.dev/2020/01/21/functional-vs-object-oriented-programming-in-python/
Видео Functional vs Object Oriented Programming in Python канала BeAPythonDev
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Uncle Bob's SOLID principles made easy 🍀 - in Python!](https://i.ytimg.com/vi/pTB30aXS77U/default.jpg)
![Functional, Procedural & Object-oriented Programming - An Overview](https://i.ytimg.com/vi/aoE-92Ac4zE/default.jpg)
![Object Oriented Programming (OOP) in Python](https://i.ytimg.com/vi/MikphENIrOo/default.jpg)
![Object Oriented Programming vs Functional Programming](https://i.ytimg.com/vi/wyABTfR9UTU/default.jpg)
![Python dataclasses will save you HOURS, also featuring attrs](https://i.ytimg.com/vi/vBH6GRJ1REM/default.jpg)
![Object Oriented vs Functional Programming with TypeScript](https://i.ytimg.com/vi/fsVL_xrYO0w/default.jpg)
![Why Isn't Functional Programming the Norm? – Richard Feldman](https://i.ytimg.com/vi/QyJZzq0v7Z4/default.jpg)
![Python Decorators in 15 Minutes](https://i.ytimg.com/vi/r7Dtus7N4pI/default.jpg)
![If you're not using Python DATA CLASSES yet, you should 🚀](https://i.ytimg.com/vi/vRVVyl9uaZc/default.jpg)
![Everything you need to know about Classes in Python! (Object Oriented Programming Tutorial)](https://i.ytimg.com/vi/tmY6FEF8f1o/default.jpg)
![You Can Do Really Cool Things With Functions In Python](https://i.ytimg.com/vi/ph2HjBQuI8Y/default.jpg)
![Ep13 - OOP vs Functional vs Procedural Programming Explained!](https://i.ytimg.com/vi/B5O52_w-4Zg/default.jpg)
![5 Tips For Object-Oriented Programming Done Well - In Python](https://i.ytimg.com/vi/-ghD-XjjO2g/default.jpg)
![Function arguments in detail - Advanced Python 18 - Programming Tutorial](https://i.ytimg.com/vi/iSEyb7ehLK0/default.jpg)
![Python OOP Tutorial (Object Orientated Programming ) - Inheritance](https://i.ytimg.com/vi/H2SQrZK2nvM/default.jpg)
![FP vs OOP | For Dummies](https://i.ytimg.com/vi/08CWw_VD45w/default.jpg)
![Daniel Kirsch - Functional Programming in Python](https://i.ytimg.com/vi/r2eZ7lhqzNE/default.jpg)
![Automate Excel With Python - Python Excel Tutorial (OpenPyXL)](https://i.ytimg.com/vi/7YS6YDQKFh0/default.jpg)
![Learn Classes in Python in 4 Minutes](https://i.ytimg.com/vi/rJzjDszODTI/default.jpg)
![Python Object Oriented Programming in 10 minutes 🐍](https://i.ytimg.com/vi/q2SGW2VgwAM/default.jpg)