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.2k
Navigation in a hybrid app
hotchemi
3
1.4k
PermissionsDispatcher × Kotlin
hotchemi
0
3.4k
kotlin compiler plugin
hotchemi
1
820
Rx and Preferences
hotchemi
2
180
Introducing PermissionsDispatcher
hotchemi
1
190
Other Decks in Programming
See All in Programming
symfony/aiとlaravel/boost
77web
0
130
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
150
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
140
AI時代の仕事技芸論〜ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ(スクフェス仙台 2026バージョン)
kuranuki
0
650
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
210
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
0
280
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
350
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
260
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
860
ランチタイムLT会3周年!ランチタイムLT会を3年間続けられたお話
y0hgi
1
140
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
190
Go言語とトイモデルで学ぶTransformerの気持ち / fukuokago23-transformer
monochromegane
0
100
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
980
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
370
Documentation Writing (for coders)
carmenintech
77
5.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.2k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
190
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Navigating Team Friction
lara
192
16k
Designing Powerful Visuals for Engaging Learning
tmiket
1
450
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
420
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.