re: 10 More Mistakes you probably also made in your coding task for a new job Part 2 VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

I totally agree here.

This can be a problem especially if you are using JSDoc and suddenly your function changes but people forget to update the JSDoc.

If you have a function that is like 200 lines of code you should exactly do what you are proposing. you should split it up into smaller functions. I would even go that far that if your function is longer then 30 lines you can split it up.

Thanks for the comment and its a really good point!

code of conduct - report abuse