There are 2 things you'll want to do when writing software. There's a third but, it's not important to the context of this tweet 1) Increase modularity (decrease coupling) 2) Increase readability The first involves using forms of abstractions (like patterns), the second...
-
Show this thread
-
...involves application of good language choices & norms (e.g. coding in the domain of the project). Can someone tell me on what teaching benefit did the
@TC39 agree to include arrow functions in ECMAScript in the way they were ? I may be wrong. I need in depth clarification2 replies 0 retweets 1 likeShow this thread -
Because, from what I have found out myself that arrow functions both decrease readability and decrease modularity. I think it would have been more expedient to setup arrow functions as a syntactically shorter way to write full-fledged functions Not in the way it was implemented
2 replies 0 retweets 1 likeShow this thread -
@rauschma@saniyusuf@jaffathecake I would love to have your take on this please3 replies 0 retweets 1 likeShow this thread -
-
Replying to @isocroft
How do arrow functions decrease modularity in your opinion?
1 reply 0 retweets 0 likes -
Replying to @mathias
you have to write them up as part of the calling context and so can't define them separately elsewhere especially if you need it to bind to that context
1 reply 0 retweets 0 likes
Sure you can! const fn = (x) => doSomething(x); Then pass fn around. Did I misunderstand what you mean?
-
-
Replying to @mathias
No you haven't... Now I have to create 2 functions. Fair enough How about readability?
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.