LMAO is you don’t end up turning all your JS objects into collections of functions with no state or this… #javascript #nodejs #fp
-
-
-
Replying to @nouswaves
@sandfoxuk It makes it very easy to compose functions with data from different modules.
1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sandfoxuk It might scare some people, but recently I've considered using it with bind() instead of closures as it is much more explicit.
1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua bind is explicit but dog slow for the compiler right now, also call/apply are nice1 reply 0 retweets 0 likes -
Replying to @sandfoxthat
@sandfoxuk I was wondering about the performance as I wrote that. Not really surprised, but still willing to do it to simplify code. :)
1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua it’s only really a problem on heavily used code paths, e.g https://github.com/rvagg/node-levelup/pull/90?source=cc …1 reply 0 retweets 0 likes -
Replying to @sandfoxthat
@sandfoxuk By the way, do you know what tool they were using to measure the performance?
1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua I'm pretty sure it was something basic like time taken to execute a script, should be in the repo.1 reply 0 retweets 0 likes
@sandfoxuk Will take a look.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.