3 ms·
or a model method or private method in the class containing this code
by jaredsohn 5y ago
or a model method or private method in the class containing this code
- Spivak 5y agoBut why?!?! There's no way this conditional is a well-defined named concept and just adds indirection for the sake of line length.
- jaredsohn 5y ago>There's no way this conditional is a well-defined named concept Sure about that? I'm saying if it is then extracting as a method might be clearer. All depends and these are other options.
- brightstep 5y agomaybe two well-named concepts then? If you're unable to reduce it at all, I'd consider that a code smell.