This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://twitter.github.io/scala_school/type-basics.html | |
// 트위터 스칼라 스쿨에 나오는 자료구조를 활용해보겠다. | |
class Animal { val sound = "rustle" } | |
class Bird extends Animal { override val sound = "call" } | |
class Chicken extends Bird { override val sound = "cluck" } | |
class Duck extends Bird { override val sound = "duck" } | |
def foo(tweet: Bird => String) = { | |
tweet(new Bird) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object TwiiterScalaFutureOps { | |
import TwitterScalaFutureConverters._ | |
implicit class ScalaToTwitterFuture[T](f: Future[T]) { | |
def toTwitterFuture: twitter.Future[T] = scalaToTwitterFuture(f) | |
} | |
implicit class TwitterToScalaFuture[T](f: twitter.Future[T]) { | |
def toScalaFuture: Future[T] = twitterToScalaFuture(f) | |
} |
-
아카 리더, 할리 지인 Konrad의 "The best is yet to come - State of Akka in 2017" http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8119
-
스칼라 매스크로 창시자, Eugene의 "Building code analysis tools at Twitter" http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8130
-
스칼라 컴파일시간 줄일수 있는 팁을 준다함 http://event.scaladays.org/scaladays-cph-2017#!#schedulePopupExtras-8141
Links on Must watch talks
-
A Year living Freely - Chris Myers
-
Programs as Values Pure Composable Database Access in Scala. In general each talk from Rob Norris is very useful for learning.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import java.time.Instant; | |
import java.time.OffsetDateTime; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeParseException; | |
public class Java8TimeTest { | |
private String instantFormat = "2007-12-03T10:14:30.000Z"; |
NewerOlder