Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin学習とライブラリ作成

yagi
March 24, 2016

 Kotlin学習とライブラリ作成

ライブラリ作成をしながらKotlinを学習するといいんじゃないかなーという話です

yagi

March 24, 2016
Tweet

More Decks by yagi

Other Decks in Technology

Transcript

  1. About Me Toshihiro Yagi Twitter : sys1yagi Programmer at Cookpad

    Inc. Android engineer Kotlin͸2014೥ॳ಄ลΓ͔ΒŧŔŕŪ৮͍ͬͯΔఔ౓
  2. Wrapper of Mockito for Kotlin NPDL WBSJUFN*UFNNPDL  XIFO JUFNMFOHUI

    JOWPLFEUIFO3FUVSO   BOTXFS JUFNTPNF.FUIPE BOZ*OU BOZ4USJOH BOZ BOZ  JOWPLFE UIFO"OTXFS\ WBM B C D E JUBSHVNFOUT*OU 4USJOH *UFN /BNF  EPTPNFUIJOH ^ WFSJGZ JUFNWFSJGZ UJNFT  MFOHUI https://github.com/sys1yagi/kmockito
  3. BOZ ͕OVMMΛฦ͢ AXIFOA JUFNMFOHUI BOZ UIFO3FUVSO ʜ any() return null

    and cause runtime error GVOMFOHUI UFYU4USJOH *OU\ʜ^ Non-Null
  4. 85' JUFNTPNF.FUIPE BOZ*OU BOZ4USJOH BOZ BOZ  JOWPLFE UIFO"OTXFS\ WBMBJUBSHVNFOUT<>BT*OU

    WBMCJUBSHVNFOUT<>BT4USJOH WBMDJUBSHVNFOUT<>BT*UFN WBMEJUBSHVNFOUT<>BT/BNF EPTPNFUIJOH ^
  5. %FTUSVDUVSJOH%FDMBSBUJPOT Λ࢖ͬͨ୅ೖ WBM B C 1BJS l)FMMPz   Bl)FMMPz

    C ಛఆͷϧʔϧʹԊͬͨΫϥεͰ %FTUSVDUVSJOH%FDMBSBUJPOT͕࢖͑Δɻ
  6. *OWPDBUJPO0O.PDLʹϝιουΛ௥Ճ JOMJOFGVOSFJpFE" SFJpFE# SFJpFE$ *OWPDBUJPO0O.PDLBSHVNFOUT  5SJQMF BSHVNFOUT<>BT" BSHVNFOUT<>BT# BSHVNFOUT<>BT$

    JUFNTPNF.FUIPE BOZ*OU BOZ4USJOH BOZ  JOWPLFE UIFO"OTXFS\ WBM B C D JUBSHVNFOUT*OU 4USJOH *UFN  EPTPNFUIJOH ^ :FT