æ¡å¼µå¯è½ã¬ã³ã¼ãã®ã©ã¤ãã©ãªrecord4sã«ã¤ãã¦ScalaMatsuri 2024ã§çºè¡¨ãã¾ãã
ScalaMasturi 2024ã§, æä½ã®æ¡å¼µå¯è½ã¬ã³ã¼ãã®ã©ã¤ãã©ãªrecord4sã«ã¤ãã¦çºè¡¨ãã¦ãã¾ãã.
çºè¡¨ã§è§¦ããããªãã£ãç¹ãè£è¶³ããªãã, å 容ãæç« ã«ãã¦ãããã¨æãã¾ã. ã¨ãã«record4s以å¤ã®ã¬ã³ã¼ãå®è£ ã¨ã®æ¯è¼ã«ã¤ãã¦ã¯ãã®è¨äºã§ã®å®å ¨æ¸ãä¸ããã§ã.
ç¶ããèªãæ ªå¼ä¼ç¤¾ä¸ä¼ã«å ¥ç¤¾ãã¾ãã
転è·ã®ãç¥ããããããã¯å人ã®æ¥è¨ã§ãã
6æãã以ä¸ã®ããã«æå±å¤æ´ã¨ãªã£ã¦ãã¾ãã
ããã¼ã¸ã£ã§ã¯ãªããã¨ãã«å½¹è·ã®ãªãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã¨ãã¦åãã¾ããããããIC (individual contributor)ã¨ãããã¤ã§ãã
ç¶ããèªãScalaã©ã¤ãã©ãªã®ããã¸ã§ã¯ãè¨å®ã«ãã¹ããã©ã¯ãã£ã¹ãé©ç¨ãã¦ãããsbt-typelevel
ãã®è¨äºã¯Scala Advent Calendar 2023ã®13æ¥ç®ã§ã.
Scalaã®ã©ã¤ãã©ãªãä½ãã¨ã, è¤æ°ã®Scalaãã¼ã¸ã§ã³ã«å¯¾å¿ããã¦ã¯ãã¹ãã©ãããã©ã¼ã (JVM, Scala.js, Scala Native)ã«å¯¾å¿ããã¦, CIãè¨å®ãã¦...ã¨ããã®ã¯å²ã¨é¢åã§ã. å®ã¯sbt-typelevelã¨ããsbtãã©ã°ã¤ã³ã使ãã¨, ãã®è¾ºã®é¢åãªè¨å®ãã»ã¨ãã©ããæãã«ãã£ã¦ããã¾ã.
ãã®è¨äºã§ã¯, sbt-typelevelã®åºæ¬çãªå°å ¥æ¹æ³ã¨, ç´°ããè¨å®ãã¦ãã¦ãç´¹ä»ãã¾ã.
ç¶ããèªãScala 3ã®ãã¯ãTips 100é£çº
ãã®è¨äºã¯Scala Advent Calendar 2023ã®12æ¥ç®ã !
Scala 3ã®ãã¯ããæ¸ãä¸ã§å½¹ã«ç«ã¤, ã¡ã¿ããTipsãã¡ãç´¹ä»ããã! å¢ãã«ä»»ãã¦æ¸ãã¦ãããããµã³ãã«ã³ã¼ããã¡ããã¨åããªãã£ããããããª. ä¸å¿, Scala 3.3.1ãæ³å®ãã¦ããã.
ç¶ããèªãããããããã°ã©ãã³ã°è¨èªã®æå 端ãè¡ãScala 3ã®ãã¯ã
ãã®è¨äºã¯Scala Advent Calendar 2023ã®11æ¥ç®ã§ã.
æè¿, 趣å³ã§Scala 3ã®ã³ã¼ããã ãã¶æ¸ãã¦ãã¦, ãã¯ãã®ä½¿ãå¿å°ã®ããã«æå¿ãã¾ãã. çè«çãªèæ¯ãå«ãã¦, ç£æ¥çã§å¤ã使ããã¦ããããã°ã©ãã³ã°è¨èªã®ä¸ã§ã¯çè ã®ç¥ãéãã¶ã£ã¡ããã«åªãããã¯ããåãã¦ãã¾ã. ä»ã®è¨èªã«ãè¦ç¿ã£ã¦ã»ããã§ãã. ãã¶ãè¦ç¿ããã¨ããã¨å¦çç³»ãä½ãç´ãç¾½ç®ã«ãªãã¾ãã.
ãã®è¨äºã§ã¯Scala 3ã®ãã¯ãã®ãããã¨ãããä¾ã使ã£ã¦ç´¹ä»ãã¾ã.
ç¶ããèªãé¨ååã«ãããå¤æ§ã¨æ¥µæ§ - ãªãScalaã®å¤æ§ã¯+ã-ã§æå®ããã®ã
ãã®è¨äºã¯Scala Advent Calendar 2022ã®19æ¥ç®ã§ã.
Scalaã§ã¯ã¸ã§ããªãã¯åã®å¤æ§(variance)ã¯+
ã-
ã§æå®ãã¾ãã, ä»ã®è¨èª(ãã¨ãã°, C#, Kotlin)ã§ã¯out
ãin
ã ã£ãããã¾ã. ãã®è¨äºã§ã¯å¤æ§ã®æå³ãæ´çãã¦, ãªãScalaã§ã¯+
/-
ã®è¨å·ã使ãã®ã説æãã¾ã.
- 追è¨
- ãã ã, ããã§èª¬æãã¦ããå
容ã¯åºæ¬çã«C#ãKotlinã§ãæç«ãã(ã¯ããª)ã®ã§ããªããããã®è¨èªã§ã¯
+
/-
ã®è¨å·ã使ããªãã®ããã説æãããã®ã§ã¯ããã¾ãã. å人çã«ã¯+
/-
ã®æ¹ãããããããã¨æãã,out
/in
ã®è¨æ³ã¯æ±ã£ã¦ããæ¦å¿µãç°¡åã§ãããã®ãããªèª¤è§£ãçã(æªãè¨ãã°é¨ã)ã®ã§ã©ã¡ããã¨è¨ãã¨å«ãã§ã.
ããã¯ãªã¼ããåçç£å¯è½ã«ãã - ããã¯ãªã¼ãé¤æè¬åº§ããã£ã¦ãã話
ãã®è¨äºã¯Engineering Management Advent Calendar 2022ã®7æ¥ç®ã§ã.
ä»ã¯ã¨ã³ã¸ãã¢ãªã³ã°ããã¼ã¸ã£(EM)ã¨ãã¦エンジニアリングマネジメントの4領域(プロダクト・プロジェクト・テクノロジ・ピープル)ãã¹ã¦ãè¦ã¦ãã¾ãã, ãã以åã¯é·ãéããã¯ãªã¼ãããã£ã¦ãã¾ãã. ãã®çµé¨ãæ´»ããã¦, æè¿ã¯å¾é²ãè²ã¦ã¦ããã¯ãªã¼ããããã¯ãå¼±ãEMã*1ãã§ãã人æãå¢ãããã¨ãã¦ãã¾ã(ããèªä½ããã¼ãã«ããã¸ã¡ã³ãã®ä¸ç°ã§ãã).
ããã¯ãªã¼ããè²ã¦ãããã«ãã£ã¦ãããã¨ã®å ¨å®¹ã詳細ã«æ¸ãã¨æ¬ã1åæ¸ãããããã«ãªã£ã¦ãã¾ãã¨æãã®ã§, ãã®ä¸ã§ãåå©ç¨å¯è½ãããª(ã¨è¨ãããåå©ç¨å¯è½ã«ãããã¨ç®è«ãã§ãã)ãããã¯ãªã¼ãé¤æè¬åº§ãã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ã.
*1:ã¨ã³ã¸ãã¢ãªã³ã°ããã¸ã¡ã³ã4é åã®ãã¡ãã¹ã¦ã§ã¯ãªããããã¤ããæ ã£ã¦ããEM
æ¹æ³ä¸ç¢ºå®æ§ãä¸ããããã®æ¾ç«¹æ¢ ã¡ã½ãã
è¥æã¡ã³ãã¼ã®ã¹ãã«ã¢ããã®ããã®ç¸è«ã«ä¹ã£ã¦ããã¨, ãã¾ãè¨è¨ãã§ããããã«ãªã, ä»æ§ã®æ´çãã¡ãªããã»ãã¡ãªããã®å¤æããã¾ããªã, ãããã¯æè¡ã®å¼ãåºããå¢ããã«ã¯ã©ããããããã, ã¨ãã話ãããæãã. ãã®æã®è©±é¡ã«ãã¤ãåããããªã¢ããã¤ã¹ããã¦ããã¨æ°ã¥ããã®ã§, 説æã楽ã«ããããã«æ¸ãä¸ãã¦ãã. ã½ããã¦ã§ã¢éçºã®è©±ã ãã©, ããããããä¸è¬çãªä»äºã®ããæ¹ã®è©±ã ã¨æã£ã¦ãæç«ãããããããªã.
ç¶ããèªãé¢æ°ã®å帰çãªå®ç¾©ã«ååä»ãã¯å¿ è¦ã
çµè«ããè¨ãã¨, ååãä»ãããã¨ãªãå帰çãªé¢æ°ãå®ç¾©ãããã¨ã¯å¯è½. ç¹å®ã®ããã°ã©ãã³ã°è¨èªã§ã©ããã¨ããããã¯æ½è±¡æ¦å¿µã¨ãã¦ã®é¢æ°ã®å帰ãååãªãã«å®ç¾å¯è½ãã©ããã¨ãã話(ååãªãã«å®ç¾ã§ããããã°ã©ãã³ã°è¨èªã¯åå¨ãããã¨ãã話).
çºç«¯
id:naoyaããããããããã¤ã¼ãããã¦ãã.
å帰ãæ¸ãã¨ãã«ä½æ°ãªãé¢æ°ã«ååã¤ããã let ã§æç¸ããããã¦ããã©ãå帰ã«ã¯ä¸é é¢ä¿ãå¿ è¦ã§ãããã®å®ç¾ã«ã¯è¨å·ãæ¬è³ªçã«é¢ãããã¨ãããååã¥ãã®è¡çºãå¿ ç¶ã ã£ããã¨ãåãã£ããããã°ã©ãã³ã°ããã¨ãã®è¦ç¹ãå¤ãããª
— naoya (@naoya_ito) 2022å¹´8æ12æ¥
ã¹ã¯ã©ã ã§ããã·ãã£ãå®å®åããã«ã¯ã©ããããããã
ãã®ããã°ã§ã¯ãã¾ããããã話ã¯æ¸ãã¦ããªãã£ããã©, 以前少しだけ触れたããã«, åã¯ããæè¿ã¨ã³ã¸ãã¢ãªã³ã°ããã¼ã¸ã£ããã£ã¦ãã¦, ãããã話é¡ãèããæ©ä¼ã¯ãã£ããå¤ã. å ·ä½çã«ã¯, ã¨ã³ã¸ãã¢ãªã³ã°ããã¼ã¸ã£ã¨ãã¦è¤æ°ãã¼ã ã®ãã¯ããã¸/ããã»ã¹/ãããã¯ã/ãã¼ãã«ã®ããã¸ã¡ã³ããæ¥ã ãã£ã¦ãã¦, ãã®ãã¡ã®ããã»ã¹ããã¸ã¡ã³ãã¨ãã¦, åãã¼ã ã®ã¹ã¯ã©ã ãã¹ã¿çãªäººã«å©è¨ããã, éçºããã»ã¹ã®æ¹åã®ããã«ãã¼ã ãèµ·ãããã¨ãã¦ããå¤åãåãå ¥ããããã©ã¤ã³ããã¼ã¸ã£ã説å¾ããã, ã¨ãã£ããã¨ã«ãã£ããæéãå²ãã¦ãã.
ã¹ã¯ã©ã ã«é¢ãã¦ä»¥ä¸ã®ãããªè©±ãè¦ããã¦, ããã¯ã¾ãã«æ¥ã æ©ã¾ããã¦ãããã¨ã ã£ã.
ä¸è¨ã§è¨ãã¨ãããã·ãã£ã®å®å®åã§ã¿ããªèºããã¨ãã話. ããã¯åã®çµé¨ä¸ãç´å¾ã§ãã.
この記事に寄せられたコメントãè¦ãã¨, ãã§, ãããã©ããã£ã¦ããã·ãã£ãå®å®åãããããããã ããã¨ããé¨åã«æ©ãã§ã人ãå¤ãããã«è¦ãã. åã¯ããã«é¢ãã¦ã¯ããç¨åº¦ã®ç²¾åº¦ã§çããæã£ã¦ãã¦è¨èªåã§ãããã ãªã¨æã£ãã®ã§, 連投ツイートãã¦ã¿ã. ãã®è¨äºã¯ä¸é£ã®ãã¤ã¼ããããå°ãä¸å¯§ã«èª¬æãããã¼ã¸ã§ã³.
ç¶ããèªã