3 ms·
For me it was the same. Python offers it all, functional, procedural, object-oriented. So you just choose hwta fits the problem best and dont worry about polit
by schtog 18y ago
For me it was the same.
Python offers it all, functional, procedural, object-oriented. So you just choose hwta fits the problem best and dont worry about politics.
Personally while learning Python I was also learning functional languages and I started to naturally drift towards a more functional style.
My functional code is just much more modular and natural than my OO-code.
Classes I to represent some data every now and then but it is not central to my designs.
- pavelludiq 18y agoyeah, im learning django now and models have to be classes and views are functions. You generally have to understand both functional and OOP to be good. Im not a fan of any of the pure languages. Multi paradigm is my choice, but i still would prefer functional to oo solutions to problems.
- raganwald 18y ago"Python offers it all, functional, procedural, object-oriented. So you just choose hwta fits the problem best and dont worry about politics." I find the idea that Python offers it all surprising, for example my understanding is that anonymous functions can only be one line and you cannot write generic functions a'la CLOS. If that is the case, while Python may offer a terrific language for Getting Stuff Done, you may want to consider learning other languages on the off chance that they actually do more in each of their respective areas. Then, when you return to Python you can apply what you've learned.
- schtog 18y agoYes that is true and I know a lot of languages and while Python perhaps doesnt offer as deep possibilities within each paradigm it offers every paradigm. As you said this makes it very good for writing programs and does so in a lot of different domains but perhaps when digging really deep into one area you can find something better suited.