I am currently creating a small web application that includes enough JavaScript. When I prototyped the original idea, I simply hacked a few functions to demonstrate how the application would eventually behave forward to rewrite JavaScript in an object-oriented manner.
Now, when I enter the implementation phase, I think that creating object-oriented JavaScript for an object-oriented view seems redundant - the project is unlikely to require any major changes in the future, it would guarantee an object-oriented design. Instead, I find that a set of concise, cohesive functions works well.
So, with that said, and with an attempt to adhere to the KISS principle, when a set of functions provides a suitable solution to the problem, are there any other reasons that should be considered in order to convert my code into an object-oriented design?
javascript web-applications software-design
Tom
source share