Login
You're viewing the code4lib.social public feed.
  • Nov 2, 2026, 11:08 AM

    @daycoder No idea if that helped. I did have an excellent article squirrelled away about Helper classes and the design smell they reveal, but I can’t find it 😕

    Essentially Helpers are escaped functionality that should be sitting within an existing (or not yet extracted) object.

    The example I usually pull out is EmailHelper with a isEmailValid(email) method. Just move it into Email as isValid()! (Maybe simplistic but you get the drift I’m sure)

    💬 0🔄 0⭐ 1