News for hackers. Stuff that matters.
Re:Meta-programming JavaScript Using Proxies by donatj on Thursday February 05, 2015 @07:52AM (#9002938)
Having seen this kind of "magic" as PHP calls it, come full force and then largely leave in the PHP ecosystem after we became tired of it, I can't say I miss it.

It's fun to play with but for actual work a clear, strongly defined API beats this sort of syntactic sugar like this any day.

Re:Meta-programming JavaScript Using Proxies by kbody on Thursday February 05, 2015 @08:40AM (#9003150)
Quite true, I rather leave magic at Hogwarts. Although the package nature of node etc. could be fitting for such magic behind some public facing API.

Also, I have some concerns over their performance but we will see in time.

Re:Meta-programming JavaScript Using Proxies by sklogic on Thursday February 05, 2015 @09:22AM (#9003337)
Because neither PHP nor JS can do anything close to a proper metaprogramming. No API can compete with a properly designed eDSL.
Re:Meta-programming JavaScript Using Proxies by mistercow on Thursday February 05, 2015 @10:21AM (#9003619)
Drawing a line around one kind of metaprogramming and calling it "proper" is pretty silly.
Re:Meta-programming JavaScript Using Proxies by sklogic on Thursday February 05, 2015 @12:32PM (#9004532)
By "proper" I mean everything that is opposite to the "bad" kind of metaprogramming people shun upon (C-preprocessor-style).