Scala.js and Algebraic Data Types

Month: June 2019

Scala.js and Algebraic Data Types

Last time I started the discourse about the place of Scala in front-end development. My point, roughly , is that it should take business logic and leave view rendering to JavaScript. But some difficulties can appear while someone tries to bind both languages together. In my previous post I talked about Scala – JavaScript classes two-way conversion. Today I’m going to make one step further and take an example with Algebraic Data Types. Say, we have to develop an application that helps to deal with stock trading. We will buy and sell assets and our program will keep all records

Continue Reading