DEV Community

Discussion on: Writing JS functions as a newbie

Collapse
 
drewclem profile image
Drew Clements • Edited

Great write up, Matt!!

Glad to hear you had some positive takeaways to the refactor.

It was gratifying to hear that it looked good, but he then said I could do the same thing with only one function. After all that work!?

Being able to deal with situations like this are strong soft-skill to have in programming. It's important to remember that they are almost never attacks on you, or even attacks at all.

Sometimes it's for performance improvements. Sometimes its to make the code more maintainable- should you have to return to it later. They are almost always to benefit the product and/or developer experience.