javascript overload - sugcon presentation

51
Organized by the Community, for the Community. JAVASCRIPT OVERLOAD Pavel Veller, Director of R&D, BrainJocks Sitecore MVP 2015

Upload: brainjocks

Post on 20-Jan-2017

512 views

Category:

Technology


0 download

TRANSCRIPT

Organized   by  the  Community,   for  the  Community.

JAVASCRIPT  OVERLOAD

Pavel  Veller,Director  of  R&D,  BrainJocksSitecore MVP  2015

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 2

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 3

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 4

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 5

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 6

1.  CAN  YOU  SPEAK A PIPELINE ?

2.    WHY  WRITE  JAVASCRIPT LIKE  IT’S  C#  2.0?

3.  CHUTZPAHTO  WALLABYYOUR  KARMA

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 7

CAN  YOU  SPEAKA  PIPELINE ?

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 8

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 9

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 10

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 11

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 12

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 13

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 14

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 15

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 16

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 17

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 18

Organized   by  the  Community,   for  the  Community.

SPOP  VS.  SPEAK

SPOP

• Web.config

• Config patch

• C#

• Server-­‐Side

• Proceed  with  caution

SPEAK

• core database

• Item(s)  deployment

• JavaScript

• Client-­‐Side

• Proceed  with  caution

SUGCON   NORTH  AMERICA   2015 19

DECLARED

PATCHED

LANGUAGE

RUNTIME

MULTI-­‐TENANCY

Organized   by  the  Community,   for  the  Community.

RECOMMENDATIONS

• Reverse  engineer  and  trace  a  few  built-­‐in  before  you  build  your  first  one

• Pay  attention  to  the  interface  convention  (e.g.  empty  processor)

• You  know  a  lot  less  in  the  client  side  than  you  do  back  home

• DevTools  is  your  best  friend

SUGCON   NORTH  AMERICA   2015 20

Organized   by  the  Community,   for  the  Community.

WHERE  TO  LEARN  MORE

SUGCON   NORTH  AMERICA   2015 21

Organized   by  the  Community,   for  the  Community.

TOUGH  IT  OUT

SUGCON   NORTH  AMERICA   2015 22

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 23

THE  FUTURETODAY

Organized   by  the  Community,   for  the  Community.

C#  2.0• No Lambda  Expressions• No Implicit  Typing• NoAnonymous  Types• NoObject  and  Collection  Initializers• No Expression  Trees• No LINQ• No dynamic• No async/await

SUGCON   NORTH  AMERICA   2015 24

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 25

ARROW  FUNCTIONS

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 26

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 27

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 28

TEMPLATE  STRINGS

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 29

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 30

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 31

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 32

ASYNC /  AWAIT

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 33

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 34

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 35

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 36

TYPE    SYSTEMS

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 37

Your  IDE  can  only  do  as  much  as  your  language's  type  system allows  it  to  confidently infer

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 38

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 39

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 40

OLD  SCHOOL

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 41

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 42

CHUTZPAHTOWALLABYYOUR

KARMA

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 43

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015SUGCON   NORTH  AMERICA   2015 44

Organized   by  the  Community,   for  the  Community.

TEST  SUITE  THAT:

• Runs  in  your  browser  (so  you  can  debug)• Runs  in  Visual  Studio  along  with  other  tests• Runs  in  command  line• Runs  on  the  build  machine  (with  reports)

• BONUS:  Runs  continuously  and  concurrently  with  instant  green/red  feedback  loop  (NCrunch-­‐style)

SUGCON   NORTH  AMERICA   2015 45

Organized   by  the  Community,   for  the  Community.

BROWSER

SUGCON   NORTH  AMERICA   2015 46

Organized   by  the  Community,   for  the  Community.

VISUAL  STUDIO

SUGCON   NORTH  AMERICA   2015 47

Organized   by  the  Community,   for  the  Community.

CONTINUOUS  INTEGRATION

SUGCON   NORTH  AMERICA   2015 48

Organized   by  the  Community,   for  the  Community.

WALLABY

SUGCON   NORTH  AMERICA   2015 49

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015 50

Q  &  A

Organized   by  the  Community,   for  the  Community.SUGCON   NORTH  AMERICA   2015

SM

51SUGCON   NORTH  AMERICA   2015

THANK  YOU  TO  OUR  SPONSORS!