i'm finally learning the hot new yavascript and it reminds me of the weekend i spent learning scheme minus the cadadadadadadaaddadaddaadaadr
-
-
Replying to @riyenakshi @nydwracu
it was envisioned as "scheme in the browser" in fact
1 reply 0 retweets 0 likes -
Replying to @alicemazzy @nydwracu
js is much more manageable if you pretend it is single-assignment and use something like lodash or ramda for most tasks imo
1 reply 0 retweets 0 likes -
-
Replying to @riyenakshi @nydwracu
oh ahh mb better to just learn it how it is normally done and mess around with more functional shit later then
1 reply 0 retweets 0 likes -
Replying to @alicemazzy @nydwracu
but idea is single-assignment (pretending variables can only be set once and never changed, which some other langs enforce)...
1 reply 0 retweets 0 likes -
Replying to @alicemazzy @nydwracu
...and structuring programs as pure transformations of data rather than mutating stuff all over the place makes entire classes...
1 reply 0 retweets 0 likes -
Replying to @alicemazzy @nydwracu
...of bugs just go away, and the whole thing much easier to reason about
2 replies 0 retweets 0 likes
this is a good intro to the style thohttps://www.google.com/amp/s/javascriptweblog.wordpress.com/2010/07/26/no-more-ifs-alternatives-to-statement-branching-in-javascript/amp/ …
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.