Write Code Every Day

Write Code Every Day

9f3a83db74bee75a64b5e6ed106a775c?s=128

Takuto Wada

April 25, 2016
Tweet

Transcript

  1. Write Code Every Day Takuto Wada a.k.a @t_wada Apr 25,

    2016
  2. 5BLVUP8BEB JEUXBEB !U@XBEB HJUIVCUXBEB

  3. None
  4. assert(typeof item.id === 'strong') | | | | | |

    | false | | "foo" | Item{id:"foo",name:"bar"} "string" --- [string] 'strong' +++ [string] typeof item.id @@ -1,6 +1,6 @@ str -o +i ng I am the author of power-assert-js power-assert
  5. ΑΖ͓͘͠ئ͍͠·͢

  6. w K2VFSZ࡞ऀ+PIO3FTJH͸ि຤ʹࣗ෼ͷϓϩ μΫτ։ൃΛؤுΖ͏ͱ͕ͨ͠ɺࣦഊɻ w ฏ೔ͱಉ͡അྗͰ͸ॻ͚ͳ͍ w શͯͷि຤͕ۭ͍͍ͯΔΘ͚Ͱ͸ͳ͍ w Ұिؒ ͋Δ͍͸ೋिؒ

    ͸௕͍ɻίʔυ Λ๨Εͯ͠·͏ w ͦ͜Ͱ+PIO3FTJH͕ߦͬͨ͜ͱ͸ʜʜ ͋ͷ+PIO3FTJHͰ΋͏·͍͔͘ͳ͍͜ͱ
  7. IUUQFKPIOPSHCMPHXSJUFDPEFFWFSZEBZ

  8. ຖ೔ίʔυΛॻ͘͜ͱɻϒϩάɺυΩϡϝϯ τɺͦͷଞ͸ίʔυΛॻ͍ͨΒ΍ͬͯΑ͍ɻ ҙຯͷ͋ΔίʔυΛॻ͘͜ͱɻΠϯσϯτ ΍ϑΥʔϚοτͷमਖ਼ɺՄೳͳΒ͹ϦϑΝΫ λϦϯά΋ίʔυॻ͖ʹ͸Χ΢ϯτ͠ͳ͍ɻ ਂ໷࣌લʹऴΘΒͤΔ͜ͱɻ ॻ͍ͨίʔυΛHJUIVCͰશͯ044ʹ͢Δ ͜ͱɻ ࢛ͭͷϧʔϧ IUUQFKPIOPSHCMPHXSJUFDPEFFWFSZEBZ

  9. ݱࡏͷ!KFSFTJHͷHJUIVCQSPpMF IUUQTHJUIVCDPNKFSFTJH

  10. w ඞཁ࠷খݶͷίʔυ΁ͷूதҰ೔෼ʙ࣌ؒఔ౓Ͱҙ ຯͷ͋ΔίʔυΛॻ͘͜ͱ͕ڧ͍ΒΕΔ ٳ೔ʹ͸΋ͬͱ ͔͚ΒΕΔ  w ϓϩάϥϛϯάͷश׳ԽHJUIVCʹ૲Λੜ΍͢ͷ͕໨తͰ ͸ͳ͍ɻࣗ෼Ͱࣗ෼ࣗ਎ͷͨΊʹੜ׆श׳Λม͑Δͷ͕େ ࣄ

    w ෆ҆ͱͷઓ͍Ҏલ͸ʮे෼ʹʯਐΜͰ͍Δ͔ɺʮे෼ ʹʯ׬੒͍ͯ͠Δ͔ɺෆ͕҆͋ͬͨɻຖ೔ίʔυΛॻ͍ͯ ΈͯɺਐΜͰ͍Δͱ͍͏࣮ײ͸ɺ࣮ࡍͷਐḿͱಉ͘͡Β͍ ॏཁͩͱ͍͏ؾ͖ͮΛಘͨ +PIO3FTJHʹىͬͨ͜มԽ 
  11. w ि຤ͷա͔ͨ͝͠Ҏલ͸։ൃͷશͯΛि຤ʹṌ͚ࣦͯ ഊ͍͕ͯͨ͠ɺ͍·΍ि຤͸ͦΕ΄ͲॏཁͰͳ͘ͳΓɺ ϦΞϧϥΠϑΛॆ࣮Ͱ͖ΔΑ͏ʹͳͬͨ w όοΫάϥ΢ϯυॲཧࢄาதɺγϟϫʔதɺৗʹίʔ υͷ͜ͱΛόοΫάϥ΢ϯυͰߟ͑ΔΑ͏ʹͳΓɺྑ ͍ΞΠσΞ͕ු͔ͿΑ͏ʹͳͬͨ w ίϯςΫετεΠονҎલ͸िʹҰճͷ։ൃͩͬͨͷ

    ͰίϯςΫετεΠονͷίετ͕͕͋ͬͨɺ͍·͸ ຖ೔ͳͷͰͦΕ͕ͳ͍ +PIO3FTJHʹىͬͨ͜มԽ 
  12. w ϫʔΫϥΠϑόϥϯε࢓ࣄੜ׆ࣗ෼ͷϓϩδΣΫτ ͷόϥϯεͷऔΓํ͕෼͔ͬͨͷ͕࠷େͷऩ֭ͩͬͨɻ ຖ೔΍Δͱ͍͏͜ͱ͸ɺόϥϯεΛऔΔͱ͍͏͜ͱ w ·ΘΓ͔Βͷཧղʮຖ೔ίʔυΛॻ͘ʯͱ͍͏श׳Λ ެݴͨ͜͠ͱͰɺύʔτφʔ͔Βͷཧղ΋ಘΒΕΔΑ ͏ʹͳͬͨ w ͲΕ͚ͩίʔυΛॻ͍͔ͨ͜ͷश׳Λଓ͚Δͱॻ͘

    ίʔυ΍Ξ΢τϓοτ͸ࣗ෼Ͱ΋֮͑ΒΕͳ͍͘Β͍ ͷྔʹͳΓɺॆ࣮ײΛಘΒΕΔ +PIO3FTJHʹىͬͨ͜มԽ 
  13. ཁ͢ΔʹےτϨͷΑ͏ͳ΋ͷ͔ IUUQISOBCJDPN

  14. lτϨʔχϯά͕ܧଓՄೳͰ͋ΔΑ͏ʹҙࣝ͠ͳ͕Β ࢓ࣄΛ͍ͯ͘͠ͱɺӡಈ΍৯ࣄɺ͋ͱ͸ੜ׆श׳ͱ͍ ͏΋ͷͷॏཁੑʹؾͮ͘͜ͱ͕Ͱ͖Δͱࢥ͍·͢z lͪΌΜͱ໨తΛ࣋ͭ͜ͱɻه࿥Λ৳͹͢Α͏ʹ΍Β ͳ͍ͱޮՌ͕ͳ͍Α͏ʹࢥ͏ΜͰ͢ɻه࿥Λ৳͹ͨ͠ ͍ͱࢥ͑Δ͔Ͳ͏͔ͬͯɺʮ޷͖ͷόϩϝʔλʔʯͷ ͭͰ͢z IUUQISOBCJDPN ѲྗԦ΋ڼ͍ͬͯΔ

  15. ࢲ΋νϟϨϯδதͰ͢ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠