DEV Community

Discussion on: Writing code for your future self

Collapse
 
jessekphillips profile image
Jesse Phillips

I would challenge the idea that single responsibility means can't do more than one thing. Several have shown the challenge of refactoring into this approach.

The db access I would argue isn't related to username validation. I mean if it isn't valid how does someone have it.