Slide 1

Slide 1 text

͋Μ·Γ৮ΕΒΕͯͳ͍ ؾ͕͢ΔɺKotlin1.3ͷ ͋Γ͕͍ͨ௥Ճػೳ @yamacraft

Slide 2

Slide 2 text

profile • @yamacraft • Mobile Application Engineer • Freelance / (private)team Y.G.E. • Getting Over Itɹˠˠˠ • 130↑wins / BestTime 8min

Slide 3

Slide 3 text

trainingʢonly machineʣ • νΣετϓϨε 70ʙ80kg 4ʙ6rep * 3 • ϩʔσϧτΠυ 65ʙ75kg 4ʙ6rep * 3 • ϓϧμ΢ϯ 75kg 4ʙ6rep * 3 • ϨοάϓϨε 125ʙ135kg 4ʙ6rep * 3 • and more

Slide 4

Slide 4 text

physical https://athletebody.jp/2017/10/31/skill-level-assessment/

Slide 5

Slide 5 text

trouble • Ϛγϯ͚ͩͩͱѲྗ͸શવ͔ͭͳ͍ • CoC #1͕ด͡ΒΕͳͯ͘ԜΜͩ • όοΫΤΫεςϯγϣϯ͕δϜʹͳ͍ • δϜͷϑϦʔ΢ΣΠτκʔϯ͕ڱ͗͢Δ

Slide 6

Slide 6 text

Kotlin 1.3Ͱ௥Ճ͞Εͨ ͪΐͬͱخ͍͠ػೳͷ঺հ https://kotlinlang.org/docs/reference/whatsnew13.html

Slide 7

Slide 7 text

ͦͷલʹ

Slide 8

Slide 8 text

৽ػೳͷνΣοΫͬͯ Ͳ͏΍ͬͯ֬ೝ͠·͔͢ʁ

Slide 9

Slide 9 text

UnitTestͰࢼ͢ͷ͕͓͢͢Ί ※ॾઆ͋Γ·͢

Slide 10

Slide 10 text

ຊ୊ʹ໭Γ·͢

Slide 11

Slide 11 text

Kotlin 1.3Ͱ௥Ճ͞Εͨ ͪΐͬͱخ͍͠ػೳͷ঺հ https://kotlinlang.org/docs/reference/whatsnew13.html

Slide 12

Slide 12 text

RandomAPIͷ௥Ճ • kotlin.random.Random͕௥Ճ͞Εͨ • ཚ਺ੜ੒ʹjava.util.*Λར༻͠ͳͯ͘ࡁΉΑ͏ ʹͳͬͨ • java.util.Randomಉ༷ʹɺ֤ܕͰग़ྗՄೳ • Kotlin Native͋ͨΓ͸͋Γ͕͍ͨ͸ͣ

Slide 13

Slide 13 text

RandomAPIͷ௥Ճ

Slide 14

Slide 14 text

ίϨΫγϣϯܥʹ isNullOrEmpty()ͷ௥Ճ • Stringʹ͋ͬͨisNullOrEmpty()͕Collection΍ ListɺmapͳͲͰར༻Մೳʹͳͬͨ • isEmpty()ͳΒલ͔Β͋Γ·ͨ͠ • nullνΣοΫ΋·ͱΊͯͰ͖ͯେม͋Γ͕͍ͨ

Slide 15

Slide 15 text

ίϨΫγϣϯܥʹ isNullOrEmpty()ͷ௥Ճ

Slide 16

Slide 16 text

unsignedʢූ߸ͳ͠ʣܕͷ ௥Ճ • UByte … 0ʙ255 • UShort … 0ʙ65535 • UInt … 0ʙ2^32-1 • ULong … 0ʙ2^64-1 • ਓʹΑͬͯ͸ϝνϟΫνϟ͋Γ͕͍ͨ…

Slide 17

Slide 17 text

unsignedʢූ߸ͳ͠ʣܕͷ ௥Ճ

Slide 18

Slide 18 text

ifEmpty()ɺifBlankͷ௥Ճ • if(x.isEmpty){}ͱ΍Βͣʹɺx.ifEmpty{}Ͱۭ΍ ۭന࣌ͷॲཧ͕͍͖ͳΓॻ͚ΔΑ͏ʹͳͬͨ • kotlinΆ͘ͳͬͯ͋Γ͕͍ͨ

Slide 19

Slide 19 text

ifEmpty()ɺifBlankͷ௥Ճ

Slide 20

Slide 20 text

ଞʹ΋͍Ζ͍Ζ͋ΔͷͰ νΣοΫͯ͠ΈΑ͏ʂ https://kotlinlang.org/docs/reference/whatsnew13.html

Slide 21

Slide 21 text

͓͠·͍