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...
How do arrow functions decrease modularity in your opinion?
-
-
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
-
Sure you can! const fn = (x) => doSomething(x); Then pass fn around. Did I misunderstand what you mean?
- 1 more reply
New conversation -
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.