Skip to content

Instantly share code, notes, and snippets.

@deusaquilus
deusaquilus / Reports.scala
Created June 25, 2018 03:20
Type Member in Spark Report
// Sample report base-class:
trait Report {
type T
def apply(runtimeConf:MyConf)(encoder:spark.sql.Encoder[T]):Unit
}
// Sample implementation:
class OrdersReport {
type T = OrderRecord
def runReport(runtimeConf:MyConf)(encoder:spark.sql.Encoder[OrderRecord]):Unit
Introduction / Motivation
Curriculum---what you teach
- How to present Scala (OO, functional)
- Design patterns
Pedagogy---how you teach it
Technology to support teaching
Examples to motivate different students
Who Can Support It / Develop It
Why Invest in Learning Scala?