Giter Club home page Giter Club logo

empty-project's Introduction

Episode 1

Stuff

  • val/var/def/lazy
  • String/Int
  • object/trait/class (abstract?)
  • Constructor and public values
  • The apply method / everything is a function (e.g. +)
  • Companion object
  • case class
  • apply / copy
  • Tuples
  • ScalaTest
  • sbt
  • sbt run / sbt test
  • open sbt console
  • open idea scratch

Excercise

  • Write a case class containing a position and a username (both are strings)
    • Write a function to replace the position
    • Obviously with tests (verify the original case class wasn't changed)
    • add a counter field that counts how many times the object changed position
  • Add a new case class that only contains the username
    • both case classes need to implement the same trait (trait contains the username)

Episode 2

Stuff

  • if
  • Match
  • Collections
    • List
  • Monads
    • Either
    • Try
    • Option
  • for-comprehension

Excercise

https://github.com/trayio/scala-be-interview/blob/master/task5/src/main/scala/io/tray/UserScoreService.scala https://github.com/trayio/scala-be-interview/blob/master/task1/src/main/scala/io/tray/services/WorkflowService.scala

Episode 3

  • Implicits
  • currying
  • partial function
  • Futures
  • Value Classes
  • Tagged types
  • Pure config

Excercise

[https://github.com/trayio/scala-be-interview/blob/master/task2/src/main/scala/io/tray/services/UserService.scala]

empty-project's People

Contributors

mone avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.