Sign in
Log inSign up

Is it bad practice to make a class for every feature I have to make it more readable rather that simply using functions for them??

Aakash Mallik's photo
Aakash Mallik
·Dec 6, 2017

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??