DEV Community

Discussion on: When do you create a function or method?

 
codevault profile image
Sergiu Mureşan

I don't think large functions by themselves are really a problem. Large function that do way too many things without any structure or good flow could easily become a problem though.

Also, yeah, that createComponent function is difficult to understand... but maybe because I don't know much about VueJS