Python - To OOP or to FP?

preview_player
Показать описание
The debate between object-oriented programming and functional programming is one of the most hotly-contested debates in history. In this video, we investigate the differences and how you can combine the two paradigms in your Python code.

Check out the code:

Resources:

__________________________________________

Check out my other socials!
__________________________________________

Timestamps:
00:00 - Introduction and explanation
00:21 - What is OOP?
00:46 - What is FP?
01:06 - But what about Python?
02:30 - OOP program
03:45 - FP program
05:07 - A bit of both
06:38 - Intro to the production use case
07:34 - Production use case program
08:56 - Wrapping up

#python #softwareengineer
Рекомендации по теме
Комментарии
Автор

ERRATA:

7:07 - The `Color` type should be imported from `pydantic.color`, not `pydantic`.

IsaacHarrisHolt
Автор

Most concise comparison of OOP and FP in Python that have seen to date. Nice work.

PleasantOtis
Автор

Popular fp languages doesn't include C?

vidal