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
なぜModdableで作るのか(あるWeb屋さんの場合)
Search
Shinya Ishikawa
December 11, 2019
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なぜModdableで作るのか(あるWeb屋さんの場合)
TC53セミナーの発表資料です。
Shinya Ishikawa
December 11, 2019
Transcript
26 slides
なぜModdableで 作るのか (あるWeb屋さんの場合) 石川 真也 Why I make with Moddable -
from a web developer’s perspective
自己紹介 石川 真也( @meganetaaan) 組み込み開発を始めたい Web開発者 SIerでWebフロントエンド開発 →ModdableとM5Stackを使って趣味Maker活動 →ロボット屋さんでUI/UX開発 Self introduction
Moddableはいいぞ! Moddable is AWESOME! お伝えしたいこと
Moddableは Web開発者にいいぞ! Moddable is AWESOME for web developers! お伝えしたいこと IoTプロダクトを作りたいWeb企業
スマート機器を作りたいメーカーに朗報!
なぜModdableで作るのか? 1) UI開発を強力にサポート 2) 最新のECMAScriptに対応 Web開発者が簡単に習得できて、効率よく開発できるから Why I make with
moddable
1) UI開発を強力にサポート 1)Strong support for UI development
公式UIフレームワークpiu • モダンなUI構築のための機能が全部入り • 高速・省メモリなメディア処理機能 ☑文字 ☑画像 ☑音声 ☑アニメーション/トランジション •
UI開発の生産性を高める設計 ☑レスポンシブデザイン ☑コンポーネント指向によるUIプログラミング https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md Piu, the official UI framework of Moddable
デモ1: bongo cat https://github.com/meganetaaan/moddable-examples
None
デモ2: Twitter クライアント https://github.com/meganetaaan/moddable-examples
None
メディア処理…☑文字 • ビットマップフォントを表示できる ◦ 日本語フォントに対応 ◦ 使用する文字のみフォント化して容量節約 https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md Media processing
… ☑Text
メディア処理…☑画像 • 様々な形式の画像を統一されたI/Fで表示できる ◦ bmp, jpeg, png, gif(アニメーション含) ◦ アルファチャンネル付き画像
https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md Media processing … ☑Image
設計…☑レスポンシブデザイン • 複数のディスプレイサイズに対応したUIを作れる https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md 240x320 320x480 Design … ☑Responsive UI
設計…☑コンポーネント指向 • UIを再利用可能なコンポーネントとして設計する手法 • コンポーネントを階層的に並べてUIを組み立てる https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md Application Header Body Icon
Title PageCount Tweet User Content Impression Design … ☑Component oriented
☑他にも色々 • アニメーション/トランジション • タッチ/ドラッグ操作 • 画面のスクロール • ローカリゼーション(多言語対応) https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/piu/piu.md
☑So many other advantages
WebのUIを開発する感覚で 組み込みの画面ができる ポイント 20 days training 10 days implementation \
AW YEAH… / Can develop embedded screens feeling like Web UI
2) 最新のECMAScriptに対応 2)Comformance for latest ECMAScript
最新のECMAScriptに対応 • ECMAScript2018 に99%準拠 ◦ RegExp ◦ Promise、async/await ◦ クラスとprivateフィールド
◦ BigInt • 標準→実装のみならず、実装→標準としてproposalも ◦ TC53 https://github.com/wingsuitist/ecmascript-logo Conformance for the latest ECMAScripot
「最新の」ECMAScriptで書く利点 • 広く使われている:技術者の調達容易性↑ ◦ Web開発者の87%がECMAScript2015以上での開発を経験 • 様々な開発支援ツールが使える:生産性↑ ◦ エディタ(VisualStudio Code)
◦ 型システム(TypeScript) ◦ Lint ツール/ フォーマッタ(ESLint/Prettier) ◦ パッケージ管理(npm) ※ ※https://2018.stateofjs.com/javascript-flavors/es6 Advantage of using the latest ECMAScripot
デモ3:開発のようす(Lチカ) Live coding of “LED ticker”
型システム • TypeScript ◦ JavaScriptに型システムを追加した代 替言語 ▪ ビルド時にJavaScriptに変換する ◦ プロパティ名や値の間違いに早く
気づける ◦ VisualStudio Code等のエディタと 組み合わせて型の補完が効く https://github.com/meganetaaan/moddable-boilerplate Type system
Lintツール/フォーマッタ • ESLint ◦ 文法チェックツール ◦ JavaScriptのベストプラクティス (よい書き方)を強制 • Prettier
◦ インデント等の自動修正 https://github.com/meganetaaan/moddable-boilerplate Linter / Formatter
パッケージ管理 • npm ◦ JavaScriptのパッケージ管 理システム ◦ 前述の各ツールのインス トールと実行を管理 ◦
簡単なタスクランナーも兼 ねる $npm run deploy:m5stack →TypeScriptの変換、ビルド、書き込みを一挙に行う 注意:Web向けのnpmライブラリは基本的に使用不可 • ブラウザAPIが使われている • メモリを潤沢に使える前提がある https://github.com/meganetaaan/moddable-boilerplate Package manager
標準に準拠している →Webエコシステムの 資産を活用できる ポイント Belong the Web standard -> Take
benefit of the Web ecosystem
まとめ:なぜModdableで作るのか? 1) UI開発を強力にサポート モダンな設計手法と強力なメディア処理でWeb UIのように画面を作り込める 2) 最新のECMAScriptに対応 標準に準拠しているからWebエコシステムの資産を活用できる 「実践Moddable」booth.pmにて頒布中! https://hokunan-shobo.booth.pm/items/1574940
Web開発者が簡単に習得できて、効率よく開発できるから Conclusion
More Decks by Shinya Ishikawa
See All by Shinya Ishikawa
Moddableで始めるJavaScript×IoT開発
meganetaaan
0
190
Other Decks in Programming
See All in Programming
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
150
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
260
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
340
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
1k
LLM 101
dalinaum
0
550
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
440
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
310
Getting Started with Vibe Coding
miccheng
0
250
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
240
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
GraphQLとの向き合い方2022年版
quramy
50
15k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Paper Plane
katiecoart
PRO
6
55k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Six Lessons from altMBA
skipperchong
29
4.6k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k