DEV Community

Discussion on: Code Smell: Abstractions?

Collapse
 
pclundaahl profile image
Patrick Charles-Lundaahl

I kind of feel like it's got to be on a case-by-case basis.

If I'm working at the method level, I'll usually move blocks of code to private methods if it makes it easier to read (being able to label the code via the method name is a huge plus in my view).

I usually do the opposite with classes, though. I find they proliferate so quickly, and things turn into a rats' nest so fast. I might just not be very good at OOP though.