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

Programming Swift in Japanese

codelynx
August 30, 2016

Programming Swift in Japanese

Advocate using more Japanese terms for classes, types, variables and enums. And introducing ShougiKit that provides complicated Shogi (Japanese chess) rules with Swift in Japanese.

codelynx

August 30, 2016
Tweet

More Decks by codelynx

Other Decks in Programming

Transcript

  1. Kaz Yoshikawa • Electricwoods LLC ୅ද / Digital Lynx Systems

    Inc. ෭୅ද • e-mail: [email protected] • twitter: @codelynx • Working History • Adobe Systems (Tokyo) • Lionbridge (Tokyo) • Quark (Tokyo / Denver) • Hummingbird Communications (Mt. View, USA) • Fact International (Vancouver, Canada) • Perle Systems (Toronto, Canada), etc.
  2. Programming Swift in Japanese ೔ຊޠԽ͕༗ޮͳྫ • ೔ຊݻ༗ͷ๏ྩ • ೔ຊݻ༗ͷ঎׳ߦ •

    ೔ຊݻ༗ͷݻ༗໊ࢺ • ೔ຊݻ༗ͷจԽ • ਺೥Ҏ಺ͷւ֎Ϗδωεల։ͷݟࠐΈ͕௿͍
  3. Programming Swift in Japanese ೔ຊޠԽ͕ٙ໰ͳྫ • ೔ຊݻ༗ͷ๏ྩͱ͸ແؔ܎ • ೔ຊݻ༗ͷ঎׳ߦͱ͸ແؔ܎ •

    ೔ຊݻ༗ͷݻ༗໊ࢺͱ͸ແؔ܎ • ೔ຊݻ༗ͷจԽͱ΋ແؔ܎ • ͦ΋ͦ΋Ϗδωεͷւ֎ల։ΛݟࠐΜͰ͍Δ
  4. Programming Swift in Japanese ۨͷཪදΛؚΊͨදݱ FOVN㞳㙚ྞ\ DBTF᱗ 㞓 ᩎ ㏯

    DBTF㍰ ⻄ 㜰 ⃹ DBTFӒ ᦧ ཥ ஁ DBTF㞜 ▗ ^
  5. Programming Swift in Japanese ൫্ͷͻͱϚεͷঢ়ଶ FOVN೬ྞ*OU\ DBTF╘ DBTF୩᱗ ୩㞓 ୩ᩎ

    ୩㏯ ୩㍰ ୩⻄ ୩㜰 ୩⃹ DBTF୩Ӓ ୩ᦧ ୩ཥ ୩஁ ୩㞜 ୩▗ DBTFᒁ᱗ ᒁ㞓 ᒁᩎ ᒁ㏯ ᒁ㍰ ᒁ⻄ ᒁ㜰 ᒁ⃹ DBTFᒁӒ ᒁᦧ ᒁཥ ᒁ஁ ᒁ㞜 ᒁ▗ ^
  6. Programming Swift in Japanese ہ໘Λදݱ DMBTTቱ㙚ྞ\ WBSనӘቱ㙚ቱ㙚ྞ  WBS⍃నӘᛡᙨᛡᙨྞ 

    WBSᙨ൶ᙨ൶ూྞ WBS஁೬<೬ྞ> WBSᛝ㞳ⷭ<୩ᙨᒁᙨྞᛝ㞳ྞ> WBSᙨ∮୩ᙨᒁᙨྞ WBS✳ቱⅈ∀✳ቱⅈ∀ྞ  WBSಓ⢲୩ᙨᒁᙨྞ  WBSᙨᡔ*OU  ^
  7. Programming Swift in Japanese ҠಈՄೳ FOVN㞳㙚ྞ\ 
 GVOD┅ಌ൧⥎ӔԒԽԣԫ԰ఇ 㞳㙚㞳㙚ྞ ୩ᒁ୩ᙨᒁᙨྞ

    
 < *OU *OU >\
 ^ 
 GVOD┅ಌ൧⥎ӔՁԗ԰Փఇ 㞳㙚㞳㙚ྞ ୩ᒁ୩ᙨᒁᙨྞ 
 < *OU *OU >\  ^ 
 ^
  8. Programming Swift in Japanese ҠಈՄೳҐஔྻ GVODᛡᇰ৴⡕Ә㞳Ә┅ಌ൧⥎৴⡕ఇ ᛡᇰ৴⡕৴⡕ྞ <৴⡕ྞ>\ WBS৴⡕ఇ<৴⡕ྞ> 

    WBS㞳㙚ǘ GPS EY EZ JO㞳㙚┅ಌ൧⥎ӔԒԽԣԫ԰ఇ 㞳㙚㞳㙚 ୩ᒁ୩ᒁ \ JGǘ\ ৴⡕ఇBQQFOE ৴⡕  ^ ^ GPS WY WZ JO㞳㙚┅ಌ൧⥎ӔՁԗ԰Փఇ 㞳㙚㞳㙚 ୩ᒁ୩ᒁ \ XIJMFMFU◡Y MFU᲍Z\ ǘ
 ^ ^ SFUVSO৴⡕ఇ ^
  9. Programming Swift in Japanese কع൫Kit • Swift ϕʔεͷকعͷجຊతͳϧʔϧΛఏڙ • ՄೳͳࢦखΛ

    Array Ͱ໭͢ • ٧Έͷ൑ఆ • API ͷΈఏڙ • MIT ϥΠηϯε • iOS, OS X ͳͲ
  10. Programming Swift in Japanese কع൫Kitʹ͸ؚ·Εͳ͍ • AI • ిԦઓ͸໨ࢦ͞ͳ͍ •

    SwiftͰిԦઓΛ໨ࢦ͢ਓͷ౿୆ • UI • ៉ྷͳUI΍UX͸ؚ·ͳ͍
  11. Programming Swift in Japanese ୯਺ܗɾෳ਺ܗ໰୊ • ೔ຊޠʹ͸୯਺ܗɾෳ਺ܗ͕جຊతʹଘࡏ͠ͳ͍ • item ͱ

    items ͷ۠ผ • ಛఆͷΦϒδΣΫτͱɺΦϒδΣΫτͷू߹Λ۠ผ ͍ͨ͠ GPSJUFNJOJUFNT\  QSJOU = JUFN   ^
  12. Programming Swift in Japanese ྫ: ։࢝ GVOD㔸ᄇ  GVOD㔸ᄇӃӵ 

    GVOD㔸ᄇӃӵԦ  GVOD㔸ᄇ ✳ӹӍӉӳ 
  13. Programming Swift in Japanese ۨछܕ QVCMJDFOVN㞳┣ྞ*OU\ DBTF᱗ 㞓 ᩎ ㏯

    ㍰ ⻄ 㜰 ⃹
  TUBUJDMFU஁㞳┣<㞳┣ྞ>
 <⃹ 㜰 ⻄ ㍰ ㏯ ᩎ 㞓 ᱗>
 WBS㞳㙚㞳㙚ྞ
 WBSᘻ㞳㙚㞳㙚ྞ 
 GVODᛡᇰ᲍ӕᙯӎ॰ә൧⥎ҵ ୩ᒁ୩ᙨᒁᙨྞ ᲍᲍ྞ #PPM
  14. Programming Swift in Japanese ہ໘ܕ DMBTTቱ㙚ྞ&RVBUBCMF 4FRVFODF5ZQF\ GVODᛡᇰ৴⡕Ә㞳Ә┅ಌ൧⥎ᛡᙨఇ ৴⡕৴⡕ྞ <ᛡᙨྞ>

    GVODᛡᇰ㞳ӼᙯӎҽӒҶ൧⥎Ӕᛡᙨఇ ୩ᒁ୩ᙨᒁᙨྞ @㞳┣㞳 ┣ྞ <ᛡᙨྞ> GVOD㞳Ә৴⡕ఇ 㞳㞳┣ྞ ୩ᒁ୩ᙨᒁᙨྞ <৴⡕ྞ> GVODᛡᙨӼᇴ⷗ ᛡᙨᛡᙨྞ UISPXTቱ㙚ྞ GVOD஁൧⥎ᛡᙨఇ <ᛡᙨྞ> GVODᘻӍӐ┅ಌ൧⥎ҵ ୩ᒁ୩ᒁ୩ᙨᒁᙨྞ ┅ಌనӘ৴⡕৴⡕ ྞ ┅ಌᒁӘ৴⡕৴⡕ྞ ┅ಌనӘ㞳㙚㞳㙚ྞ #PPM GVODडᘻӑ┅ಌ൧⥎ҵ ୩ᒁ୩ᒁ୩ᙨᒁᙨྞ ┅ಌనӘ৴⡕৴⡕ ྞ ┅ಌᒁӘ৴⡕৴⡕ྞ ┅ಌనӘ㞳㙚㞳㙚ྞ #PPM GVOD⃻ᙨఇ ᙨ∮୩ᙨᒁᙨྞ <ᛡᙨྞ> MB[ZWBS⼰өҵ#PPM
  15. Programming Swift in Japanese จࣈԽ͚Ϋϥε • Xcode ͷ New ͔Β

    UIViewController ͷ αϒΫϥε Λ೔ຊޠʹͯ͠ੜ੒͢ΔͱɺจࣈԽ͚ͨ͠Ϋϥε͕ ੜ੒͞ΕΔ • ͪΌΜͱखಈͰ௚ͤ͸ྑ͍
  16. Programming Swift in Japanese Swift + ೔ຊޠ໊ • Ϋϥε໊ɺλΠϓ໊ɺม਺ɺෆมఆ਺ɺenumͷ஋ͳͲͷ ೔ຊޠԽͰੜ࢈ੑ޲্ͷՄೳੑ

    • ೔ຊͷݴޠɺจԽɺ๏ྩɺ঎׳ߦʹґଘ͢ΔͰ͸ɺ͞Β ͳΓ • άϩʔόϧɾՊֶٕज़ࢦ޲ͳ෼໺Ͱ͸ෆ޲͖ • ΠϯλʔφγϣφϧͳνʔϜͰ͸ෆ޲͖ • ७ࠃ࢈νʔϜʹ͸޲͍͍ͯΔ͔΋
  17. Programming Swift in Japanese Swift + ೔ຊޠؔ਺໊ • ؔ਺໊Λ೔ຊޠΛ࢖͏ʹ͸ •

    ·ͩɺ࣌ظঘૣ • ΋͏গ໋໊͠ํ๏ͷ஌ܙͷ஝ੵ͕ඞཁ • ஌ܙͷ஝ੵ͕͋Ε͹ɺՄೳੑ͋Γ
  18. Programming Swift in Japanese Swift + ೔ຊޠ໊ • Core Data

    ͳͲͷ໋໊نଇͷ੍ݶ͕͋Δ • ೔ຊޠStoryboard ͳͲಡΈࠐΊͳ͍৔߹͕͋Δ • ଞɺXcode ͳͲπʔϧͷ౎߹ʹΑΔ੍ݶ