They're functional! They're efficient!! They're...

They're functional! They're efficient!! They're persistent data structures!!!

Functional programming is a cool paradigm to work in, because avoiding mutable objects can save you a lot of headaches! But when you’re using only immutable objects, you have to create a new object each time something changes, which means copying even the parts that didn’t change! This can slow things down, and you might even run out of memory!

Fear not: persistent data structures to the rescue! They save you time and space when modifying objects, by reusing parts of the old object that you don’t need to change! Let’s find out what that means and why it is SO AWESOME! And let’s learn how to easily use these structures in JavaScript!

(Given at !!Con 2016 - http://bangbangcon.com/)

Anjana Sofia Vakil

May 08, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

42 slides
  1. 0RUL KWWSVVZDQQRGHWWHJLWKXELRPRUL Q<MAÓHJMD‰Q@>OJMŸ¼†½ ‡ Q<MRÓHJMD‰>JIEŸA†¾ ‡ Ɣ &ORMXUH6FULSWSRUW Ɣ )XQFWLRQDO$3,

    Ɣ )DVW ,PPXWDEOHMV KWWSVIDFHERRNJLWKXELRLPPXWDEOHMV Q<MAÓ HHPO<=G@‰DNO‰JAŸ¼†½ ‡ Q<MRÓA‰KPNCŸ¾ ‡ Ɣ -6WKURXJK WKURXJK Ɣ 3XEOLFPHWKRGV Ɣ $ELWVPDOOHUWKDQ0RUL -DYD6FULSW

More Decks by Anjana Sofia Vakil

Other Decks in Programming