voxxed days belgrade - spring boot & kotlin, a match made in heaven

Download Voxxed Days Belgrade - Spring Boot & Kotlin, a match made in Heaven

Post on 08-Jan-2017

571 views

Category:

Software

1 download

Embed Size (px)

TRANSCRIPT

PowerPoint Presentation

Spring Boot and Kotlin, a match made in Heaven@nicolas_frankel

Me, Myself and I@nicolas_frankel #kotlin #springbootBy dayConsultantBy nightDeveloperBloggerBook authorTeacher/trainer

2

2

hybris, an SAP company

@nicolas_frankel #kotlin #springboot3

HCP startup challenge@nicolas_frankel #kotlin #springboot4Preparation WorkshopOctober 4th, 10:00 AMStartIt Centar,Savska 5,11000 Beograd, Serbiahttp://www.hcpstartupchallenge.com/

@nicolas_frankel #kotlin #springboot

@nicolas_frankel #kotlin #springboot

Why spring Boot?@nicolas_frankel #kotlin #springbootConvention over configurationKickstart a project in minutes, not daysOut-of-the-box featuresActuator

7

@nicolas_frankel #kotlin #springboot8

Kotlin@nicolas_frankel #kotlin #springbootOpen SourceCompiles toJVM bytecodeJavaScript (experimental)A "simpler Scala"

@nicolas_frankel #kotlin #springboot9

9

Kotlin main features@nicolas_frankel #kotlin #springbootFunctional and object-orientedStatically typedNull safetyNo checked exceptionsNamed & optional argumentsLambdasExtension functionsJava compatibility(And more...)@nicolas_frankel #kotlin #springboot

10

Kotlin main benefits@nicolas_frankel #kotlin #springbootMore expressive than JavaImproved OOFunctional too

11

Hello Kotlin!package hello // no semicolons

// namespace-level functions// types on the right// no special syntax for arrays// optional return typefun main(args: Array) { println("Hello Kotlin!")}@nicolas_frankel #kotlin #springboot@nicolas_frankel #kotlin #springboot12

The killer feature: extensions@nicolas_frankel #kotlin #springbootExtension methodsExtension properties

13

Extension method@nicolas_frankel #kotlin #springbootAdd new methods on an existing typeCalled like a method on the typeTranslated to static Util method in the bytecode

14

Enough talk

@nicolas_frankel #kotlin #springbootTime for DEMO15

Key takeaways@nicolas_frankel #kotlin #springboot

16

Q&A@nicolas_frankel #kotlin #springboothttp://blog.frankel.ch/@nicolas_frankel http://frankel.in/https://git.io/vVSLG

17