DEV Community

Discussion on: My two greatest challenges while learning software development

Collapse
 
lluismf profile image
Lluís Josep Martínez

"Why should you complicate your code? Just write a function that takes care of what you need. You need something else taken care of? Write another function." If you ever deal with a complex project you'll see that having thousands of functions is not scalable and a nightmare to maintain. At least with classes you can group them, makes maintenance much more easy. Javascript added classes (although it's just syntactic sugar) for a reason.