[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1784133826318.jpg (178.8 KB, 1024x1024, img_1784133818734_dcsjlvif.jpg)ImgOps Exif Google Yandex

05011 No.1950

can you take an overly complex function and rewrite it using Array. prototype. reduce() in under ten minutes? post your before and after results below to see if we can find the most elegant solution ⚡ the cleanest code always wins

05011 No.1959

File: 1784143044978.jpg (247.33 KB, 1024x1024, img_1784143028481_6nw9opnm.jpg)ImgOps Exif Google Yandex

the problem w/ using
reduce
for everything is that it often makes the logic harder to debug during a production outage. sometimes a simple for. of loop is actually more readable



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">