DEV Community

Discussion on: What's the worst advice you've ever received?

Collapse
 
merri profile image
Vesa Piittinen • Edited

"Use functional programming to do it."

This came from a consultant at a time I had been working as a professional for about a year. I wasn't yet familiar with the term, but I was very confused during his explanation because the code he wrote as an example was awful from performance perspective, but he kept on going that this is the way things should be done. I had no trouble understanding the code but he treated me like I knew nothing simply because I wasn't familiar with the term "functional programming".

To clarify the advice itself isn't worst as there is a place for functional programming style, but the way it was represented was. This was kind of my first real life contact with hype programmers who use whatever is the coolest latest thing and use it blindly as their hammer for everything. They did whatever they thought was best, for example we had requested a Node app in JavaScript, we got a Node app in CoffeeScript.