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

diykeyboard-is-ruby.pdf

 diykeyboard-is-ruby.pdf

Lightning Talk, とちぎRuby会議09

動画もあります: https://youtu.be/3NYxhlCdEPQ

Shintaro Kakutani

September 12, 2020
Tweet

More Decks by Shintaro Kakutani

Other Decks in Technology

Transcript

  1. YOU COULD SAY DIY-KEYBOARD IS ESSENTIALLY RUBY
    ֯୩৴ଠ࿠ !LBLVUBOJ

    ͱͪ͗3VCZ,BJHJUPSVCZ
    %*:ΩʔϘʔυ͸࣮࣭3VCZ

    View full-size slide

  2. ֯୩৴ଠ࿠
    @kakutani
    حൈͳཧ࿦ʹڵฃ͕ͪ͠
    झຯϝΧχΧϧΩʔϘʔυεΠονͷ५׈

    View full-size slide

  3. ൃച༧ఆɻࣗ৴࡞ɻ
    #BDLJOUIF(BNFR

    View full-size slide

  4. YOU COULD SAY DIY-KEYBOARD IS ESSENTIALLY RUBY
    ֯୩৴ଠ࿠ !LBLVUBOJ

    ͱͪ͗3VCZ,BJHJUPSVCZ
    %*:ΩʔϘʔυ͸࣮࣭3VCZ

    View full-size slide

  5. %*:ΩʔϘʔυͱ͸
    w%*:͡Όͳ͍ΩʔϘʔυl׬੒඼z
    ɾശ͔Βग़ͯ͠ɺύιίϯʹ઀ଓͨ͠Β࢖͑Δ PVUPGUIFCPY

    ɾ)BQQZ)BDLJOH,FZCPBSE΍3&"-'03$&ɻ,JOFTJT"EWBOUBHF΋͔ͬͪ͜ͳ
    w%*:ΩʔϘʔυl׬੒඼z͡Όͳ͍΍ͭ
    ɾശ͔Βग़ͯ͠΋ɺͦͷ··Ͱ͸࢖͑ͳ͍ɻར༻ऀͷखͰl׬੒zͤ͞Δ޻ఔ͕ඞཁ
    LBLVUBOJͷҹ৅ʹΑΔ෼ྨɻ
    ਖ਼֬ͳఆٛͰ͸ͳ͍ʜ

    View full-size slide

  6. %*:ΩʔϘʔυl׬੒඼z͡Όͳ͍΍ͭ
    wΧελϜΩʔϘʔυ
    ɾԣʹͣΕͯΔ 3PX4UBHHFSFE
    lී௨zͷ28&35:ͳ΍͕ͭଟ͍ɻΩʔ਺͸ʙத৺
    ɾ1$#΍έʔεɺϓϨʔτͷૉࡐ΍ઃܭʹͩ͜ΘΓ͕͋Δɻଧ伴ײ΍ଧ伴Իʹͩ͜ΘΔ
    ɾैདྷͷΩʔϘʔυͷྲྀΕͷͳ͔ͰɺͲ͏࣭ΛߴΊ͍͔͕ͯ͘ςʔϚ
    ɾ೔ຊޠΩʔ഑ྻͷ΋ͷ͸গͳͦ͏ɻ#4΍εϖʔεόʔΛ෼ׂͰ͖ͨΓͯ͠ɺҙ֎ͱ෺ཧ഑ྻʹ෯͕͋Δ
    wࣗ࡞ΩʔϘʔυ
    ɾlઃܭऀzͷߟ͑ͨΩʔ෺ཧ഑ྻ΍Ωʔ਺ɻ෼ׂΩʔϘʔυ͸ͪ͜Β͕ଟ͍
    ɾ͜Ε·Ͱʹͳ͔ͬͨΩʔϘʔυΛੜΈग़͢͜ͱ͕ςʔϚ
    ࣗ࡞ ࣗΩΑΓ͸l%*:zͷ΄͏͕ݺ
    ͼ͔ͨͱͯͬ͘͠͠Δͱࢥ͏Α೿

    View full-size slide

  7. ͱͪ͗3VCZձٞ
    wݪ৴Ұ࿠ ʮത࢜ͷѪͨ͠3VCZͱ਺ֶʯ
    ɾ ౦ಹਢ໺ެຽؗ
    ɾݪϝιουൃදऀࣗ਎΁ͷࢦࣔΛεϥΠυʹؚΊΔɺϝλϓϩάϥϛϯάతख๏
    ɾl3VCZͷ͍͢͝ͱ͜Ζ͸ɺݴޠͷಛ௃Λʮͨͷ͍͠ʯͱݴ͍੾ͬͯ͠·ͬͨ͜ͱz
    ɾ3VCZ͸ۤखͳܭࢉΛ΍ͬͯ͘ΕΔɻ೴ͷԆ௕ɻ਎ମͷҰ෦ɻ
    ɾΔͼ·߸https://magazine.rubyist.net/articles/0026/0026-TochigiRubyKaigi01Report.html

    ɾΔͼ·߸ )PUMJOLT
    https://magazine.rubyist.net/articles/0023/0023-Hotlinks.html
    ɾCMBEFϝʔϦϯάϦεταʔόʔͷ؅ཧऀ
    QSF3BJMT QSF3FENJOF࣌୅ͷॏཁ৘ใݯ

    lੈքͰ࡭໨ͷ3VCZͷຊͷஶऀzBSUPO

    View full-size slide

  8. https://www.slideshare.net/sinara.h/toruby01a/93

    View full-size slide

  9. 3VCZ͸lจ๪۩zͷΑ͏ͳଘࡏ
    ʹͳ͍ͬͯ͘ŪůŠŪ
    3VCZ,BJHJ5BLFPVUͰ.BU[΋ɺҎ߱͸ݴޠपลͷϓϩάϥϚʔͷ
    ։ൃମݧΛྑ͍ͯ͘͘͠औΓ૊ΈΛڧΊ͍͖͍ͯͨతͳ͜ͱΛݴ͍ͬͯͨ

    View full-size slide

  10. lܭࢉΛ͢Δਓؒͱࢴͷؒʹ͋Δͷ͕ϖϯɻ
    ౤͛ग़ͦ͠͏ʹͳͬͨॠؒʹɺ͋ͱඵ༨
    ܭʹߟ͑ΒΕΔ͔Ͳ͏͔͸ϖϯͰܾ·Δ
    ݪ৴Ұ࿠ ͱͪ͗3VCZձٞ

    View full-size slide

  11. ܭࢉΛ͢Δਓؒͱࢴͷؒʹ͋Δͷ͕ϖϯ
    ܭࢉΛ͢Δਓؒͱ$16ͷؒʹ͋Δͷ͕3VCZ
    3VCZ͸खʹೃછΉϖϯͷΑ͏ͳ΋ͷ
    ϖϯ͸खʹೃછΉ3VCZͷΑ͏ͳ΋ͷ
    -BNZ48*'5ͷॻ͖ຯͷʮͨͷ͠͞ʯ͸3VCZͬΆ͍ؾ͕͢Δ
    ˞ݸਓͷײ૝Ͱ͢

    View full-size slide

  12. https://booth.pm/ja/items/1577882

    View full-size slide

  13. lΧελϜΩʔϘʔυͰ͋Ε͹ɺ·͞ʹΩʔϘʔυ͕೑
    ମͷҰ෦ʹͳΔΑ͏ͳɺͦΜͳࣗ෼͚ͩͷΩʔϘʔυ
    Λͭ͘Δ͜ͱ͕Ͱ͖·͢ɻΩʔϘʔυΛଧ伴͢Δͨͼ
    ʹɺࣗ෼ͷ਎ମ͕֦ு͞Ε͍ͯΔײ͕֮͋ΓɺͦΕ͚ͩ
    Ͱָ͘͠ͳͬͯ͠·͏Α͏ͳɺͦΜͳΩʔϘʔυΛͭ͘
    Δ͜ͱ͕Ͱ͖ΔͷͰ͢ɻ
    ڧௐ౳͸Ҿ༻ऀʹΑΔ

    View full-size slide

  14. ܭࢉΛ͢Δਓؒͱ$16ͷؒʹ͋Δͷ͕3VCZ
    ܭࢉΛ͢Δਓؒͱ3VCZؒʹ͋Δͷ͕ΩʔϘʔυ
    3VCZ͸खʹೃછΉΩʔϘʔυͷΑ͏ͳ΋ͷ
    ΩʔϘʔυ͸खʹೃછΉ3VCZͷΑ͏ͳ΋ͷ

    View full-size slide

  15. ਓ͸3VCZΛࣗ෼ͰϏϧυͰ͖Δ

    View full-size slide

  16. ਓ͸ΩʔϘʔυΛࣗ෼ͰϏϧυͰ͖Δ

    View full-size slide

  17. YOU COULD SAY DIY-KEYBOARD IS ESSENTIALLY RUBY
    ֯୩৴ଠ࿠ !LBLVUBOJ

    ͱͪ͗3VCZ,BJHJUPSVCZ
    %*:ΩʔϘʔυ͸࣮࣭3VCZ

    View full-size slide

  18. lΧελϜΩʔϘʔυͰ͋Ε͹ɺ·͞ʹΩʔϘʔυ͕೑
    ମͷҰ෦ʹͳΔΑ͏ͳɺͦΜͳࣗ෼͚ͩͷΩʔϘʔυ
    Λͭ͘Δ͜ͱ͕Ͱ͖·͢ɻΩʔϘʔυΛଧ伴͢Δͨͼ
    ʹɺࣗ෼ͷ਎ମ͕֦ு͞Ε͍ͯΔײ͕֮͋ΓɺͦΕ͚ͩ
    Ͱָ͘͠ͳͬͯ͠·͏Α͏ͳɺͦΜͳΩʔϘʔυΛͭ͘
    Δ͜ͱ͕Ͱ͖ΔͷͰ͢ɻ
    ڧௐ౳͸Ҿ༻ऀʹΑΔ

    View full-size slide

  19. দߐͰ͸͜ͷࠒ͕ϒʔϜͷ௖఺ͩͬͨͬΆ͍
    ݄߸ͱ݄߸ͷ͍͋ͩͰ.BU[ͷอ༗͢ΔΩʔϘʔυ͕૿͍͑ͯͯ૲
    https://shop.nikkeibp.co.jp/front/app/catalog/list/?searchBackNoSearchFlg=1&searchMediaNameShort=LIN
    ೔ܦ-JOVYͷ࿈ࡌͰ೥݄߸ͱ݄߸ͷ߸Λඅͯ͠
    .BU[͕ࣗ࡞ΩʔϘʔυΛϋʔυιϑτ໘Ͱղઆɻ
    RNLͷར༻๏ͷઆ໌͕ա৒ʹஸೡ 64#έʔϒϧʹ஫ҙ ͳͲ

    .BU[ΩʔϚοϓͷఏҊ΋

    View full-size slide

  20. ͨͷ͍͠%*:ΩʔϘʔυ
    wRNL@pSNXBSF
    ࣗ༝ͳιϑτ΢ΣΞ BTTQFFDI
    Λ࢖ͬͯ04ʹΑΒͣࣗ༝ʹ ࣗ༝ʹ
    ΩʔϚοϓΛઃఆͰ͖Δ BTGSFFCFFS

    w਌ࢦ&OUFS -BZFSΩʔελϯυ໊ʰβɾϋϯυʱ
    ଧ͍ͪͨจࣈͷΩʔʹࢦΛҠಈͤ͞ΔͷͰ͸ͳ͘ɺଧ͍ͪͨจࣈͷΩʔΛࢦͷ΄͏ʹ͚ۙͮΔײ֮Δɻελϯυೳ
    ྗͷൃಈɻΩʔϘʔυ͸ߦ਌ࢦͷ࢓ࣄͿΜͷΩʔ͕͋Ε͹฻ΒͤΔɻ74$PEFΛ࢖͏৔߹΍ɺྲྀ଎ͷૣ͍
    νϟοτʹඋ͑ͯɺ਺ࣈߦ΍ΧʔιϧΩʔͷ͋ΔΩʔϘʔυ΋Ϗϧυ͓ͯ͘͠ͱ΂ΜΓͩͧR
    w५׈ΩʔεΠον ελϏϥΠβʔʹ५׈ࡎΛృ෍͢Δ

    ५׈͸͍͍ͧ
    ࢲ͸೥݄ཤम։࢝ͷʮʹΘ͔ʯͳͷͰɺڵຯΛ΋ͬͨ3VCZJTU֤Ґ͸UXJUUFS͔SVCZKQͷ
    TMBDLLFZCPBSEɺ"TBLVTBSCͷ4MBDL%JTDPSEͰ͔ͨͬΜ࢝Ίઌഐॾࢯʹฉ͍͍ͯͩ͘͞

    View full-size slide

  21. lͭ·ΓɺίϯϐϡʔλʔϢʔβʔ͸ɺࣗ෼ࣗ
    ਎ͷΩʔϘʔυΛ࡞Δ΂͖ͳͷͰ͋Δɻ
    ,FOU#FDL 8BSE$VOOJOHIBN
    lΦϒδΣΫτࢦ޲ϓϩάϥϜͷͨΊͷύλʔϯϥϯήʔδͷ࢖༻z

    View full-size slide

  22. http://www.flickr.com/photos/alanstanton/5863143738/
    l୯ʹΩʔεΠονΛ५׈͢Δ
    ৔߹Ͱ΋ɺৗʹ৺ʹΩʔϘʔ
    υΛࢥ͍ඳ͔Ͷ͹ͳΒͳ͍ɻ
    ʕʕ५׈࡞ۀऀͷ৺ಘ

    View full-size slide

  23. lೖྗΛ͢Δਓؒͱ$16ͷؒ
    ʹ͋Δͷ͕ΩʔϘʔυɻ౤͛
    ग़ͦ͠͏ʹͳͬͨॠؒʹɺ͋
    ͱඵ༨ܭʹೖྗͰ͖Δ͔
    Ͳ͏͔͸ΩʔϘʔυͰܾ·Δ
    ֯୩৴ଠ࿠ ͱͪ͗3VCZձٞ

    View full-size slide

  24. Drawn by @PUPRL, https://twitter.com/PUPRL/status/1294899754757787648
    Happy Typing!!

    View full-size slide

  25. গ͕࣌ؒ͠࢒͍ͬͯΕ͹ ࢲ෺ࣸਅΛ

    ݁ߏ͕࣌ؒ࢒͍ͬͯΕ͹ ࢀߟࢿྉͷ঺հ΋

    View full-size slide

  26. ݱଘ͢Δखݩ
    ͷΩʔϘʔυ

    View full-size slide

  27. https://gihyo.jp/magazine/wdpress/archive/2019/vol112
    ࡾଜ͞ΜͷهࣄͰ͸ʮ΋͛ϚΠΫϩʯʹ͍ͭͯݴٴ͕ແ͍ͷͰ
    ࣮ફ͢Δલʹ͸άάΔͷ͕͓͢͢Ί τϥ΢Ϛ

    View full-size slide

  28. https://booth.pm/ja/items/1577882
    άϨʔτߴҪ௚ਓͷάϨʔτͳҰ࡭ɻ๜୊ʰপ΁ͷϋΠ΢ΣΠʱ
    ͻͱ௨Γͷखॱͱߟ͑ํΛֶ΂Δɻ५׈͸͍͍ͧɻ

    View full-size slide

  29. ϨτϦό͍ͬͯ͏ΩʔϘʔυΛ࡞͍ͬͯΔձࣾ
    ͷࢿྉ͕
    ஸೡʹྺ࢙΍แׅతͳཁૉٕज़Λղઆͯ͘͠Εͯ΂ΜΓR
    https://twitter.com/retrieva_jp/status/958585693189615616

    View full-size slide

  30. ͦΖͦΖ͓ΘΓ
    ΩʔϘʔυ͸͓΋͠Ζ͍
    ˣ
    ΩʔϘʔυͨͷ͍͠
    ˣ
    ΩʔϘʔυ͸ΩϞνΠʔ
    ΩʔϘʔυࣗຫ͸΄Ͳ΄Ͳʹ

    View full-size slide

  31. Drawn by @PUPRL, https://twitter.com/PUPRL/status/1294899754757787648
    Happy Typing!!

    View full-size slide