Pro Yearly is on sale from $80 to $50! »

Programming Swift in Japanese

79874cedccd1cf5baa8cb264b5091ee6?s=47 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.

79874cedccd1cf5baa8cb264b5091ee6?s=128

codelynx

August 30, 2016
Tweet

Transcript

  1. Programming Swift in Japanese Swift Ͱ೔ຊޠϓϩά ϥϛϯάʹ௅ઓ Kaz Yoshikawa ϓϨθϯͷ಺༰͸ެ։͢Δ༧ఆͰ͢

  2. About me

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

    Inc. ෭୅ද • e-mail: kyoshikawa@electricwoods.com • 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.
  4. Programming Swift in Japanese Կʹ೔ຊޠΛ࢖͏ͷʁ • ม਺໊΍ఆ਺໊ʢෆมม਺໊ʣ • Ϋϥε໊΍λΠϓ໊ɺྻڍࢠ໊ •

    ίϝϯτ • ؔ਺໊΍ϝιου໊
  5. Programming Swift in Japanese ໊લΛ೔ຊޠʹ͢Δͱ Ͳ͕͜ྑ͍ʁ

  6. Programming Swift in Japanese ઐ໳༻ޠ͕໌֬ʹ • ֬ఆਃࠂ • ݄຤కΊཌʑ݄10೔ೖۚ •

    ᘥᙪ୲อ੹೚ • ແ୲อίʔϧཌ೔෺
  7. Programming Swift in Japanese ৽ձࣾ๏ʹ͓͚Δձࣾͷछྨ FOVNৗ⒌Ә┣㜇\ DBTFᨻᐛৗ⒌ DBTF൶ൻৗ⒌ DBTF൶ねৗ⒌ DBTF൶ൺৗ⒌

    DBTF᥶㖟さি॰ᬟ✵൶ ^
  8. Programming Swift in Japanese Psyduck ίμοΫ θχΨϝ Squirtle

  9. Programming Swift in Japanese ᶃӳޠʴ೔ຊޠίϝϯτ ՅԙՊ՛ DMBTT1PL¨NPO\ ^ ԛԨԫԗ DMBTT1TZEVDL1PL¨NPO\

    ^ ԤԳԔՉ DMBTT4RVJSUMF1PL¨NPO\ ^
  10. Programming Swift in Japanese ᶄϔϘϯࣜදه ՅԙՊ՛ DMBTT1PLFNPO\ ^ ԛԨԫԗ DMBTT,PEBLLV1PLFNPO\

    ^ ԤԳԔՉ DMBTT;FOJHBNF1PLFNPO\ ^
  11. Programming Swift in Japanese ᶅ೔ຊޠʴӳޠίϝϯτ 1PL¨NPO DMBTTՅԙՊ՛\ ^ 1TZEVDL DMBTTԛԨԫԗՅԙՊ՛\

    ^ 4RVJSUMF DMBTTԤԳԔՉՅԙՊ՛\ ^
  12. Programming Swift in Japanese ӳޠͰ͏·͘දݱͰ͖ ͳ໊͍લ

  13. Programming Swift in Japanese ઌखɾޙख • ғޟɺΦηϩɿࠇˠઌखɺനˠޙख • νΣεɿനˠઌखɺࠇˠޙख •

    কعɿʁʁ ӳޠͰʁ
  14. Programming Swift in Japanese τϥϯϓ Card, French Playing Card ӳޠͰʁ

  15. Programming Swift in Japanese Χʔυ

  16. Programming Swift in Japanese ೔ຊޠԽ͕༗ޮͳྫ • ೔ຊݻ༗ͷ๏ྩ • ೔ຊݻ༗ͷ঎׳ߦ •

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

    ೔ຊݻ༗ͷݻ༗໊ࢺͱ͸ແؔ܎ • ೔ຊݻ༗ͷจԽͱ΋ແؔ܎ • ͦ΋ͦ΋Ϗδωεͷւ֎ల։ΛݟࠐΜͰ͍Δ
  18. Programming Swift in Japanese ࣮ࡍʹ΍ͬͯΈͨ

  19. Programming Swift in Japanese ͯ͞ɺ͓୊͸…

  20. Programming Swift in Japanese

  21. Programming Swift in Japanese কع

  22. Programming Swift in Japanese কعͷۨͷදݱ FOVN㞳┣ྞ\ DBTF᱗ 㞓 ᩎ ㏯

    DBTF㍰ ⻄ 㜰 ⃹ ^
  23. Programming Swift in Japanese ۨͷཪදΛؚΊͨදݱ FOVN㞳㙚ྞ\ DBTF᱗ 㞓 ᩎ ㏯

    DBTF㍰ ⻄ 㜰 ⃹ DBTFӒ ᦧ ཥ ஁ DBTF㞜 ▗ ^
  24. Programming Swift in Japanese ઌखޙखͷදݱ FOVN୩ᙨᒁᙨྞ\ DBTF୩ᙨ
 DBTFᒁᙨ
 ^ ઌख

    ޙख
  25. Programming Swift in Japanese ൫্ͷͻͱϚεͷঢ়ଶ FOVN೬ྞ*OU\ DBTF╘ DBTF୩᱗ ୩㞓 ୩ᩎ

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

    WBSᙨ൶ᙨ൶ూྞ WBS஁೬<೬ྞ> WBSᛝ㞳ⷭ<୩ᙨᒁᙨྞᛝ㞳ྞ> WBSᙨ∮୩ᙨᒁᙨྞ WBS✳ቱⅈ∀✳ቱⅈ∀ྞ  WBSಓ⢲୩ᙨᒁᙨྞ  WBSᙨᡔ*OU  ^
  27. Programming Swift in Japanese ۨͷҠಈʹؔ͢Δදݱ

  28. Programming Swift in Japanese ୯ൃҠಈ

  29. Programming Swift in Japanese ҠಈՄೳ FOVN㞳㙚ྞ\ 
 GVOD┅ಌ൧⥎ӔԒԽԣԫ԰ఇ 㞳㙚㞳㙚ྞ ୩ᒁ୩ᙨᒁᙨྞ

    
 < *OU *OU >\
 ^ 
 ^
  30. Programming Swift in Japanese ࿈ଓҠಈ

  31. Programming Swift in Japanese ҠಈՄೳ FOVN㞳㙚ྞ\ 
 GVOD┅ಌ൧⥎ӔԒԽԣԫ԰ఇ 㞳㙚㞳㙚ྞ ୩ᒁ୩ᙨᒁᙨྞ

    
 < *OU *OU >\
 ^ 
 GVOD┅ಌ൧⥎ӔՁԗ԰Փఇ 㞳㙚㞳㙚ྞ ୩ᒁ୩ᙨᒁᙨྞ 
 < *OU *OU >\  ^ 
 ^
  32. Programming Swift in Japanese ୯ൃ࿈ଓෳ߹ܕ

  33. Programming Swift in Japanese ҠಈՄೳҐஔྻ GVODᛡᇰ৴⡕Ә㞳Ә┅ಌ൧⥎৴⡕ఇ ᛡᇰ৴⡕৴⡕ྞ <৴⡕ྞ>\ WBS৴⡕ఇ<৴⡕ྞ> 

    WBS㞳㙚ǘ GPS EY EZ JO㞳㙚┅ಌ൧⥎ӔԒԽԣԫ԰ఇ 㞳㙚㞳㙚 ୩ᒁ୩ᒁ \ JGǘ\ ৴⡕ఇBQQFOE ৴⡕  ^ ^ GPS WY WZ JO㞳㙚┅ಌ൧⥎ӔՁԗ԰Փఇ 㞳㙚㞳㙚 ୩ᒁ୩ᒁ \ XIJMFMFU◡Y MFU᲍Z\ ǘ
 ^ ^ SFUVSO৴⡕ఇ ^
  34. Programming Swift in Japanese ͍͍ײ͡

  35. Programming Swift in Japanese কع൫Kit

  36. Programming Swift in Japanese

  37. Programming Swift in Japanese কع൫Kit • Swift ϕʔεͷকعͷجຊతͳϧʔϧΛఏڙ • ՄೳͳࢦखΛ

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

    SwiftͰిԦઓΛ໨ࢦ͢ਓͷ౿୆ • UI • ៉ྷͳUI΍UX͸ؚ·ͳ͍
  39. Programming Swift in Japanese কع൫KitΛSwift +
 ೔ຊޠͰॻ͍ͯΈͯ…

  40. Programming Swift in Japanese େจࣈখจࣈ໰୊

  41. Programming Swift in Japanese େจࣈখจࣈͰͷ۠ผ 0, DMBTT0CKFDU\^ WBSPCKFDU0CKFDU &SSPSྞӒႁᡔәൺӂൻనӼਜҲӔҮ DMBTTԒԾԠԏԗ԰\^

    WBSԒԾԠԏԗ԰ԒԾԠԏԗ԰
  42. Programming Swift in Japanese େจࣈখจࣈ໰୊ 0,ԧԌԿӘൻనӕѷྞѸӼӎһӵ DMBTTԒԾԠԏԗ԰ྞ\^ WBSԒԾԠԏԗ԰ԒԾԠԏԗ԰ྞ 0,༾᥶ӘԿՔԽԋԫԗԡӼӎһӵ DMBTT.:ԒԾԠԏԗ԰\^

    WBSԒԾԠԏԗ԰.:ԒԾԠԏԗ԰
  43. Programming Swift in Japanese ୯਺ܗɾෳ਺ܗ໰୊ • ೔ຊޠʹ͸୯਺ܗɾෳ਺ܗ͕جຊతʹଘࡏ͠ͳ͍ • item ͱ

    items ͷ۠ผ • ಛఆͷΦϒδΣΫτͱɺΦϒδΣΫτͷू߹Λ۠ผ ͍ͨ͠ GPSJUFNJOJUFNT\  QSJOU = JUFN   ^
  44. Programming Swift in Japanese ୯਺ܗɾෳ਺ܗ໰୊ • ෆࣗવͰ΋ɺ୯਺ɾෳ਺Λ۠ผͰ͖Δ઀ඌࣙͷಋೖ • Arrayʮʙྻʯ ʢྫ:

    ۨྻʣ • Setʮʙ܈ʯʮʙू߹ʯ ʢྫ: ۨ܈ʣ • Dictionaryʮʙදʯ ʢྫ: Ґஔۨදʣ
  45. Programming Swift in Japanese ୯਺ܗɾෳ਺ܗ໰୊ ӳޠͷ৔߹

  46. Programming Swift in Japanese ͦ΋ͦ΋ؔ਺໊͸೔ຊޠʹͦ ͙Θͳ͍͔΋͠Εͳ͍໰୊

  47. Programming Swift in Japanese ྫ: ։࢝ GVOD㔸ᄇ  GVOD㔸ᄇӃӵ 

    GVOD㔸ᄇӃӵԦ  GVOD㔸ᄇ ✳ӹӍӉӳ 
  48. Programming Swift in Japanese ೔ຊޠͩͱҙ֎ͱදݱͷ෯͕޿͍͔΋ʁ

  49. Programming Swift in Japanese ۨछܕ QVCMJDFOVN㞳┣ྞ*OU\ DBTF᱗ 㞓 ᩎ ㏯

    ㍰ ⻄ 㜰 ⃹
  TUBUJDMFU஁㞳┣<㞳┣ྞ>
 <⃹ 㜰 ⻄ ㍰ ㏯ ᩎ 㞓 ᱗>
 WBS㞳㙚㞳㙚ྞ
 WBSᘻ㞳㙚㞳㙚ྞ 
 GVODᛡᇰ᲍ӕᙯӎ॰ә൧⥎ҵ ୩ᒁ୩ᙨᒁᙨྞ ᲍᲍ྞ #PPM
  50. Programming Swift in Japanese GVODᛡᇰ᲍ӕᙯӎ॰ә൧⥎ҵ 
 ୩ᒁ୩ᙨᒁᙨྞ ᲍᲍ྞ #PPM

  51. Programming Swift in Japanese ہ໘ܕ DMBTTቱ㙚ྞ&RVBUBCMF 4FRVFODF5ZQF\ GVODᛡᇰ৴⡕Ә㞳Ә┅ಌ൧⥎ᛡᙨఇ ৴⡕৴⡕ྞ <ᛡᙨྞ>

    GVODᛡᇰ㞳ӼᙯӎҽӒҶ൧⥎Ӕᛡᙨఇ ୩ᒁ୩ᙨᒁᙨྞ @㞳┣㞳 ┣ྞ <ᛡᙨྞ> GVOD㞳Ә৴⡕ఇ 㞳㞳┣ྞ ୩ᒁ୩ᙨᒁᙨྞ <৴⡕ྞ> GVODᛡᙨӼᇴ⷗ ᛡᙨᛡᙨྞ UISPXTቱ㙚ྞ GVOD஁൧⥎ᛡᙨఇ <ᛡᙨྞ> GVODᘻӍӐ┅ಌ൧⥎ҵ ୩ᒁ୩ᒁ୩ᙨᒁᙨྞ ┅ಌనӘ৴⡕৴⡕ ྞ ┅ಌᒁӘ৴⡕৴⡕ྞ ┅ಌనӘ㞳㙚㞳㙚ྞ #PPM GVODडᘻӑ┅ಌ൧⥎ҵ ୩ᒁ୩ᒁ୩ᙨᒁᙨྞ ┅ಌనӘ৴⡕৴⡕ ྞ ┅ಌᒁӘ৴⡕৴⡕ྞ ┅ಌనӘ㞳㙚㞳㙚ྞ #PPM GVOD⃻ᙨఇ ᙨ∮୩ᙨᒁᙨྞ <ᛡᙨྞ> MB[ZWBS⼰өҵ#PPM
  52. Programming Swift in Japanese ؔ਺໊ͷ೔ຊޠԽ͸ҧ࿨ײΛ֮͑Δ͕ɺ׳Ε΍ ໊લͷ෇͚ํͷվળͰ࣮༻ੑʹظ଴Ͱ͖ͦ͏ɻ

  53. Programming Swift in Japanese ͨͩɺݱঢ়Ͱ͸ٸ͙ඞཁ͸ͳͦ͞͏

  54. Programming Swift in Japanese ܕͷ໊લɺϓϩύςΟ໊ɺม਺໊ɺenumͷ஋ͳ Ͳʹɺ೔ຊޠ໊͸ྑͦ͞͏

  55. Programming Swift in Japanese ͦͷଞ
 ٕज़తͳ໰୊఺

  56. Programming Swift in Japanese CoreData ͷ੍ݶ • ೔ຊޠͷ໊લ͕͚ͭΒΕͳ͍
 • ೔ຊޠͷϓϩύςΟ໊͕͚ͭΒΕͳ͍

  57. Programming Swift in Japanese storyboard ໊ • storyboard ͷ໊લΛ೔ຊޠʹͰ͖ͳ͍ •

    storyboard reference ͷ storyboard
  58. Programming Swift in Japanese จࣈԽ͚Ϋϥε • Xcode ͷ New ͔Β

    UIViewController ͷ αϒΫϥε Λ೔ຊޠʹͯ͠ੜ੒͢ΔͱɺจࣈԽ͚ͨ͠Ϋϥε͕ ੜ੒͞ΕΔ • ͪΌΜͱखಈͰ௚ͤ͸ྑ͍
  59. Programming Swift in Japanese ೔ຊޠϓϩάϥϛϯά
 ϑΥϯτ

  60. Programming Swift in Japanese Ricty
 Inconsolata + Migu 1M

  61. Programming Swift in Japanese Source Han Code JP
 Source Code

    Pro + Source Han Sans
  62. Programming Swift in Japanese Wrap Up

  63. Programming Swift in Japanese Swift + ೔ຊޠ໊ • Ϋϥε໊ɺλΠϓ໊ɺม਺ɺෆมఆ਺ɺenumͷ஋ͳͲͷ ೔ຊޠԽͰੜ࢈ੑ޲্ͷՄೳੑ

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

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

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