why to use scala for building public apis

15
Y 4 ? Public API

Upload: yonatan-maman

Post on 19-Jan-2017

222 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Why to use Scala for building Public APIs

Y 4 ? Public API

Page 2: Why to use Scala for building Public APIs

@yonatanm

Page 3: Why to use Scala for building Public APIs

Outbrain

0.5B> 250B>Unique Visitors RecommendationS

per Month

Page 4: Why to use Scala for building Public APIs

http://json2caseclass.cleverapps.io/http://json2caseclass.cleverapps.io/

JSONs all overCae clas to the recue

.json

.scala

Page 5: Why to use Scala for building Public APIs

Ohh :-( …

Page 6: Why to use Scala for building Public APIs

Retrieve != Update != Create

case class == DTO

Clones ? Not Really !

Page 7: Why to use Scala for building Public APIs

So you have many DTOS

How TO handle

Transformations ???

Page 8: Why to use Scala for building Public APIs

Transformers ?

Page 9: Why to use Scala for building Public APIs

Transformers !

Page 10: Why to use Scala for building Public APIs

Beware of the Evil Implicit

Page 11: Why to use Scala for building Public APIs

Immutability to Infinity and beyond

Page 12: Why to use Scala for building Public APIs

is your only Option

Page 13: Why to use Scala for building Public APIs

D.R.Y – use Trait

Page 14: Why to use Scala for building Public APIs

Enumeration ?

Not Really

Page 15: Why to use Scala for building Public APIs

Much more to talk aboutWant to know more ?

Contact us