DEV Community

Discussion on: A common language feature I never learned about in college

Collapse
 
fjones profile image
FJones

Huh. I wouldn't see "longer functions are okay" as an anti-OOP thing. Functional programming thrives on even shorter, more contained functions than OOP. That said, function complexity has always been a difficult thing to wrap one's head around. Is a function bad because it is long, because it does too many things, or because it is poorly-structured? Blank scopes do, at least, solve the latter issue.

Collapse
 
winstonpuckett profile image
Winston Puckett

I wouldn't say Functional programming is an anti-OOP thing either :). But I think you're right, I may have generalized what I've heard in contexts.

I like the way you summarized these three problem areas for functions. That was very well stated.