1
OO in Python is mostly pointless (leontrolski.github.io)
submitted 3 years ago by copacetic@lemmy.ml to c/python@lemmy.ml
top 1 comments
sorted by: hot top controversial new old
[-] Limeey@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

I find most criticisms of OO to be disingenuous - this one in particular is a very simple situation that you reduce the line count by like 5 lines. I'm more interested in seeing cases where you can take a complex state management system and convert it to a functional paradigm that improves the readability and comprehension. Like rewrite the discord.py client using a bag of functions technique and tell me it's just as readable.

edit: and I should say, I'm not necessary against what you say, but it's not fair to do simple conversions and say "it's better!" Maybe it is better but the proof is not in a 15 line example, imo

this post was submitted on 28 Jan 2021
1 points (66.7% liked)

Python

3186 readers
1 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS