Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

まだJavaで消耗してるの?Kotlinのすすめ

 まだJavaで消耗してるの?Kotlinのすすめ

Cluex社主催 LT大会 発表資料

kazakago

May 19, 2017
Tweet

More Decks by kazakago

Other Decks in Programming

Transcript

  1. ϥϜμࣜ ,PUMJOͰ͸ϥϜμ͕ࣜ࢖͑Δɻ
 "OESPJEͷϘλϯΠϕϯτ͸+BWBͰ͸ҎԼͷΑ͏ʹ͜͏ ॻ͕͘ɺɺɺ w +BWB +BWB  Button button

    = new Button(this);
 button.setOnClickListener(new View.OnClickListener() {
 @Override
 public void onClick(View v) {
 System.out.print("Ϙλϯԡ͞Εͨʂ");
 }
 });
  2. /VMM҆શ w +BWB ObjectD getObjectD(ObjectA objectA) {
 if (objectA !=

    null) {
 ObjectB objectB = objectA.getObjectB();
 if (objectB != null) {
 ObjectC objectC = objectB.getObjectC();
 if (objectC != null) {
 return objectC.getObjectD();
 }
 }
 }
 return null;
 }

  3. ͦͷଞʹ΋ʜ w ίϧʔνϯ w σϑΥϧτҾ਺ w ετϦʔϜૢ࡞ؔ਺ w σʔλΫϥε w

    ඇݕࠪྫ֎ w KBWBTDSJQU΁ͷτϥΠϯεύΠϧ w ,PUMJO/BUJWF w FUD