Functional vs Object Oriented Programming in Python

Опубликовано: 17 Октябрь 2020
на канале: BeAPythonDev
14,070
254

For more leadership and personal growth tips please drop by my other channel:    / @stefanbstreet8634  

If you found this content helpful please do consider subscribing to the channel, it's a huge help. And let me know what else within your programming journey you'd like to learn about in the comments!

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/func...


На этой странице сайта вы можете посмотреть видео онлайн Functional vs Object Oriented Programming in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь BeAPythonDev 17 Октябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 14,070 раз и оно понравилось 254 зрителям. Приятного просмотра!