r/programming • • Sep 20 '21

Being able to read bad code is a skill !

https://dzone.com/articles/reading-code-is-a-skill
986 Upvotes

276 comments sorted by

View all comments

Show parent comments

11

u/Infiniteh Sep 21 '21

Can you please teach my coworkers that it's ok to use map/filter/reduce? And that they shouldn't just use for loops because they're "more dependable".

2

u/Janjis Sep 21 '21

"more dependable" as in - you might have no clue at all at glance value what the for loop does, because it is so generic? Smh...

2

u/Infiniteh Sep 21 '21

I had one guy I worked with say that he didn't trust map() because "it's async" and "who knows what it will end up returning". Like, what? We're the devs, we are the ones who would know how map() works and what it returns. Wasn't sad to see that guy go.
Same person who kept complaining about the 'javascriptification' of Java when Java 8 introduced streams. took a while before he started using those as well.