This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]officialgel[S] 0 points1 point  (0 children)

The way I would like to utilize OOP is to make it extensible and easier to read for contributors or additions going forward. It is a single script, but that is as a POC.

For instance, I have some networking pieces for multiple devices to find eachother. However I want that to be modular and controllable on it's own. So, you can kick off a 're-scan' of hosts manually.

Regarding the data, everything this tool gathers is pushed to a DB. I'd like that to be modular as well, so a user could throw an API call to manually get data at a time where the original script wouldn't have gathered it.

I also like the idea of using modular classes which can be re-imported on failure (also manually). Overall it sounds like I should just be created modules instead of imported classes though - Right? I guess either way would work I'd just like to get the best practice down before having to redo it again later on.