Sign in
Log inSign up
refactoring
refactoring
#refactoring
25 followers·310 articles
Popular this week 🔥
Tomek Skupiński
yun zheng
Mudit Mishra
Developer Avocado
yun zheng and 6 others are discussing this7 people are discussing this
yun zheng
well done.
3
Discuss

·

120 likes

·

3.7K reads

andrei
Man, good job on writing and puttin you out there, but I made an account just to reply on this. Hate to see things overused just because they're shiny. I noted there was some legacy code that was using loops and wasn't really efficient with the tools we have nowadays. You replaced one completely fine loop with two loops and a ton of allocations. for is not freaking outdated. I think you meant to say "pretty" or "easier to follow", because the "modern" version is way, way less efficient than the original.
5