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

Contribute to Web

Ryo Sakuma
August 10, 2017

Contribute to Web

Nihonbashi.js #2

Ryo Sakuma

August 10, 2017
Tweet

More Decks by Ryo Sakuma

Other Decks in Technology

Transcript

  1. 1. Localization ❖ JavaScript ͱग़ձͬͨͷ͸໿ 2 ೥લ ❖ ᷿ͷ೔ຊޠ৘ใ͸ HTML

    ͱͷؔ࿈͹͔Γ ❖ গ͠ϚΠφʔʹͳΔͱӳޠυΩϡϝϯτ͚ͩ ❖ ͦΕ΄Ͳӳޠ͕ಘҙͰ͸ͳ͔ͬͨͷͰͭΒ͍
  2. 1. Localization ❖ ೔ຊޠ৘ใ͕ͳ͚Ε͹ࣗ෼Ͱ࡞Ε͹͍͍ ❖ MDN ͸ wiki ͳͷͰࣗ༝ʹ೔ຊޠهࣄΛ࡞ΕΔ ❖

    ΋ͪΖΜٕज़໘ͰษڧʹͳΔ ❖ ຋༁ = ਫ਼ಡ͢Δ͏ͪʹ࣍ୈʹӳޠ͕ා͘ͳ͘ͳΔ
  3. 1. Localization ❖ MDN (Browser JS API, Security, CSS) ❖

    Mozilla Security Blog ೔ຊޠ൛ ❖ webappsec-specjp
  4. // quiz1.js class Base {} class Derived extends Base {

    hi() { console.log("hi"); } } const d = new Derived(); d.hi();
  5. // quiz2.js class Derived extends Buffer { constructor(n) { super(n);

    } hi() { console.log("hi"); } } const d = new Derived(8); d.hi();
  6. 2. Filing Issues - Node ❖ ͜Ε͸͕͢͞ʹόάͰ͸… ❖ GitHub Ͱ

    Issue ใࠂ ❖ Node ͷ Nightly build Ͱ΋࠶ݱ͢Δ͜ͱΛ֬ೝ ❖ Issue ͷӳจ਺ߦΛॻ͘ͷʹ 30 ෼͙Β͍೰Μͩ ❖ ಡΉͷͱॻ͘ͷͱ͸·ͨผ…
  7. 2. Filing Issues - Node ❖ 1:44 ʹ Issue ใࠂ

    ❖ 2:50 ʹ࠷ॳͷฦ৴ + Self assigned ❖ 3:12 ʹमਖ਼Ҋͷύον͕ϦϯΫ͞ΕΔʢ଎͍ʂʣ
  8. 2. Filing Issues - Node ❖ ࣌ظతʹ Node v5 ͔Β

    v6 ΁ͷస׵ظ ❖ new Buffer Λ΍Ίͯ Buffer.from ʹ͢ΔͳͲ ❖ ͜ͷमਖ਼͕ master ʹೖΔ͜ͱ͸ͳ͔͕ͬͨɺ Buffer Λ௚઀ extends ͢Δ͜ͱ͸كʁ
  9. 3. Filing Issues - Browser ❖ ͋Δ೔ TweetDeck Λ Firefox

    Ͱ࢖͍ͬͯͨΒ ❖ ೔ຊޠೖྗͰࢠԻͱ฼Ի͕࿈݁͞Εͳ͍ʂ
  10. 3. Filing Issues - Browser ❖ ະ֬ఆจࣈ͕ textarea.value ͳͲʹೖͬͨ৔߹ͷ ಈ࡞͸

    WHATWG Ͱ͸ະఆٛ textarea.addEventListener("input", _evt => { textarea.value = textarea.value; }); ࣮ࡍʹ໰୊ͱͳ͍ͬͯͨͱਪଌ͞ΕΔٖࣅίʔυ front side ϏϧυϓϩηεͷෳࡶԽʹΑͬͯฆΕࠐΜ͔ͩʁ
  11. 3. Filing Issues - Browser ❖ TweetDeck νʔϜଆͷςετෆ଍͕ݪҼ ❖ ৄࡉɿ΋ͣ͸ͬ͘೔هɿ

    TweetDeckͰFirefox͔Β ೔ຊޠ͕ೖྗͰ͖ͳ͘ͳ͍ͬͯΔ݅ ❖ Gecko ͱ Twitter ͷ։ൃऀ͕௚઀΍ΓऔΓ͢Δڳ ೤ͳల։
  12. 3. Filing Issues - Browser ❖ ཤྺॻΛ HTML + CSS

    Ͱ࡞͍ͬͯͨͱ͖ͷ͜ͱ ❖ <li> ͱ Flexbox ͕ೖΕࢠʹͳͬͨϖʔδΛ Chrome Ͱදࣔ͢ΔͱҐஔ͕͓͔͘͠ͳΔ ❖ Issue 579601: li::marker with flexbox is placed on a slipped position ❖ ·ͩະमਖ਼
  13. 4. Browser Inside ❖ Gecko inside #7ɿύονΛ࡞Ζ͏ϋϯζΦϯ ❖ Gecko (Firefox)

    ͷίϛολʔͱҰॹʹύονΛ
 ࡞ΔϋϯζΦϯ ❖ Web Animations API ʹ͓͍ͯΞχϝʔγϣϯͷ Ҡಈํ޲Λ੍ޚ͢Δ࣮૷ͷ͓ख఻͍ ❖ ΋ͪΖΜ Bugzilla ͰӳޠͰίϛϡχέʔγϣϯ
  14. 4. Browser Inside ❖ Browser ͸͓ͦΒ͘ੈքͰҰ൪ڊେͳ C++ ͷ
 OSS ϓϩδΣΫτͳͷͰ͸ʁʢݸਓͷҙݟʣ

    ❖ ੈքதͷਓ͕࢖͍ͬͯΔ΋ͷʹࣗ෼ͷίʔυ͕
 ࢖ΘΕ͍ͯΔͬͯͪΐͬͱخ͍͠
  15. 4. Browser Inside ❖ Πϕϯτޙ΋௚઀Կݸ͔νέοτΛΞαΠϯͯ͠ ͍͍ͨͩͨΓ ❖ JS ͷςετίʔυΛϦϑΝΫλϦϯάͨ͠Γ ❖

    ΋͏গ͠೉͍͠ C++ ͷίʔυΛॻ͍ͨΓ ❖ e.g. Ξχϝʔγϣϯؔ࿈ͷ devtools ͷόάमਖ਼
  16. 4. Browser Inside ❖ Firefox DevTools ͷόάमਖ਼ ❖ DevTools ͸

    HTML (XML) + CSS + JS ❖ ࣮͸ Firefox DevTools ʹ React ͕࠾༻͞Ε͍ͯΔ
  17. Wrap up ❖ ΍ͬͺΓ OSS ͸ָ͍͠ʂ ❖ web ք۾Ͱͷ “OSS”

    ͱ͍͏ͱ࢓ࣄͰ࢖͍ͬͯΔ ϥΠϒϥϦɾݴޠʹറΒΕ͕ͪ ❖ web dev ͳΒ Browser ʹ΋໨Λ޲͚͍͖͍ͯͨ ❖ ීஈͷ։ൃͰग़ձͬͨόά͸ੵۃతʹใࠂ͍ͨ͠