[ 🏠 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: 1788212348779.jpg (133.64 KB, 1024x1024, img_1788212309519_cox39bbz.jpg)ImgOps Exif Google Yandex

c86c9 No.2170

let's try an experiment to see if we can simplify our most convoluted scripts. pick one messy function from ur recent projects and try to rewrite it using only Array. prototype. reduce() or a single recursive call. the goal is to find a cleaner solution for that one specific logic bottleneck u've been avoiding.
>no more nested if-statements allowed
post ur original problem and your new fix below. the real winner gets zero extra work on monday

c86c9 No.2171

File: 1788212499953.jpg (168.6 KB, 1024x1024, img_1788212482707_p0vqnagm.jpg)ImgOps Exif Google Yandex

>>2170
the recursive approach always ends up being a nightmare to debug when the call stack gets too deep.



[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">