pavel veller - javascript overload - sugcon
TRANSCRIPT
Organized by the Community, for the Community.
JAVASCRIPT OVERLOAD
Pavel Veller,Director of R&D, BrainJocksSitecore MPV 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 2SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 3SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 4SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 5SUGCON NORTH AMERICA 2015
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
Organized by the Community, for the Community. 7SUGCON NORTH AMERICA 2015
CAN YOU SPEAK A PIPELINE ?
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 8SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 9SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 10SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 11SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 12SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 13SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 14SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 15SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 16SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 17SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 18SUGCON NORTH AMERICA 2015
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
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
Organized by the Community, for the Community. 21
WHERE TO LEARN MORE
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 22
TOUGH IT OUT
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 23
YOU WILL BE REWARDED
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 24SUGCON NORTH AMERICA 2015
THE FUTURE TODAY
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
Organized by the Community, for the Community. 26SUGCON NORTH AMERICA 2015
ARROW FUNCTIONS
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 27SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 28SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 29SUGCON NORTH AMERICA 2015
TEMPLATE STRINGS
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 30SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 31SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 32SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 33SUGCON NORTH AMERICA 2015
ASYNC / AWAIT
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 34SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 35SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 36SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 37SUGCON NORTH AMERICA 2015
TYPE SYSTEMS
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
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 39SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 40SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 41SUGCON NORTH AMERICA 2015
OLD SCHOOL
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 42SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 43SUGCON NORTH AMERICA 2015
CHUTZPAH TOWALLABY YOUR
KARMA
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 44SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 45SUGCON NORTH AMERICA 2015
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
Organized by the Community, for the Community. 47
BROWSER
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 48
VISUAL STUDIO
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 49
CONTINUOUS INTEGRATION
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 50
WALLABY
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 51SUGCON NORTH AMERICA 2015
Q & A
Organized by the Community, for the Community. 52SUGCON NORTH AMERICA 2015SUGCON NORTH AMERICA 2015
THANK YOU TO OUR SPONSORS!