Requests for comment/Inventory hooks, assess need
|Inventory hooks, assess need|
|Document status||in draft|
MediaWiki currently has many hundred hook calls. Many were introduced with little discussion or consideration and are rarely used.
Hooks make code hard to test, hard to debug, and tend to be rather single-use in their implementation.
We should inventory all of our hooks. See which ones are being used and are necessary. Can some of them possibly be rethought or replaced?