Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@craig939393 It's not like they depend on each other in any way, and most of them have nothing to do with each other.
@theabbie I failed to mention that we're using ES6 imports which makes that impossible. -
rooter164112dMaybe it shouldn't be a class anymore then? Nice of node.
I mean... If it is all static, one class, so one 'instance' / state..
Why you want this? -
abrd171311dClass abuse yes. If all functions are static, might as well just exported that function instead of creating a class.
-
rooter164111d@ScriptCoded people lie. Violence is an option!
I don't know which ide you're using but pycharm for example fixes everything when you do right-click move class to file. All imports fixed. I don't know how good it is of their other IDE's. But when it comes to refactoring it rocks
Related Rants
This is Node.js FYI
Exporting a single class from a file called util.js. This class only has static methods. Each method is a util function. No fucking way of importing a single method. Class abuse?
rant
classes
node