0

OOP or functional programming

When do you consider using OOP instead of functional programming in Python?

4th Aug 2024, 2:01 PM
César PC
César PC - avatar
3 Respuestas
+ 2
It depends on what you are focusing on, for big applications and other cases you will need OOP, and for others functional. So think that you can mix together both for your better management of your project
5th Aug 2024, 4:44 AM
Gabriel Sousa
Gabriel Sousa - avatar
+ 1
There is no clear guideline, it often comes to personal preference, or the skills of the development team. What do you even consider as "functional programming"? Because it means much more, than structuring your code in functions, rather than classes. Larger projects tend to use OOP features more, but maybe just because most developers are more familiar with writing code in OOP style. You can find a lot of arguments and debates online, with a simple search... even if there is no final conclusion, it is worth reading them to get a clearer picture. https://www.reddit.com/r/learnpython/comments/13c1lsv/i_still_find_myself_struggling_to_know_when_to/
5th Aug 2024, 4:51 AM
Tibor Santa
Tibor Santa - avatar
0
Thank you very much, I will read to understand more about the topic.
11th Aug 2024, 8:26 PM
César PC
César PC - avatar