development with Scala
Who am I?
● Scala Programmer at BizReach, Inc
● 4+ years Scala experience
● GitBucket developer / Scalatra committer
● A game written in Scala for learning Scala
● Inspired by Ruby Warrior
● Based on Scala.js, ScalaTags and ScalaCSS
Architecture of Scala Warrior
2. Compile Scala code to
1. Send Scala code edited by user
Scala.js is universal!
Play project (server-side)
Scala.js project (client-side)
Cross-build project (common)
● Need type mapping like .d.ts
○ scala-js-ts-importer can convert from .d.ts
○ You can find a lot of .d.ts at DefinitelyTyped
○ But can't convert perfectly...
● js.Dynamic (not type-safe)
val editor: Dynamic = global.ace.edit("editor")
● Type-safe XML/HTML generation library
● Scala and Scala.js support
Why Scala in frontend?
● Scala.js is not ALL or NOTHING!
○ Scala programmers can provide libraries for
frontend using Scala.js
tools and frameworks