Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
rhyme
Search
Yosuke Furukawa
PRO
March 03, 2017
Programming
1
7k
rhyme
2017/3/3 に TIS で発表したLTバトルの資料です。
Yosuke Furukawa
PRO
March 03, 2017
Tweet
Share
More Decks by Yosuke Furukawa
See All by Yosuke Furukawa
Welcome JSConf.jp 2024
yosuke_furukawa
PRO
0
140
tc39 x jsconf.jp Panel Discussion 2024
yosuke_furukawa
PRO
0
150
Removing Corepack
yosuke_furukawa
PRO
9
1.3k
JavaScript Runtime とはなにか
yosuke_furukawa
PRO
15
2.5k
Strip Types と Storage
yosuke_furukawa
PRO
4
340
Module Harmony について
yosuke_furukawa
PRO
3
1.5k
LTのやり方
yosuke_furukawa
PRO
16
2.2k
AppRouter Panel Talk
yosuke_furukawa
PRO
3
700
Node.js v22 で変わること
yosuke_furukawa
PRO
13
5.3k
Other Decks in Programming
See All in Programming
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
650
みんなでプロポーザルを書いてみた
yuriko1211
0
280
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
720
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
120
Macとオーディオ再生 2024/11/02
yusukeito
0
390
RubyLSPのマルチバイト文字対応
notfounds
0
120
DevTools extensions で 独自の DevTool を開発する | FlutterKaigi 2024
kokiyoshida
0
120
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
490
CSC509 Lecture 12
javiergs
PRO
0
160
React への依存を最小にするフロントエンド設計
takonda
18
4.6k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.3k
as(型アサーション)を書く前にできること
marokanatani
10
2.8k
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
430
Making Projects Easy
brettharned
115
5.9k
Docker and Python
trallard
40
3.1k
Happy Clients
brianwarren
98
6.7k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Transcript
rhymè !!!!! 2017, March 3rd @ LT Freestyle Battle with
TIS
@yosuke_furukawa Node.jsϢʔβʔάϧʔϓද
@yosuke_furukawa Node.jsϢʔβʔάϧʔϓද Ϩϖθϯ/PEFKT
LT Freestyle Battle ͱฉ͍ͯ ͦΕຊؾͰฉ͍ͯ·͢ʁ ʹϑϦʔελΠϧͷ͠ ͤͨ͞Β͘ͳΓ·͢Αɻ
Զ͕ͲΕ͚ͩϑϦʔελΠϧ௨ ͔͍ͬͯ͏ ͱΓ͋͑ͣɺϑϦʔελΠϧ μϯδϣϯຖճ͔ܽͣ͞ݟ ͯΔɺ6.#ઓۃഃͷ ότϧಈըνΣοΫࡁΈ
͖ͳϑϦʔελΠϥʔ
Ͱͦ͏͡Όͳ͔ͬͨ ϑΝο ࠓճͷςʔϚʮࢲͷ͖ͳ999ͷίί͕͖ʯɻ ٕज़Λʹண͚͍͚ͨͲԿΛઐʹͨ͠Β͍͍͔Θ͔Βͳ͍ͱΉਓʹͱͬͯ ɺ֤ࣾΤʔε͕ޠΔʮ͖ͷϙΠϯτʯ͔Β͖ͬͱকདྷͷΤʔεʹͳΔͨΊ ͷώϯτ͕ಘΒΕΔͱࢥ͍·͢ʂ ࠓճͷήετɺ)PU1FQQFS4VVNPͳͲɺଟͷ8FCαʔϏεΛٕज़Ͱ ࢧ͑ΔϦΫϧʔτςΫϊϩδʔζ༷Ͱ͢ʂ Φʔϓϯ͔ͨ͠ΓͷϦΫφϏʹવͱഭΔΞΫηεΛࡋ͘ςΫχοΫ͕ฉ͚
Δ͔ʂʁ
શͳΔडϛε ԶࠓϑϦʔελΠϧͷ ͔͠͠ͳ͍ͭΓͩͬͨ
ؾΛऔΓͯ͠
rhymè
ࠓ͕͍͑ͨ͜ͱ ʮӆ͍ͬͯ͠ΜͰʯ
ӆͷ͠͞Λ͑ΔͨΊʹӆ ΛࣗಈͰݕग़͢Δ܅Λ ϑϧεΫϥονͰ࡞ͬͨ https://jrapper-demo.now.sh/ https://npmjs.org/jrapper
DEMO
Slack Bot ʹͯ͠Έͨ
Slack Bot ʹͯ͠Έͨ
͏Δ͍͞
ΞϧΰϦζϜઆ໌
ΞϧΰϦζϜ • ܗଶૉղੳͯ͠ɺࢺྨ • ͱΓ໊͋͑ͣࢺ͚ͩݟ͚ͭΔ • ໊ࢺΛϑϨʔζʹ͢Δʢલํͷम০͞Ε͍ͯΔݴ༿ Λऔ͖ͬͯͯܨ͛Δʣ • ϑϨʔζͷԻ͚ͩநग़͢Δ
• Իͷ࿈ͳΓํͰείΞ͚͢Δ
ΞϧΰϦζϜ • ܗଶૉղੳͯ͠ɺࢺྨ • ͱΓ໊͋͑ͣࢺ͚ͩݟ͚ͭΔ • ໊ࢺΛϑϨʔζʹ͢Δʢલํͷम০͞Ε͍ͯΔݴ༿ Λऔ͖ͬͯͯܨ͛Δʣ • ϑϨʔζͷԻ͚ͩநग़͢Δ
• Իͷ࿈ͳΓํͰείΞ͚͢Δ ͜ͷTDPSFΛϰΝΠϒε ͱݺͿ
vibes > ᮢ Ͱ ӆΛ౿ΜͰΔͱ͢Δɻ
͠͞ ͦͷ1 ϑϨʔζॲཧ
ϑϨʔζͲ͜ͰΕΔͷ ผ໊ʮϞʔχϯά່ɻʯ ʮήεͷۃΈԵঁɻʯͱݴ͏
Α͘ݟͨΒϑϨʔζॲཧ͚ͩ Ͱͨ͘͞Μจ͋Δ ʢࢲNLPͷઐͰͳ͍ʣ
ࠓదɿ ࠷໊ࢺ۟ => ࠓͱ͍͍ͯఱؾ ෦໊ࢺ۟ => ͱ͍͍ͯఱؾ
͠͞ ͦͷ2 Իఆ
ԻͳΜͯ5छྨͰ͠ΐ
ԻͳΜͯ5छྨͰ͠ΐ ͦ͏ࢥ͍͕ͬͯͨ࣌ࢲ ʹ͋Γ·ͨ͠ɻ
ຊޠͷԻ5छྨͰͳ͍
͜͜Ͱੜ·ΕΔ a !== à ᘳʹಉ͡Ի͡Όͳ͍ ͚Ͳɺ͍ۙൃԻɻ શ͘ผͳԻͱҧͬͯɺ vibes্͕Δ
JavaScript ʹ Intl.Collator ͱ ͍͏ඪ४ศརϥΠϒϥϦ͕͋Δ const collator = new Intl.Collator('en',
{ sensitivity: 'base' }) var vibes = 0; if (c1 === c2) { // ಉ͡ԻͩͬͨΒ vibes +1 vibes += 1 } else if (collator.compare(c1, c2) === 0) { // a, à ͩͬͨΒvibes +0.5 vibes += 0.5 }
͠͞ ͦͷ3 ࣙॻ
ฐࣾmookjp͕ग़͖ͯͨ͠ ϥΠϜ
ฐࣾmookjp͕ग़͖ͯͨ͠ ϥΠϜ ఆٛਥ ʢಡΈํɿςΠΪΫϦϠɹʣ
ޠኮྗॏཁ
ӆ͍ͬͯ͠
ਓ͕ؒͦΕΛଈڵͰΔϑϦʔ ελΠϧ࠷ߴ
͋ɺͦ͏ͦ͏େࣄͳ͜ͱ
ӆ౿ΈΞϧΰϦζϜશͯ powered by Node.js Ͱ͢!!! by Node.jsϢʔβʔάϧʔϓද
Thank you