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

Pavel Veller - JavaScript overload - SUGCON

  • Upload
    sugcon

  • View
    196

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community.

JAVASCRIPT OVERLOAD

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

Page 2: Pavel Veller - JavaScript overload - SUGCON

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

Page 3: Pavel Veller - JavaScript overload - SUGCON

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

Page 4: Pavel Veller - JavaScript overload - SUGCON

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

Page 5: Pavel Veller - JavaScript overload - SUGCON

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

Page 6: Pavel Veller - JavaScript overload - SUGCON

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

1. CAN YOU SPEAK A PIPELINE ?

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

3. CHUTZPAH TO WALLABY YOUR KARMA

Page 7: Pavel Veller - JavaScript overload - SUGCON

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

CAN YOU SPEAK A PIPELINE ?

Page 8: Pavel Veller - JavaScript overload - SUGCON

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

Page 9: Pavel Veller - JavaScript overload - SUGCON

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

Page 10: Pavel Veller - JavaScript overload - SUGCON

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

Page 11: Pavel Veller - JavaScript overload - SUGCON

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

Page 12: Pavel Veller - JavaScript overload - SUGCON

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

Page 13: Pavel Veller - JavaScript overload - SUGCON

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

Page 14: Pavel Veller - JavaScript overload - SUGCON

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

Page 15: Pavel Veller - JavaScript overload - SUGCON

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

Page 16: Pavel Veller - JavaScript overload - SUGCON

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

Page 17: Pavel Veller - JavaScript overload - SUGCON

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

Page 18: Pavel Veller - JavaScript overload - SUGCON

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

Page 19: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 19

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

DECLARED

PATCHED

LANGUAGE

RUNTIME

MULTI-TENANCY

Page 20: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 20

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

• Dev Tools is your best friend

SUGCON NORTH AMERICA 2015

Page 21: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 21

WHERE TO LEARN MORE

SUGCON NORTH AMERICA 2015

Page 22: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 22

TOUGH IT OUT

SUGCON NORTH AMERICA 2015

Page 23: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 23

YOU WILL BE REWARDED

SUGCON NORTH AMERICA 2015

Page 24: Pavel Veller - JavaScript overload - SUGCON

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

THE FUTURE TODAY

Page 25: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 25

C# 2.0

• No Lambda Expressions• No Implicit Typing• No Anonymous Types• No Object and Collection

Initializers• No Expression Trees• No LINQ• No dynamic• No async/await

SUGCON NORTH AMERICA 2015

Page 26: Pavel Veller - JavaScript overload - SUGCON

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

ARROW FUNCTIONS

Page 27: Pavel Veller - JavaScript overload - SUGCON

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

Page 28: Pavel Veller - JavaScript overload - SUGCON

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

Page 29: Pavel Veller - JavaScript overload - SUGCON

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

TEMPLATE STRINGS

Page 30: Pavel Veller - JavaScript overload - SUGCON

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

Page 31: Pavel Veller - JavaScript overload - SUGCON

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

Page 32: Pavel Veller - JavaScript overload - SUGCON

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

Page 33: Pavel Veller - JavaScript overload - SUGCON

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

ASYNC / AWAIT

Page 34: Pavel Veller - JavaScript overload - SUGCON

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

Page 35: Pavel Veller - JavaScript overload - SUGCON

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

Page 36: Pavel Veller - JavaScript overload - SUGCON

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

Page 37: Pavel Veller - JavaScript overload - SUGCON

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

TYPE SYSTEMS

Page 38: Pavel Veller - JavaScript overload - SUGCON

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

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

Page 39: Pavel Veller - JavaScript overload - SUGCON

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

Page 40: Pavel Veller - JavaScript overload - SUGCON

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

Page 41: Pavel Veller - JavaScript overload - SUGCON

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

OLD SCHOOL

Page 42: Pavel Veller - JavaScript overload - SUGCON

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

Page 43: Pavel Veller - JavaScript overload - SUGCON

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

CHUTZPAH TOWALLABY YOUR

KARMA

Page 44: Pavel Veller - JavaScript overload - SUGCON

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

Page 45: Pavel Veller - JavaScript overload - SUGCON

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

Page 46: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 46

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

Page 47: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 47

BROWSER

SUGCON NORTH AMERICA 2015

Page 48: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 48

VISUAL STUDIO

SUGCON NORTH AMERICA 2015

Page 49: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 49

CONTINUOUS INTEGRATION

SUGCON NORTH AMERICA 2015

Page 50: Pavel Veller - JavaScript overload - SUGCON

Organized by the Community, for the Community. 50

WALLABY

SUGCON NORTH AMERICA 2015

Page 51: Pavel Veller - JavaScript overload - SUGCON

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

Q & A

Page 52: Pavel Veller - JavaScript overload - SUGCON

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

THANK YOU TO OUR SPONSORS!