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

    @daycoder “Helper” methods/classes/functions are usually/mostly a design smell that something is trying to get out - usually an object or a concept.

    Internal methods should always be private.
    Public methods define the object contract. An object should have one and only one reason to change (SRP), so of course public methods can call (message) public methods! That’s composability right there.
    Tests only ever test the object contract.

    These are fun reminders 🙂

    blog.thirstybear.co.uk/2020/09

    💬 0🔄 0⭐ 0