Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into an interactive live coding session from Scala Days Copenhagen 2017 where Pathikrit Bhowmick demonstrates the power of Scala Meta to create a code generator for REST APIs. Explore the world of Scala macros, learning how to leverage them for both practical applications and enjoyment. Follow along as the session covers topics such as Scala Meta basics, macro systems, QuasiCores, and their practical implementation. Witness the step-by-step process of building an SBT project, working with annotations, companion objects, and overcoming compilation errors. Gain insights into creating case classes, handling parameters and modifiers, and integrating models into companion objects. By the end of this 52-minute session, acquire the knowledge and confidence to experiment with macros in your own Scala projects.
Syllabus
Intro
Scala Meta
Scala Macros
Promise Code
Expectations
Macros
Macro System
Macros Everywhere
QuasiCores
Using QuasiCores
Resources
Documentation
Problem
SBT Project
Annotations
Companion object
Compliation error
Creating the case class
Parameters
Modifiers
Inserting Models into Companion Objects
Type
Test pass
Data access layer
Update model
Plug
Question
Taught by
Scala Days Conferences