| ▲ | naasking a day ago | |
> I wouldn't so much as call what JS does "reflection" any more than "making objects out of poorly implemented hashmaps." I used "reflection" because that's how it's abstracted in popular statically typed languages. My point was that JS has abstractions and idioms that eliminate some of the need for design patterns like, factory, decorator, strategy, etc., and some of the reasons are because JS's core objects are basically just fancy hashmaps. | ||