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
CW 35: Node.JS - Guilherme Quental
Search
hackthursday
August 30, 2012
Programming
1
48
CW 35: Node.JS - Guilherme Quental
hackthursday
August 30, 2012
Tweet
Share
More Decks by hackthursday
See All by hackthursday
CW 36: Joomla! for dummies - Jerônimo Medina Madruga
hackthursday
1
58
CW 34: Bus1.me - Rafael Silva
hackthursday
2
56
CW 33: Pathfinding - Vinicius Maciel
hackthursday
1
36
CW 31: Ruby - Filipe Giusti
hackthursday
1
42
CW 26: Computação Gráfica - Lucas Texeira
hackthursday
1
51
CW 25: Object Calisthenics - Vinícius Krolow
hackthursday
1
100
Other Decks in Programming
See All in Programming
スケールする組織の実現に向けた インナーソース育成術 - ISGT2025
teamlab
PRO
1
130
Namespace and Its Future
tagomoris
6
700
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
550
2025 年のコーディングエージェントの現在地とエンジニアの仕事の変化について
azukiazusa1
24
12k
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
550
私の後悔をAWS DMSで解決した話
hiramax
4
210
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
2
500
旅行プランAIエージェント開発の裏側
ippo012
2
920
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
260
Improving my own Ruby thereafter
sisshiki1969
1
160
The Past, Present, and Future of Enterprise Java with ASF in the Middle
ivargrimstad
0
150
もうちょっといいRubyプロファイラを作りたい (2025)
osyoyu
1
450
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.2k
Code Reviewing Like a Champion
maltzj
525
40k
Gamification - CAS2011
davidbonilla
81
5.4k
Bash Introduction
62gerente
615
210k
The Cult of Friendly URLs
andyhume
79
6.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Facilitating Awesome Meetings
lara
55
6.5k
Fireside Chat
paigeccino
39
3.6k
4 Signs Your Business is Dying
shpigford
184
22k
Documentation Writing (for coders)
carmenintech
74
5k
Done Done
chrislema
185
16k
Transcript
NodeJS Guilherme Quental github.com/gquental fb.com/gquental
Alguém conhece?!
Conhecido como JavaScript no lado do servidor
X
Node é muito mais que isso
None
Ryan Dahl
O que define Node?
I/O não bloqueante
JavaScript API V8 libuv libeio libev IOCP
• select • poll • epoll • kqueue • IOCP
Tipos
Agora a parte buena!
Na realidade ele mesmo é um conjunto de módulos Node
é totalmente modular
• File System • TCP • UDP • HTTP •
Buffer • Events • Stream • Process Existem diversos módulos
Pera ai!!! Antes disso quero ver aquele esquema de I/O
não bloqueante!!!
Partiu então! Entendido?
Módulos em Node C e JavaScript
C?! WTF?!
Primeiro vamos entender sistema de módulos
None
Mas e os módulos em C?
node-gyp
Ok... e módulos de terceiros?
None
E se eu quiser criar meu módulo?
Exemplos! E agora uma parte melhor ainda!
Events
HTTP
Socket
Buffer
E criemos Gists! Peçam exemplos!
Perguntas?!
[email protected]
github.com/gquental fb.com/gquental Contato