ursus
11/20/2020, 5:00 AMAuthenticator
class which has login()
function
Now, app B needs logout as well, so it extends Authenticator and adds logout()
functionality.
How would you call such type?
1) If I were to take inspiration from the way List interface looks I'd call it LogoutableAuthenticator
But such name looks silly for app B developers, as they only use a Authenticator
which has both login and logout functions
1.5) Give it app name prefix like AppBAuthenticator
. Also feels silly. All app B types then should have this prefix
2) Or, design it backwards, leave leaf implementations prefixless, so app B has Authenticator but it extends BaseAuthenticator
. But this again looks stupid in shared code
3) Name them both Authenticator and let just the package name be differentNir
11/20/2020, 5:03 AMursus
11/20/2020, 5:04 AMkqr
11/20/2020, 8:25 AMVampire
11/20/2020, 8:31 AMursus
11/20/2020, 12:18 PM