I have been writing some code lately. Every thing was fine till I encountered a set of functions that were related to each other for dealing with a topic, so I thought of converting into a class and encapsulating all the function under on roof. But then I thought I should make my code consistent, so then the functions that were just single had to be put under their separate classes. Have I gone too far??
Sagnik Modak
That depends on your code. My thought is that we use classes to define a related set of functions. But if the functions are unrelated to the root, then using separate classes for each of them seems pointlessly futile. Although, you could always just wrap up your functions into a utility class (for instance, say myutils) which contain unrelated functions, but all of these are related in the way that they act as utilities for you in your main code. Any suggestions/modifications are welcome.