DEV Community

Discussion on: Sometimes, the elegant implementation is just a function

Collapse
 
thomasjunkos profile image
Thomas Junkツ

That is the nice thing about multiparadigm languages like e.g. Python. You could start with a simple function. If you realize that there is need for another function, you group this functions together in a module. If you realize, this module contains data and functions which could go well together, you could start writing a class.