Top Banner
Modules Use Cases, Semantics @littlecalculist, @samth, @wycats
33

Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Sep 12, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

ModulesUse Cases, Semantics@littlecalculist, @samth, @wycats

Page 2: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 3: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

don’t give up! we’re almost there

http://www.flickr.com/photos/iwona_kellie/4903753390

Page 4: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 5: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 6: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 7: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

minimalism – innested modules – out

Page 8: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 9: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 10: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseModule paths

Page 11: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

(needs better name)

Page 12: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

(needs better name)

Page 13: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseLinting

Page 14: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 15: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseCompiling to JS

Page 16: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 17: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseAMD-style plugins

Page 18: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

typo; should be mod

Page 19: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseImporting legacy libraries

Page 20: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

typo; should be source

Page 21: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseImporting from AMD

Page 22: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 23: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseImporting into Node

Page 24: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 25: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Use caseSingle-export modules

Page 26: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

typo; should be metadata

Page 27: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

can, should do bettergoal – simple sugar

Page 28: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes

Big picture

Page 29: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 30: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 31: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 32: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes
Page 33: Modules€¦ · JavaScript Source Betutn-an-QÞjegg The Object includes a list of a factory to call once the dependencies are loaded. The factory wil return a %dule, which completes