Re:Just: A library of dependency-free JS utilities that do j...
by Kiro on Sunday July 17, 2016 @04:48AM
(#12109503)
Why?
[ Parent
| on HN ]
Re:Just: A library of dependency-free JS utilities that do j...
by patricklynch on Monday July 18, 2016 @12:24PM
(#12116047)
Because then you can curry/partially apply functions independent of your data.
It's _not_ because it's convention everywhere else.
(I realize that only really makes sense if you know why it makes sense, so this video gives a pretty good explanation in ~30 minutes - https://www.youtube.com/watch?v=m3svKOdZijA)
Re:Just: A library of dependency-free JS utilities that do j...
by dozzie on Sunday July 17, 2016 @05:24AM
(#12109545)
Because that's the convention everywhere else.
Re:Just: A library of dependency-free JS utilities that do j...
by BillinghamJ on Sunday July 17, 2016 @07:31AM
(#12109806)
Right, but that's not the convention in Node. Anonymous functions always go last.