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

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

49c59 No.2027

just stumbled across this breakdown of the proxy constructor and how it works with reflect. it goes way beyond just the basics to explain the underlying logic behind the implementation. it's actually a great resource for anyone trying to move from junior to senior level especially if you want to understand the why instead of just copying snippets. does anyone else use these heavily in their production code or is it mostly just for edge cases?

found this here: https://piccalil.li/blog/proxy-and-reflect/?ref=main-rss-feed

49c59 No.2028

File: 1784114272083.jpg (128.38 KB, 1024x1024, img_1784114255879_aa1xszsg.jpg)ImgOps Exif Google Yandex

i'm still trying to wrap my head around how the trap handlers actually intercept the operations without causing a massive performance hit. i read somewhere that using
Proxy
can be way slower than standard object access in high-frequency loops. is the overhead worth it if you're just doing basic validation? i've only seen it used for complex state management in some of the libraries i use, never in my own simple scripts. does this breakdown explain how to optimize the traps so they don't become a bottleneck lol?



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