merari42@lemmy.world to Programmer Humor@programming.dev · 19 hours agoThe state should be purely passed through function inputs and outputslemmy.worldimagemessage-square100fedilinkarrow-up1810arrow-down15cross-posted to: flippanarchy@lemmy.dbzer0.com
arrow-up1805arrow-down1imageThe state should be purely passed through function inputs and outputslemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 19 hours agomessage-square100fedilinkcross-posted to: flippanarchy@lemmy.dbzer0.com
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up7·12 hours agoJavascript: I heard you like mutating class data so I’m mutating the data you can put in your class data, dawg.
minus-squareZagorath@aussie.zonelinkfedilinkarrow-up1·5 hours agoTo be fair to JavaScript (I feel gross just saying that), it does have the ability to do some more functional-like programming as well. For example, many of its more recent array methods like filter, map, and reduce are pure functions.
Javascript:
I heard you like mutating class data so I’m mutating the data you can put in your class data, dawg.
To be fair to JavaScript (I feel gross just saying that), it does have the ability to do some more functional-like programming as well. For example, many of its more recent array methods like filter, map, and reduce are pure functions.
JavaScript: a language for mutants.