Share
Embed
2020 RTC Frontend Development
2020年度リクルート新人ブートキャンプ エンジニアコースの講義資料です
Recruit Technologies
August 21, 2020
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
76 slides
-
RTCϑϩϯτΤϯυ։ൃ֓ཁ 1. ࣗݾհ 2. डߨੜࣗݾհ 3. ϑϩϯτΤϯυͷશମ૾ʹ͍ͭͯ 4. RTCʹ͓͚ΔϑϩϯτΤϯυ։ൃʹ͍ͭͯ 5.
ΞΠεϒϨΠΫ 6. HTML/CSS ϨΫνϟʔ 7. ϋϯζΦϯ -
What Is a Front-End Developer? Source: https://en.wikipedia.org/wiki/Front-end_web_development Front-end web development,
also known as client-side development is the practice of producing HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. The challenge associated with front end development is that the tools and techniques used to create the front end of a website change constantly and so the developer needs to constantly be aware of how the field is developing. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer. -
What Is a Front-End Developer? Source: https://en.wikipedia.org/wiki/Front-end_web_development Front-end web development,
also known as client-side development is the practice of producing HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. The challenge associated with front end development is that the tools and techniques used to create the front end of a website change constantly and so the developer needs to constantly be aware of how the field is developing. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer. ΫϥΠΞϯταΠυ։ൃͱݺΕΔϑϩϯτΤϯυWeb։ൃɺWebαΠτWebΞϓϦέʔγϣ ϯ༻ͷHTMLɺCSSɺJavaScriptΛੜͯ͠ɺϢʔβʔ͕ͦΕΒΛݟͨΓରͰ͖ΔΑ͏ʹ͢Δ͜ ͱͰ͢ɻϑϩϯτΤϯυͷ։ൃʹؔ࿈͢Δ՝ɺΣϒαΠτͷϑϩϯτΤϯυΛ੍࡞͢ΔͨΊʹ ༻͞ΕΔπʔϧςΫχοΫ͕ઈ͑ͣมԽ͢ΔͨΊɺ։ൃऀͦͷͷൃలঢ়گΛৗʹೝࣝ͢Δඞཁ ͕͋Δͱ͍͏͜ͱͰ͢ɻ -
What Is a Front-End Developer? Source: https://en.wikipedia.org/wiki/Front-end_web_development Front-end web development,
also known as client-side development is the practice of producing HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. The challenge associated with front end development is that the tools and techniques used to create the front end of a website change constantly and so the developer needs to constantly be aware of how the field is developing. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer. ΫϥΠΞϯταΠυ։ൃͱݺΕΔϑϩϯτΤϯυWeb։ൃɺWebαΠτWebΞϓϦέʔγϣ ϯ༻ͷHTMLɺCSSɺJavaScriptΛੜͯ͠ɺϢʔβʔ͕ͦΕΒΛݟͨΓରͰ͖ΔΑ͏ʹ͢Δ͜ ͱͰ͢ɻϑϩϯτΤϯυͷ։ൃʹؔ࿈͢Δ՝ɺΣϒαΠτͷϑϩϯτΤϯυΛ੍࡞͢ΔͨΊʹ ༻͞ΕΔπʔϧςΫχοΫ͕ઈ͑ͣมԽ͢ΔͨΊɺ։ൃऀͦͷͷൃలঢ়گΛৗʹೝࣝ͢Δඞཁ ͕͋Δͱ͍͏͜ͱͰ͢ɻ αΠτΛઃܭ͢ΔతɺϢʔβʔ͕αΠτΛ։͍ͨͱ͖ʹɺಡΈؔ͘͢࿈ੑͷߴ͍ܗࣜͰใ͕ද ࣔ͞ΕΔΑ͏ʹ͢Δ͜ͱͰ͢ɻ͜Εɺը໘αΠζղ૾͕͞·͟·ͳσόΠεΛϢʔβʔ͕༻͠ ͍ͯΔͨΊɺઃܭऀ͕αΠτΛઃܭ͢Δࡍʹ͜ΕΒͷ໘Λߟྀ͢Δඞཁ͕͋ΔͨΊɺ͞ΒʹෳࡶʹͳΓ ·͢ɻ൴ΒɺҟͳΔϒϥβʢΫϩεϒϥβʣɺҟͳΔΦϖϨʔςΟϯάγεςϜʢΫϩεϓϥο τϑΥʔϜʣɺ͓ΑͼҟͳΔσόΠεʢσόΠεؒʣͰαΠτ͕ਖ਼͘͠ಈ࡞͢ΔΑ͏ʹ͢Δඞཁ͕͋Γ ·͢ɻ -
What Is a Front-End Developer? Source: https://en.wikipedia.org/wiki/Front-end_web_development Front-end web development,
also known as client-side development is the practice of producing HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. The challenge associated with front end development is that the tools and techniques used to create the front end of a website change constantly and so the developer needs to constantly be aware of how the field is developing. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer. ΫϥΠΞϯταΠυ։ൃͱݺΕΔϑϩϯτΤϯυWeb։ൃɺWebαΠτWebΞϓϦέʔγϣ ϯ༻ͷHTMLɺCSSɺJavaScriptΛੜͯ͠ɺϢʔβʔ͕ͦΕΒΛݟͨΓରͰ͖ΔΑ͏ʹ͢Δ͜ ͱͰ͢ɻϑϩϯτΤϯυͷ։ൃʹؔ࿈͢Δ՝ɺΣϒαΠτͷϑϩϯτΤϯυΛ੍࡞͢ΔͨΊʹ ༻͞ΕΔπʔϧςΫχοΫ͕ઈ͑ͣมԽ͢ΔͨΊɺ։ൃऀͦͷͷൃలঢ়گΛৗʹೝࣝ͢Δඞཁ ͕͋Δͱ͍͏͜ͱͰ͢ɻ αΠτΛઃܭ͢ΔతɺϢʔβʔ͕αΠτΛ։͍ͨͱ͖ʹɺಡΈؔ͘͢࿈ੑͷߴ͍ܗࣜͰใ͕ද ࣔ͞ΕΔΑ͏ʹ͢Δ͜ͱͰ͢ɻ͜Εɺը໘αΠζղ૾͕͞·͟·ͳσόΠεΛϢʔβʔ͕༻͠ ͍ͯΔͨΊɺઃܭऀ͕αΠτΛઃܭ͢Δࡍʹ͜ΕΒͷ໘Λߟྀ͢Δඞཁ͕͋ΔͨΊɺ͞ΒʹෳࡶʹͳΓ ·͢ɻ൴ΒɺҟͳΔϒϥβʢΫϩεϒϥβʣɺҟͳΔΦϖϨʔςΟϯάγεςϜʢΫϩεϓϥο τϑΥʔϜʣɺ͓ΑͼҟͳΔσόΠεʢσόΠεؒʣͰαΠτ͕ਖ਼͘͠ಈ࡞͢ΔΑ͏ʹ͢Δඞཁ͕͋Γ ·͢ɻ -
What Is a Front-End Developer? 1.HTTP Request 2. HTML CSS
JS ΞϓϦέʔγϣϯ ϨΠϠ ΠϯϑϥετϥΫνϟ ϨΠϠ αʔϏε ϨΠϠ ϓϨθϯςʔγϣϯ ϨΠϠ Ϣʔβ ΠϯλʔϑΣΠε Client Server DB Service 200X -
1.HTTP(S) Request 2. HTML CSS JS ΞϓϦέʔγϣϯ ϨΠϠ ΠϯϑϥετϥΫνϟ ϨΠϠ
αʔϏε ϨΠϠ ϓϨθϯςʔγϣϯ ϨΠϠ 3.ඇಉظRequest 4. JSON XML HTML Ϣʔβ ΠϯλʔϑΣΠε Client Server DB Service What Is a Front-End Developer? 2005 -
1.HTTP(S) Request 2. HTML CSS JS ΞϓϦέʔγϣϯ ϨΠϠ ΠϯϑϥετϥΫνϟ ϨΠϠ
αʔϏε ϨΠϠ ϓϨθϯςʔγϣϯ ϨΠϠ ϓϨθϯςʔγϣϯ ϨΠϠ 3.ඇಉظRequest 4. JSON XML HTML Ϣʔβ ΠϯλʔϑΣΠε Client Server DB Service What Is a Front-End Developer? 2005 -
What Is a Front-End Developer? ▸ ߋ৽Λ͔͚͍ͨը໘ͷҰ෦ͷΈΛભҠΛհͣ͞ʹߋ৽ग़དྷΔΑ͏ ʹͳͬͨ ▸ UXͷඈ༂త্ʢGmailɺGoogleMapsʣ
ϝϦοτ ৽ͨͳ ▸ ϓϨθϯςʔγϣϯϨΠϠΛ͖࣋ͬͯͨࣄʹΑͬͯɺᴈ໌ظ͕དྷͨɻιϑτ ΣΞ։ൃͷϓϥΫςΟε͕ϑϩϯτʹͳ͔ͬͨͨΊɻ ▸ ඇಉظॲཧࣗମ͕ɺѻ͑Δਓ͕গͳ͔ͬͨΓɺݴޠͱͯ͠ඇಉظͷαϙʔτ͕ ෆ͍ͯͨ͠ʢe.g. callback͔͠ͳ͍ͳͲʣ ▸ ϑϩϯτͱαʔόʔͷ྆ํʹϓϨθϯςʔγϣϯϨΠϠ͕͋ΔͭΒΈ -
1.HTTP(S) Request 2. HTML CSS JS ΞϓϦέʔγϣϯ ϨΠϠ σʔλΞΫηε ϨΠϠ
αʔϏε ϨΠϠ ϓϨθϯςʔγϣϯ ϨΠϠ 3.ඇಉظRequest 4. JSON XML HTML Ϣʔβ ΠϯλʔϑΣΠε Client Server DB Service What Is a Front-End Developer? ΞϓϦέʔγϣϯ ϨΠϠ 2010 -
What Is a Front-End Developer? ϝϦοτ σϝϦοτ ▸ SEOͱͷܾผ ▸
ΞΫηεղੳ͕͍͠ ▸ ॳظϖʔδͷඳըͷ͞ ▸ ࣮ͷԽ ▸ NativeΞϓϦͷΑ͏ͳϢʔβମݧΛಘΒΕΔΑ͏ʹͳͬͨɻ ▸ ΞϓϦέʔγϣϯϨΠϠ͕ϑϩϯτʹ߱Γ͖ͯͨ͜ͱʹΑͬͯɺطଘ ͷΒΕ͍ͯΔMVCͳͲͷύλʔϯ͕ద༻Մೳʹͳͬͨɻ -
What Is a Front-End Developer? SEOͱɺ”Search Engine Optimization” ͷུͰ͋Γɺ ݕࡧΤϯδϯ࠷దԽΛҙຯ͢Δݴ༿ɻ
ݕࡧ݁ՌͰWebαΠτ͕ΑΓଟ͘࿐ग़͞ΕΔͨΊʹߦ͏Ұ࿈ͷऔ ΓΈͷ͜ͱΛࢦ͢ɻ -
What Is a Front-End Developer? SPAͷ࣮ΛBackboneͰߦ͏ͷਏ͘ɺ AngularJSʢv1ʣͱ͍͏auto bindingػೳΛ࣋ͬͨMVCϑϨʔϜ ϫʔΫΛ༻ͯ͠ߏங͞ΕΔΑ͏ʹͳͬͨɻ auto
bindingػೳɺϞσϧͱϏϡʔͦΕͧΕͷมԽΛํͰ ࣗಈతʹөͯ͘͠ΕΔͨΊɺ ϓϩάϥϛϯάίετԼ͕͕ͬͨɺAngularJSʢv1ʣ͕࠾༻͠ ͨauto bindingػೳͷํ๏ɺΠϕϯτϧʔϓͰdirty checkΛ͠ ͍ͯΔͨΊॏ͔ͬͨɻ -
What Is a Front-End Developer? ϝϦοτ σϝϦοτ ▸ SEOͱͷܾผˠGoogleͷΫϩʔϥʔ͕ਐԽ͠ݱࡏղܾ ▸
ΞΫηεղੳ͕͍͠ˠ·͍ͩ͠ ▸ ॳظϖʔδͷඳըͷ͞ˠSSR(αʔόʔαΠυϨϯμϦϯά)͕ղܾ ▸ ࣮ͷԽˠUX͕ʑ্͠ΞϓϦै͢ΔͨΊΤϯυϨε ▸ NativeΞϓϦͷΑ͏ͳϢʔβମݧΛಘΒΕΔΑ͏ʹͳͬͨɻ →Nativeʹఔԕ͔͕ͬͨReactʹΑ͚ͬͯۙͮͨ -
What Is a Front-End Developer? ϝϦοτ σϝϦοτ ▸ SEOͱͷܾผˠGoogleͷΫϩʔϥʔ͕ਐԽ͠ݱࡏղܾ ▸
ΞΫηεղੳ͕͍͠ˠ·͍ͩ͠ ▸ ॳظϖʔδͷඳըͷ͞ˠSSR(αʔόʔαΠυϨϯμϦϯά)͕ղܾ ▸ ࣮ͷԽˠUX͕ʑ্͠ΞϓϦै͢ΔͨΊΤϯυϨε ▸ NativeΞϓϦͷΑ͏ͳϢʔβମݧΛಘΒΕΔΑ͏ʹͳͬͨɻ →Nativeʹఔԕ͔͕ͬͨReactʹΑ͚ͬͯۙͮͨ -
What Is a Front-End Developer? ClientSideͰHTMLΛϨϯμϦϯά͢Δ͜ͱΛ Client Side Rendering(CSR)ͱݺͿɻ ͦΕʹରͯ͠ɺಉ͜͡ͱΛServeSideͰ࣮ࢪ͢Δ͜ͱΛ
ServerSideRendring(SSR)ͱݺͿɻ SSRͯ͠HTMLΛαʔόʔ͔Β৴͢Δ͜ͱͰɺSPAͷϘτϧωοΫͷ1ͭͰ͋ͬͨ ॳظϖʔδͷඳըͷ͞Λղܾͨ͠ɻ աڈʹSSRࣗମ͕͋ͬͨɺSPAͰݴ͏SSRɺCSRͱSSRͰಉ͡ίʔυ͕͑Δ͜ͱ͕ ϙΠϯτͰɺίʔυͷڞ༗ԽʹΑΓɺೋॏ։ൃΛආ͚ͳ͕ΒύϑΥʔϚϯεͷ্͕ߦ͑Δɻ SSRʢαʔόʔαΠυϨϯμϦϯάʣͱ -
What Is a Front-End Developer? SSR͢Δ͜ͱͰύϑΥʔϚϯεΛखʹೖΕ͕ͨɺ ҰํͰαʔόʔαΠυͷίʔυΛϑϩϯτΤϯυ͕୲͏͜ͱͰѻ͏ྖҬ͕૿͑ͨɻ ϑϩϯτΤϯυʹܕͷधཁ͕ग़͖ͯͯɺ TypeScriptͱݺΕΔϑϩϯτΤϯυͰܕΛѻ͑Δ੩తܕ͚ͷAltJS͕ྲྀߦΔΑ͏ʹͳͬ ͨɻ
TypeScriptʹ͍ͭͯɺޙQuramy͞Μͷߨ͕ٛ͋ΔͨΊৄͦ͘͜͠Ͱʂ SSRʢαʔόʔαΠυϨϯμϦϯάʣͱ x -
What Is a Front-End Developer? Source: https://en.wikipedia.org/wiki/Front-end_web_development Front-end web development,
also known as client-side development is the practice of producing HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. The challenge associated with front end development is that the tools and techniques used to create the front end of a website change constantly and so the developer needs to constantly be aware of how the field is developing. The objective of designing a site is to ensure that when the users open up the site they see the information in a format that is easy to read and relevant. This is further complicated by the fact that users now use a large variety of devices with varying screen sizes and resolutions thus forcing the designer to take into consideration these aspects when designing the site. They need to ensure that their site comes up correctly in different browsers (cross-browser), different operating systems (cross-platform) and different devices (cross-device), which requires careful planning on the side of the developer. ΫϥΠΞϯταΠυ։ൃͱݺΕΔϑϩϯτΤϯυWeb։ൃɺWebαΠτWebΞϓϦέʔγϣ ϯ༻ͷHTMLɺCSSɺJavaScriptΛੜͯ͠ɺϢʔβʔ͕ͦΕΒΛݟͨΓରͰ͖ΔΑ͏ʹ͢Δ͜ ͱͰ͢ɻϑϩϯτΤϯυͷ։ൃʹؔ࿈͢Δ՝ɺΣϒαΠτͷϑϩϯτΤϯυΛ੍࡞͢ΔͨΊʹ ༻͞ΕΔπʔϧςΫχοΫ͕ઈ͑ͣมԽ͢ΔͨΊɺ։ൃऀͦͷͷൃలঢ়گΛৗʹೝࣝ͢Δඞཁ ͕͋Δͱ͍͏͜ͱͰ͢ɻ αΠτΛઃܭ͢ΔతɺϢʔβʔ͕αΠτΛ։͍ͨͱ͖ʹɺಡΈؔ͘͢࿈ੑͷߴ͍ܗࣜͰใ͕ද ࣔ͞ΕΔΑ͏ʹ͢Δ͜ͱͰ͢ɻ͜Εɺը໘αΠζղ૾͕͞·͟·ͳ͞·͟·ͳσόΠεΛϢʔ βʔ͕༻͍ͯ͠ΔͨΊɺઃܭऀ͕αΠτΛઃܭ͢Δࡍʹ͜ΕΒͷ໘Λߟྀ͢Δඞཁ͕͋ΔͨΊɺ͞Β ʹෳࡶʹͳΓ·͢ɻ൴ΒɺҟͳΔϒϥβʢΫϩεϒϥβʣɺҟͳΔΦϖϨʔςΟϯάγεςϜ ʢΫϩεϓϥοτϑΥʔϜʣɺ͓ΑͼҟͳΔσόΠεʢσόΠεؒʣͰαΠτ͕ਖ਼͘͠ಈ࡞͢ΔΑ͏ʹ ͢Δඞཁ͕͋Γ·͢ɻ -
What Is a Front-End Developer? “มΘΔͷɻٕज़ͷมԽཐટঢ়ɻཐટͷࠩͱɺͦΕΛՄೳ ʹٕͨ͠ज़Λཧղ͢Δ มΘΒͳ͍ͷɻੜ͖Δٕज़ʹಛ͕͋Δɻͦͷഎޙʹ͋Δ நͷ͔ͪΒΛཧղ͢Δ” Source:
https://speakerdeck.com/twada/worse-is-better-understanding-the-spiral-of-technologies-2019-edition -
RTCʹ͓͚ΔϑϩϯτΤϯυ։ൃ RTCͰSPAͷ՝Λղܾ͍ͯ͠Δ1ྫͱͯ͠AirγϑτΛհ͠·͢ɻ toB ͷ ΞϓϦέʔγϣϯෳࡶͳۀίϯςΩετ͕བྷΉͨΊɺཁ͕݅ෳࡶԽ͍͢͠ʹ͋Δɻ AirγϑτͦΕͧΕͷ͓ళͰΘΕ͍ͯΔϑΥʔϚοτཁ͕݅όϥόϥͷExcel Ͱ࡞ΒΕ͍ͯͨγ ϑτදΛWebͰ࣮ݱ͢Δඞཁੑ͕͋ΓෳࡶԽ͍ͯͨ͠ɻ toB ͷΞϓϦέʔγϣϯ
"ຖۀ" Ͱ͏ͨΊ୯७ͳػೳཁ͚݅ͩͰͳ͘ɼʑ͍ଓ͚Δ্Ͱε τϨεΛ࠷খݶʹ͢ΔͨΊͷඇػೳཁ͕݅ॏཁʂ AirγϑτͰɼෳࡶཁ͔݅ΒΞϓϦέʔγϣϯͷϩδοΫෳࡶʹͳΓύϑΥʔϚϯεͷ՝Λ๊͑ͯ ͓Γɺ͞ΒʹϩδοΫ͚ͩͷͰͳ͘ɺళฮͰΘΕΔPCͷεϖοΫ͕ྑ͍Θ͚Ͱͳ͍ͨΊɺɹ ಈ࡞ڥʹ՝͕͋ͬͨɻ εϖοΫͳPC × ෳࡶͳϩδοΫ ͱ͍͏Έ߹ΘͤͰ ߴͳಈ࡞ʹ࣮ݱ͢ΔͨΊʹվળͨ͠ࣄྫͱ ͯ͠Googleͷ web.dev ʹհ͞Εͨɻ -
RTCʹ͓͚ΔϑϩϯτΤϯυ։ൃ RTCͰSPAͷ՝Λղܾ͍ͯ͠Δ1ྫͱͯ͠AirγϑτΛհ͠·͢ɻ toB ͷ ΞϓϦέʔγϣϯෳࡶͳۀίϯςΩετ͕བྷΉͨΊɺཁ͕݅ෳࡶԽ͍͢͠ʹ͋Δɻ AirγϑτͦΕͧΕͷ͓ళͰΘΕ͍ͯΔϑΥʔϚοτཁ͕݅όϥόϥͷExcel Ͱ࡞ΒΕ͍ͯͨγ ϑτදΛWebͰ࣮ݱ͢Δඞཁੑ͕͋ΓෳࡶԽ͍ͯͨ͠ɻ toB ͷΞϓϦέʔγϣϯ
"ຖۀ" Ͱ͏ͨΊ୯७ͳػೳཁ͚݅ͩͰͳ͘ɼʑ͍ଓ͚Δ্Ͱε τϨεΛ࠷খݶʹ͢ΔͨΊͷඇػೳཁ͕݅ॏཁʂ AirγϑτͰɼෳࡶཁ͔݅ΒΞϓϦέʔγϣϯͷϩδοΫෳࡶʹͳΓύϑΥʔϚϯεͷ՝Λ๊͑ͯ ͓Γɺ͞ΒʹϩδοΫ͚ͩͷͰͳ͘ɺళฮͰΘΕΔPCͷεϖοΫ͕ྑ͍Θ͚Ͱͳ͍ͨΊɺɹ ಈ࡞ڥʹ՝͕͋ͬͨɻ εϖοΫͳPC × ෳࡶͳϩδοΫ ͱ͍͏Έ߹ΘͤͰ ߴͳಈ࡞ʹ࣮ݱ͢ΔͨΊʹվળͨ͠ࣄྫͱ ͯ͠Googleͷ web.dev ʹհ͞Εͨɻ Source: https://web.dev/five-ways-airshift-improved-their-react-app/