I am writing a program in Python, which basically manipulates strings, and I was wondering whether I should do it using OOP principles or not. The client did tell me he doesn't care about the code, he just want the thing done.
I know that object-oriented code is not by definition cleaner, and conversely non-OO code is not by definition crappy. The question I'm asking might be more or less opinion-based but there might be some rules that I'm not aware of.
Some more info about what's to be done:
- parse a
.csvfile and process the data based on a config file (the columns may be different - like in the number of columns or the data they hold) - use the above processed data to create a new custom formatted data (or multiple files based on some of the above values)
- use the last formatted data to create an XML file.
- split the XML file in multiple
XMLs based on their content - the application should be CLI-based
- there are of course other things like: logging some events, parse CLI arguments, and so on.
Now, this isn't at all a big / hard application, and it's also almost finished but during the whole development process I was keep asking myself if this should be done using OOP or not.
So, my question would be: how do you guys, know/decide when to use OOP in an application?