3 ms·
Got an good pointers for writing pluggable code? How to make the app itself ready to get all these fancy plugins?
by djbusby 2y ago
Got an good pointers for writing pluggable code? How to make the app itself ready to get all these fancy plugins?
- zerr 2y agoYou can get a good idea by reading docs about plugins APIs for a particular software.
- simonw 2y agoI pitched a conference talk about this recently, if it gets accepted I'll have a good excuse to write this up. It's surprisingly hard to find good information about!
- withinboredom 2y agoWordPress is a pretty good example (and all the problems that entails if it gets out of hand). They use a hook/filter model to change outputs of various systems via plugins, and allow plugins to reimplment low-level functionality. I recommend checking out their approach, as it is pretty flexible.
- vitorbaptistaa 2y agoAnother good example is CKAN, the most widely used open data portal platform. Their docs are pretty good on how to write plugins -- gives you an idea of how the architecture works. https://docs.ckan.org/en/2.9/extensions/index.html https://docs.ckan.org/en/2.9/extensions/index.html