Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Refactoring the code base #2

Closed
punkeel opened this issue Mar 29, 2017 · 1 comment
Closed

Refactoring the code base #2

punkeel opened this issue Mar 29, 2017 · 1 comment

Comments

@punkeel
Copy link
Contributor

punkeel commented Mar 29, 2017

I think it would be great to separate the code base into multiple chunks of code: maybe work with layers?
In my head, there are 4 layers:

  • Specific Bleach to a format+target, for instance "remove macro from OOXML office document".
  • Format Bleach, responsible of cleaning all threats of a given format.
  • The Bleach Factory™, responsible of cleaning a given thing no matter what it is (and so, to guess the type)
  • 8th Layer - the user

This way, DocBleach would be a library, the "format bleaches" would be like addons/plugins, and calling docbleach.jar would launch rockets in every directions.

This was referenced Mar 29, 2017
@punkeel
Copy link
Contributor Author

punkeel commented Apr 5, 2017

TODO: design an API that allows both Bleach to be "defined", and external apps to use them/use DocBleach directly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant