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
My Daily Node
Search
@hotchemi
May 19, 2013
Programming
1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
My Daily Node
LT at js-cafe vol7
@hotchemi
May 19, 2013
More Decks by @hotchemi
See All by @hotchemi
kompile-testing internal
hotchemi
0
290
The things we’ve learned from iOS×React Native hybrid development
hotchemi
2
5.5k
React Nativeを活用したアプリ開発体制/sapuri meetup
hotchemi
3
8.3k
Type-Safe i18n on RN
hotchemi
2
1.3k
Navigation in a hybrid app
hotchemi
3
1.4k
PermissionsDispatcher × Kotlin
hotchemi
0
3.4k
kotlin compiler plugin
hotchemi
1
830
Rx and Preferences
hotchemi
2
190
Introducing PermissionsDispatcher
hotchemi
1
200
Other Decks in Programming
See All in Programming
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
920
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
360
Family mrubyの進捗
kishima
1
110
自分的「カンファレンスの楽しみ方」
syumai
0
200
{ Android | Kotlin } Gradle Plugin in 2026
ryunen344
1
300
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
130
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
Intent as Code
shoppingjaws
6
770
ハーネス設計入門 〜プロンプト、コンテキストの次〜
kinopeee
55
37k
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
2
280
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
2
770
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
5.8k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Design in an AI World
tapps
1
310
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
500
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
A Modern Web Designer's Workflow
chriscoyier
699
190k
Making the Leap to Tech Lead
cromwellryan
135
10k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
890
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
930
Transcript
My Daily Node js-cafe vol7 શ෦JavaScriptͰॻ͜͏ @hotchemi
Shintaro Katafuchi ŋProgrammer at TIS ŋTwitter: @hotchemi ŋGitHub: hotchemi
օ͞ΜŊJavaScriptॻ͍ͯ·͔͢ʁ
େͷϓϩάϥϚͷΈ ŋňJavaScriptΛॻ͘ػձ͕ແ͍…ʼn ŋňࣄͰαʔόαΠυ͔Γͩ͠ʼn ŋňͲ͔͜ΒJavaScirptΛ࢝ΊͨΒྑ͍ͷ͔…ʼn ŋňWebαʔϏεΛҰਓͰ࡞Δͷͪΐͬͱ…ʼn
ͦ͜ͰNode.jsͰ͢Α ŋSingle thread, Sockei.IO, ඇಉظ, C10K… ŋNode.jsͷϋʔυϧ࣮ߴ͘ͳ͍ ŋJavaScriptʹ׳Ε͍ͨਓͦ͜NodeΛॻ͖͘ ※ࠓJavaScriptॳ৺ऀ͕ͩͬͨࣗŊNodeΛͬͯΛղܾͨ͠ࣄྫŊnpmϞδϡʔ ϧΛެ։ͯ͠ΈͨମݧΛ͓͠·͢Ň
My idea is…
1. ΫϥΠΞϯταΠυͷςετΛCI scroll-to simple scroll jquery plugin. ŋmocha+expect.js+travis-ci(phantomjs) ŋΫϥΠΞϯταΠυͷςετ͕CIͰ͖Δ https://github.com/hotchemi/scroll-to
None
My idea is…
2. αόΫϥ྆༻ϥΠϒϥϦΛ։ൃ private.js provides private accessor library. ŋmocha+expect.js ŋNodeͰλʔϛφϧܦ༝ͰTDD https://github.com/hotchemi/private.js
var klass = $pvt("_" /* prefix */, { // public
method access to public variable getPublicVariable: function() { return this.publicVariable; }, // public method access to private variable getPrivatevariable: function() { return _privateVariable; }, // privateϝϯόΛࢀর͍ͯ͠ΔprivateϝιουΛݺͼग़͢public method getPrivateMethodReferPrivateVariable: function() { return _getPrivateVariable(); }, // publicϝϯόΛࢀর͍ͯ͠ΔprivateϝιουΛݺͼग़͢public method getPrivateMethodReferPublicVariable: function() { // ͜ͷ߹ίϯςΩετΛࢦఆ͠ͳ͍ͱ͍͚ͳ͍… return _getPublicVariable.call(this); }, // privateϝϯόʹΞΫηε͢Δprivate method _getPrivateVariable: function() { return _privateVariable; }, // publicϝϯόʹΞΫηε͢Δprivate method _getPublicVariable: function() { return this.publicVariable; }, // public variable publicVariable: 1, // private variable _privateVariable: 2 }); Usage
My idea is…
3. APIϥούʔΛ։ൃ zaim.js Zaim API wrapper. ŋNodeͷAPIϥούʔແ͔ͬͨ→ň࡞Ζ͏ʂʼn ŋCoverallsΛͬͯΧόϨοδΛܭଌ https://github.com/hotchemi/zaim.js
npm install zaim NodeϞδϡʔϧ։ൃૂ͍ʂ
My idea is…
4. γΣϧΞϓϦNodeͰॻ͘ zaim-cli CLI based Zaim client. ŋrequire commander, colors.js,
zaim.js ŋDirty code...callback is difficult. https://github.com/hotchemi/zaim-cli
npm install -g zaim-cli
My idea is…
5. ωλهࣄ͢ΒNodeͰॻ͘ yutori-blog-bot twitter bot for @megascus. ŋΏͱΓ advent calendar
15 ŋRunnning on eXcale https://github.com/hotchemi/yutori-blog-bot
None
eXcale support Node.js
NodeΛͬͯྑ͔ͬͨࣄ ŋJavaScriptͷςετͷҙ͕ࣝߴ·Δ ŋඇಉظͷҙ͕ࣝߴ·Δ ŋCallbackࠈͷ͚ͩڧ͘ͳΕΔΑ ŋnpmϞδϡʔϧΛ؆୯ʹެ։Ͱ͖Δ ŋ͍ͭͷؒʹ͔JavaScriptΛ͖ʹͳͬͯΔ
Let’s Node!! (JWFNFQVMMSFRVFTU Fin.