val m = mock[Hoge] ãããªæãã§å®ç¾©ããã¨æããã ãã©ãããã®ã¨ãã®Hogeã¯classãããªãã¨ãããªãããããobjectãããªãã¨ãã¡ãªãã ã£ã¦ã stackoverflow.com
Scalaã¨Java 8ã«é¢ãã ãã¬ã¼ã³ãã¼ã·ã§ã³ ããä»ã®ä¼¼ãå 容ã®ãã®ãããå¤ããªãã¤ã¼ãããã大å¤ããããæãã¾ããã ããããããã¦çããã«ããã°ã§ãæ¸ãã¦ãä¼ããããã¨ã«ãã¾ãããScalaã¨Javaã¨ã®éãã¨ãããããã®éè¦æ§ã«ã¤ãã¦ã話ããã¾ãã両è ã¯ç¸äºã«ã¤ããã¼ã·ã§ã³ãã¦ãã¾ããè¨èªéã§ãäºãã«åãå ¥ãã¦ãã¾ããã§ã¯ãJavaã使ããå ´åã§ãã£ã¦ããScalaãå¦ã¶å¿ è¦ãããã®ã§ããããï¼ããã¡ããã§ããããå¤ãã®è¨èªãç¥ãã°ç¥ãã»ã©ãããªãã¯ããã«ãããã§ãã·ã§ãã«ã«ãªã£ã¦ããã¾ãã ãããScalaã¨ã³ã¸ãã¢ã«Scalaã¨Javaã¨ã®åºæ¬çãªéãã«ã¤ãã¦å°ããã¨ãã¦ãããããããã®äººã¯ã©ã ãé¢æ°ã¨ãã¬ã¤ãã«é¢ããéããå ¨ã¦è¨ããã¨ã¯ãªãã§ãããã代ããã«æ¬¡ã®ãããªä¾ãåºãã¯ãã§ãã public class Person { private String firstN
3. Pre History 1980s Modula-2, Oberon 1990-95 Functional Programming 1995-98 Pizza 1998-99 GJ, javac 2000-02 Functional Nets, Funnel 3 4. 4 Minimal programming language based on type members and functional nets (a variant of join calculus) Analogous to Pict (Pierce and Turner 2001) for Pi-calculus. 5. A Minimal Language ⢠Idea of Funnel: Show that we can build a general programming language that c
Typesafeã§éçºããã¦ããAkkaã®æ¡å¼µæ©è½ã®1ã¤ã«akka-quartz-schedulerã¨ãããã®ãããã¾ãã https://github.com/typesafehub/akka-quartz-scheduler ããã¯Quartzã使ã£ã¦æå®ããã¿ã¤ãã³ã°ã§Actorãèµ·åãããã¨ãã§ããã¨ãããã®ã§ããPlayãªã©ã«çµã¿è¾¼ãã§ãããå¦çãåããã¨ãã£ãç¨éã«ãå©ç¨ã§ãã¾ãã ã¾ãã¯build.sbtã«ä»¥ä¸ã®ä¾åé¢ä¿ã追å ãakka-quartz-schedulerã®ãã¼ã¸ã§ã³ã¯ä½¿ã£ã¦ããAkkaã®ãã¼ã¸ã§ã³ã«ãã£ã¦å¤ããå¿ è¦ãããã¾ãã resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesa
ã¦ã©ã«ãã¼ãã«ããã®éçºãæ å½ããKevin Webberããã¨ã³ã¿ã¼ãã©ã¤ãºåãã®éçºãåæã¨ããPlayãã¬ã¼ã ã¯ã¼ã¯ + Scalaã®å©ç¨ã«ã¤ãã¦ãè¬æ¼ãã¦ãã¾ãã ã¾ãUIã¾ããã®ã¢ã¼ããã¯ãã£ã«ã¤ãã¦ãPlayãAPIã¨ãã¦å©ç¨ãããã¿ã¼ã³ã¨ãPlayãè¤æ°ã®SPA (Single Page Web Application)ã®ãã¹ãã¨ãããã¿ã¼ã³ã®äºã¤ãç´¹ä»ã 1) UIãç©ççã«åãã æ§æå³ä¾ï¼ãã㪠6å40ç§æç¹ï¼ Playãã¬ã¼ã ã¯ã¼ã¯ãRESTful APIã¨ãã¦ä½¿ããPlayã«ã¯ããã³ãå´ã®ã³ã¼ããç½®ããªããåUIã¯ãPlay APIã®ã¯ã©ã¤ã¢ã³ãã¨ããä½ç½®ã¥ãã«ãªãã ãã®å ´åã®UIã®é¸æè¢ã¯ã JavaScriptãã¬ã¼ã ã¯ã¼ã¯ãHTML5/CSS/Javascript etc. ãã¤ãã£ãã¢ãã¤ã«ã¢ã㪠æ¨æºçãªwebãããã³ã«ã§éä¿¡ã§ãããã®ã§ããã°ä½ã§ãã
ã©ã®ãããªããã°ã©ãã³ã°è¨èªã使ã£ã¦ããæ¬æ ¼çãªå¿ç¨ã§ã¯åºæ¬ã©ã¤ãã©ãªã ãã§ãã¼ãºãæºãããã¨ãããã¨ã¯ãªããç¨éã«å¿ãã¦å¤é¨ã©ã¤ãã©ãªãä½µç¨ãããã¨ã«ãªãã¾ãã Scalaããã°ã©ãã³ã°ãããä¸ã§ããã¯çã«å¸¸ã«ä½¿ç¨ããã©ã¤ãã©ãªã¨ããã®ãã ãããåºã¾ã£ã¦æ¥ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããã scalaz以ä¸ã®çç±ã§ææ¾ããªãã©ã¤ãã©ãªã«ãªã£ã¦ãã¾ãã ãããããScalazãã¨ãã¦ãç´¹ä»ãã¦ããå種ã®ä¾¿å©æ©è½åã¯ã©ã¹Monoidã®åå¨ç´ç²é¢æ°åãã¼ã¿æ§é Treeã¾ã使ç¨é »åº¦ã¯è½ã¡ã¾ããã以ä¸ã®æ©è½ãé åçã§ãã åã¯ã©ã¹Traverse/Foldableç´ç²é¢æ°åãã¼ã¿æ§é EphemeralStreamTask/Futureæè¿scalaz-steramã使ã£ã¦ãã¦ãã©ããTaskã便å©ããããã¨ãããã¨ãåãã£ã¦ãã¾ããããããã使ç¨é »åº¦ãé«ããªãããããã¾ãããScalaã®Future/Pro
Copyright © GREE, Inc. All Rights Reserved. (Scala ) 2014/04/30 Version 1.0 Copyright © GREE, Inc. All Rights Reserved. ⢠⢠10 : F-BASIC, N88-BASIC ⢠20 : (x86), C/C++ ⢠30 : Java, Seasar2, OSS, DDD ⢠40 : DDD, Scala, Finagle/Trinity ⢠⢠+ 2 Copyright © GREE, Inc. All Rights Reserved. Copyright © GREE, Inc. All Rights Reserved. Scala DDD Copyright © GREE, Inc. All Rights Reserved. ⢠⢠⢠5 Copyrigh
ä¾ãã°Play2ã¢ããªãä½ã£ã¦ãã¦ãã¹ããæ¸ãããå ´åãä¾ãã°DBã使ã£ããã¹ããªã©ãã¢ããªã±ã¼ã·ã§ã³ã®ã³ã³ããã¹ãã«ä¾åãããã¹ããæ¸ãå ´åãfakeApplicationãèµ·åããªãã¨ããã¾ããã ã§ããããã¹ãã±ã¼ã¹ãã¨ã«fakeAppèµ·åãã¦ãããã¹ããé ããªãã®ã§ãä¾ãã°JUnitãªã@BeforeClassã@AfterClassã¢ããã¼ã·ã§ã³ã使ã£ã¦ãã®ãã¹ããã¡ã¤ã«ã®æåã¨æå¾ã«ä¸åº¦ã ãèµ·ååæ¢ãè¡ããã¿ããã«ããã¨ãã¹ãã±ã¼ã¹ãã¨ã®èµ·ååæ¢ããªããªã£ã¦ãã¹ããæ©ããªãã¾ãã ä»Play2(Scala)ã§ã¢ããªãæ¸ãã¦ããã®ã§ãããScalaã®å ´åä½ãèããªããã°Specs2ã使ã£ã¦æ¸ããã¨ã«ãªãããã§ãããSpecs2ã§ä¸è¨ã®ãã¨ããããã¨æã£ãå ´åã©ãæ¸ãã°ããã®ããåãããªãã¦ã¦ã³ã¦ã³å¸ã£ã¦ãã®ãããã解決ã§ããã®ã§ãã®åå¿é²ã§ãã çµè«ããè¨ãã¨stepã¨ããã®ã使
æè¿playframework2.1ãã¡ããã¨ä½¿ããããªãã¨æã£ãã®ã§ãScalaå«ãã¦è²ã 調ã¹ã¦ã¾ãã ã§ãããã¥ã¡ã³ããçºãã¦ã¦æ°ã«ãªã£ãã®ãO/Rããããplay1.2ç³»ã®ããã¯EBeançã®O/Rããããå©ç¨ã§ãããã§ãããplay2.1ç³»ã§ã¯ãªããªã£ã¦ãï¼ä¸å¿Anormã¨ããä»çµã¿ã§SQLãçºè¡åºæ¥ã¾ãããSQLç´æ¸ãããã®ã¯å°å¦çã¾ã§ããã¼ï¼ï¼çãªæãã ã§ãæ´ã«èª¿ã¹ã¦ã¿ãã¨ãtypesafeã§Slickã¨ããO/Rããããããã®ã§ããããè¯ããããããï¼ã£ã¦ãã¨ã§ã試ãã¦ã¿ã¾ããã æ¬æ¥ã¯playããå©ç¨ããã®ããã¹ãã§ãããå®é¨ãªã®ã§ã¹ã¿ã³ãã¢ãã³ã§ã build.sbtã¨plugin.sbtã®æºå ã¾ãã¯sbtã§ç°å¢ãä½ãã¨ããããã以ä¸ã®ããã«build.sbtãä½æ ``` scala build.sbt name := âslicksampleâ version :
Playã«ã¯ãHTTPéä¿¡ããããã®ã©ã¤ãã©ãªãç¨æããã¦ã¾ãã play.api.libs.ws.WS ã¨ãããã¤ã§ããã ããã¥ã¡ã³ãã«ãããéããããã使ãã°æéããããã§ãããHTTPéä¿¡ãéåæã«è¡ããã¨ãã§ãã¾ãã http://www.playframework-ja.org/documentation/2.0.4/ScalaWS WS ã使ã£ã¦RSSãåå¾ãã¦ã¿ã¾ããã 使ã£ãã®ã¯Play2.1.1ã§ãã GETãªã¯ã¨ã¹ããã 以ä¸ã®ããã«ãGETãªã¯ã¨ã¹ãã§ãã¾ããçµæã¯Futureã§è¿ã£ã¦ãã¾ãã val rss: Future[ws.Response] = WS.url("http://example1/atom.xml").get() Futureãåãã£ã¦ã人ã¯ããããã§çµããã§ãã ã§ããããã¯Futureãããåãã£ã¦ãªãã®ã§ã1ã¤ãã¤è§£ãã»ããã¦ããå¿ è¦ãã
IntelliJ IDEA 13.0.2ã§ãå©ç¨ããã ããScalaãã©ã°ã¤ã³ã®ææ°ç(v0.30.375)ã§ã¯SBT incrementalãIntelliJ IDEAå èµã®ãã®ããã³ã³ãã¤ã©ãé¸ã¹ã¾ãã å¾è ã¯IntelliJ IDEAã®ãã¤ãã³ã¼ãä¾åã¢ãã©ã¤ã¶ããã¼ã¹ã«ããæ°ãããã«ãã¤ã³ã³ã³ãã¤ã©ã§ãScalaç¹æã®ã½ã¼ã¹ã³ã¼ãéã®ä¾åãç¡è¦ãããã¨ã§æ大ã§25%ã®é«éåãå®ç¾ãã¦ãã¾ãããã®ææ³ãJetBrainsã§ã¯âlower precision approachâ(ä½ç²¾åº¦ã¢ããã¼ã)ã¨å¼ãã§ãã¾ãããªããªãããã©ã¼ãã³ã¹ã«ãã©ã¼ã«ã¹ãããããå¹¾åæ£ç¢ºæ§ãç ç²ã«ãã¦ããããã§ãã ãã©ã°ã¤ã³ãã®ãã®ãã³ã³ãã¤ã«ããéã®ãã³ããã¼ã¯çµæã以ä¸ã«ç¤ºãã¾ã: æ°ããã³ã³ãã¤ã©ã¯ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ãã®ã§ãããã«ã©ããããã³ã³ãã¤ã©ãæ©ããªã£ã¦ãããå®æåºæ¥ããã¨ã§ãããã
ScalaSeamless data access for your Scala application â Write Scala code to query your database. Type SafeAll database entities and queries are statically checked at compile-time. Slick is an advanced, comprehensive database access library for Scala with strongly-typed, highly composable APIs. Slick makes it easy to use your database in a way thatâs natural to it. It allows you to work with relatio
2. èªå·±ç´¹ä» î åå : ä¸å® î ã¯ã¦ãª : id mollifier î twitter : @mollifier î ç¥æ¸ã®ããã°ã©ã 4. ããã°ã¨ã î ã¯ã¦ãªããã° http://mollifier.hatenablog.com/ î twitter http://twitter.com/mollifier î slideshare http://www.slideshare.net/mollifier î github https://github.com/mollifier
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}