Python - To OOP or to FP?

Описание к видео Python - To OOP or to FP?

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:
https://github.com/isaacharrisholt/yo...

Resources:
Pydantic: https://docs.pydantic.dev/
FastAPI: https://fastapi.tiangolo.com/
SQLModel: https://sqlmodel.tiangolo.com/
structlog: https://www.structlog.org/en/stable/

__________________________________________

Check out my other socials!
🐦 Twitter ▶   / isaacharrisholt  
🖥️ Portfolio ▶ https://ihh.dev
📝 Blog ▶ https://isaacharrisholt.com
__________________________________________

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

Комментарии

Информация по комментариям в разработке