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
My Daily Node
Search
@hotchemi
May 19, 2013
Programming
990
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
190
Other Decks in Programming
See All in Programming
AIエージェント時代のコードレビューを設計する
nogu66
5
2.4k
이 함수, 실패하면 어떻게 되나요? null부터 Rich Errors까지, Kotlin 에러 처리 15년
haeti2
0
120
ALB ログから Trace を気合で繋げる技術
fohte
7
860
Press start. Python's next generation.
willingc
PRO
3
300
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
不幸な GC
chencmd
0
870
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
100
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
110
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
4
2.7k
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
660
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
260
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
140
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
310
Facilitating Awesome Meetings
lara
57
7.1k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
So, you think you're a good person
axbom
PRO
2
2.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
Evolving SEO for Evolving Search Engines
ryanjones
0
280
Claude Code のすすめ
schroneko
67
230k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Into the Great Unknown - MozCon
thekraken
41
2.7k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Chasing Engaging Ingredients in Design
codingconduct
0
300
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
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.