In our attempt to delete dead code, we recently removed some methods
from the UsersSimple API[1]. I'm all for it (actually, I pushed for it)
and I would happily remove all the methods that are not longer called
from the YaST code. Death to all Perl code!
The problem is that we are not the only users of our own legacy APIs.
With UsersSimple it should be fairly safe because the module is
supposedly only used during installation (although you can always get
surprised by the extremely hacky SAP-related modules and scripts). But
with other modules (say /Network/) is not so clear.
We should have a mechanism to deprecate API methods and to delete them
in a way in which:
- We keep track of what we remove in every version bump
- Interested parties (like the maintainers of the SAP modules) can
get alerted of deprecation/removal, so they can adapt their stuff or
oppose to the change.
Otherwise, cruft will be there forever because we are too afraid to
remove it.
Any plan or suggestion?
Cheers
[1] https://github.com/yast/yast-users/pull/86
PS.- After writing $SUBJECT, I couldn't resist
https://www.youtube.com/watch?v=L397TWLwrUU
--
Ancor González Sosa
YaST Team at SUSE Linux GmbH
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]