Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Web からアプリの世界にやってきてハマったこと
Search
manemone
August 11, 2015
Technology
61
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web からアプリの世界にやってきてハマったこと
BearTail エンジニア交流 #1 での発表スライド(再構成版)
https://atnd.org/events/68533
manemone
August 11, 2015
Transcript
31 slides
Web ͔ΒΞϓϦͷੈքʹ ͖ͬͯͯϋϚͬͨ͜ͱ
͋ͳͨ୭ ᖛాҰتɺWeb ΤϯδχΞ ΫοΫύουגࣜձࣾ
ʮ͓͍͍݈͠߁ʯ ͱ͍͏αʔϏεΛ࡞ͬͯΔ
"Web" ΤϯδχΞ ͷ͚ͣͩͬͨͲ……ɻ
(Web|ΞϓϦ) ΤϯδχΞʹ ԟʑʹͯ͋͠Δ͜ͱ
ࠓ͢͜ͱ • Web ౕͬͯͨΒ͕͡ΊͯΞϓϦ։ൃͬͨΒେมͩͬͨ • ͭ·͖͕ͮͪͳϙΠϯτΛవΊͯΈͨΑ
ը໘ͷΓ͚ઃܭ
Web - جຊతʹจॻʢϋΠύʔςΩετʣ • ϖʔδ୯ҐͰϏϡʔΛ࡞ • ϖʔδϦιʔεͷ CRUD ૢ࡞୯Ґ͕جຊ •
Ͱ͖ͨϖʔδΛϦϯΫͰͭͳ͍Ͱ͍͘ • Ϣʔβࣗ༝ʹϖʔδ͍ؒͬͨΓདྷͨΓͰ͖Δ
ΞϓϦ - OS ͷ UI ͱಉ Ϗϡʔ GUI ͦͷͷ •
ΠϯλϥΫςΟϒͳ UI ཁૉΛଟ༻ • ͳΔ͘ը໘ભҠΛ͠ͳ͍ ϦϯΫͷ֓೦ͳ͍ • Ϣʔβ͖ͳը໘ʹδϟϯϓͰ͖ͳ͍ • ֤ը໘ͷදࣔϑϩʔݶఆ
Web ͬΆ͍ભҠʹ͠ͳ͍ ͍͍ͨͯը໘Λ͚͗͢Δ • ࡞ը໘ˠ֬ೝը໘ˠྃը໘ • ̋ ϞʔμϧͰೖྗը໘ग़͖͙ͯͯ͢ফ͑Δ •
ʮؔ৺ʯʮతʯ୯ҐͰҰͭͷը໘ʹ·ͱΊΔͱΞϓϦͬ Ά͘ͳΔ • ίϯςϯπϝΠϯͰͳ͍ը໘ͰεΫϩʔϧආ͚Δ
Android ͱ iOS ͷ UI ͷ ҧ͍Λແࢹͯ͠͠·͏
Α͋͘Δߟ͑ ʮ྆ OS ڞ௨ͷ UI ΛσβΠϯ͍ͯ͠·Θͦ͏ʯ
Ίͨ΄͏͕͍͍ ʮ྆ OS ڞ௨ͷ UI ΛσβΠϯ͍ͯ͠·Θͦ͏ʯ
OS ͝ͱͷࣗવͳૢ࡞ମݧ͕ࣦΘΕΔ • λϒͷҐஔ • ʮΔʯΛͲ͜ʹஔ͔͘ʁ UI ΧελϚΠζ͕େม • ڞ௨σβΠϯʹ߹ΘͤΔͨΊʹඪ४ίϯϙʔωϯτΛΧελ
ϚΠζ
Dropbox ͷྫ
ը໘෦ͷΧελϚΠζ͕େม
Web ͷΧελϜ෦࡞ UI ίϯϙʔωϯτ = HTML ཁૉ + CSS +
JS جຊతͳྲྀΕ 1. div ϘοΫεΛ༻ҙ 2. CSS Ͱஔɺ০ 3. JS ͰΠϯλϥΫγϣϯΛ͚ͭΔ
Web ͷΧελϜ෦࡞ • ը໘০༻ͷ؆қͳݴޠ͕༻ҙ͞Ε͍ͯΔ • ͲΜͳ DOM (form ܥΛআ͍ͯ)
ಉ͡Α͏ʹѻ͑Δ • ΠϯλϥΫγϣϯઃఆΠϕϯτΩϟονˠclass ͷมߋͱ୯ ७
ΞϓϦ(iOSͷ߹)ͷΧελϜ෦࡞ UI ίϯϙʔωϯτ = Swift ͷ Ϋϥε جຊతͳྲྀΕ 1. ݩͱͳΔΫϥεͷܧঝؔΛ֬ೝ
2. Swift ίʔυͰஔɺ০ 3. Swift ίʔυͰΠϕϯτͷॲཧ
ΞϓϦ(iOSͷ߹)ͷΧελϜ෦࡞ • جຊతʹͯ͢ͷઃఆΛ Swift ʢ൚༻ݴޠʣͰߦ͏ඞཁ • ܧঝؔʹΑͬͯίϯϙʔωϯτ͝ͱʹઃఆՄೳͳ০߲ ͕ҟͳΔ • ίϯϙʔωϯτ͝ͱʹ࣮͠ͳ͚ΕͳΒͳ͍ϝιου͕
ࡉ͔ܾ͘ΊΒΕ͍ͯΔ • جຊతʹॻ͔ͳ͚ΕͳΒͳ͍ྔ͕ଟ͍
͜ΜͳཁૉΛͭ͘Ζ͏ͱͨ͠ͱ͖ • ઢϘʔμ • ؙ֯
Web border: 2px dotted solid; corner-radius: 4px;
ΞϓϦ(!) var line = UIBezierPath() lineColor.setStroke() line.lineWidth = lineWidth line.flatness
= pathFlatness line.setLineDash(linePattern, count: linePattern.count, phase: 0) line.lineCapStyle = correctedLineCap if drawTopLeftCorner { line.moveToPoint(borderTopLeftCornerEntry) line.addArcWithCenter(borderTopLeftCornerCenter, radius: borderTopLeftRadius, startAngle: CGFloat(M_PI), endAngle: CGFloat(1.5*M_PI), clockwise: true) } if drawTop { if !drawTopLeftCorner { line.moveToPoint(borderTopLeftCornerExit) } line.addLineToPoint(borderTopRightCornerEntry) } if drawTopRightCorner { if !drawTop { line.moveToPoint(borderTopRightCornerEntry) } line.addArcWithCenter(borderTopRightCornerCenter, radius: borderTopRightRadius, startAngle: CGFloat(1.5*M_PI), endAngle: CGFloat(2.0*M_PI), clockwise: true) } if drawTrailing { if !drawTopRightCorner { line.moveToPoint(borderTopRightCornerExit) } line.addLineToPoint(borderBottomRightCornerEntry) } if drawBottomRightCorner { if !drawTrailing { line.moveToPoint(borderBottomRightCornerEntry) } line.addArcWithCenter(borderBottomRightCornerCenter, radius: borderBottomRightRadius, startAngle: CGFloat(0.0), endAngle: CGFloat(0.5*M_PI), clockwise: true) } if drawBottom { if !drawBottomRightCorner { line.moveToPoint(borderBottomRightCornerExit) } line.addLineToPoint(borderBottomLeftCornerEntry) } if drawBottomLeftCorner { if !drawBottom { line.moveToPoint(borderBottomLeftCornerEntry) } line.addArcWithCenter(borderBottomLeftCornerCenter, radius: borderBottomLeftRadius, startAngle: CGFloat(0.5*M_PI), endAngle: CGFloat(1.0*M_PI), clockwise: true) } if drawLeading { if !drawBottomLeftCorner { line.moveToPoint(borderBottomLeftCornerExit) } line.addLineToPoint(borderTopLeftCornerEntry) } line.stroke() self.layoutIfNeeded()
ΞϓϦͰΧελϜ UI Λ࡞Δͱ͖ • جຊతʹͳΔ͘࡞Βͳ͍ • Ұ࡞ͬͨΒΞϓϦશମͰ͍·ΘͤΔઃܭʹ͓ͯ͘͠ • ݩͱͳΔ UI
෦ͷੑ࣭Λԡ͑͞Δ • جఈΫϥεͳʹ͔ʁ • ͲΜͳϓϩύςΟ͕͋Δ͔ʁ
ϕʔλ͕͍͠(iOS)
Web • εςʔδϯάαʔόΛݐͯͯͦ͜ʹσϓϩΠ • ςελࣗͷϚγϯͷϒϥβ͔Βࣗ༝ʹʹΞΫηε • ։ൃ͕ਐΜͩΒ͖ͳλΠϛϯάͰ࠷৽൛ʹߋ৽Ͱ͖Δ
iOS • ςελʹసૹɺ͘͠ AppleStore ʹҰఏग़ (TestFlight) • ςελ UUID ʗϝʔϧΞυϨεΛ։ൃऀʹఏग़͢Δඞ
ཁ • ߋ৽ͷͨͼʹసૹ͠ͳ͓͠ʗApple ʹਃ νʔϜͰͷυοάϑʔσΟϯά͕ਏ͍
Deploy gate Λͬͯղফ • UUID ͷཧɺΞϓϦΠϝʔδͷཧ Λͬͯ͘ΕΔαʔϏε • ٬ઌʹ͢Δͱ͖ϥΠηϯε ҙ
Alternative • Fabric
େมͩͬͨ…… !
ͦΕͰΞϓϦͷྑ͞Λͬͨ • ͘͘͞͞ಈ͘ • ʮ͖ͬͪΓʯͯ͠Δײ͡ʢॏཁʣ • Ϣʔβମݧͷͯ͢Λ੍ޚͰ͖Δ
Ұࣗͷ Web ΞϓϦΛωΠςΟϒԽͯ͠ΈΑ͏ ! αΫαΫײମݧͯ͠ΈΔՁ͕͋Δ
More Decks by manemone
See All by manemone
最近読んだ海外記事とその見つけかた / my-recent-impressed-articles-and-how-to-find-them
manemone
0
69
Other Decks in Technology
See All in Technology
Ignite 2026 Security
babaneko
0
110
全てを疑え!非自明な挙動と異常系から考える堅牢なカスタムコントローラ開発入門(CNDW2026)
lycorptech_jp
PRO
0
120
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
120
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.4k
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
5
1.9k
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
110
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
4
920
AIが学べる子供の夏休みの自由研究教材を作ったが空振りだった話
yoshimura_datam
0
110
フルTypeScript × AI駆動開発で開発量が数倍に (JSConf JP 2026 スポンサーLT:NCDC株式会社)
keitaibaraki
0
530
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
18k
Go でトランザクション、どう書いてますか?
knwoop
2
640
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
WENDY [Excerpt]
tessaabrams
15
41k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
370
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Thoughts on Productivity
jonyablonski
76
5.5k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
We Are The Robots
honzajavorek
0
470
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Skip the Path - Find Your Career Trail
mkilby
1
300
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290