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
51
1
Share
CW 35: Node.JS - Guilherme Quental
hackthursday
August 30, 2012
More Decks by hackthursday
See All by hackthursday
CW 36: Joomla! for dummies - Jerônimo Medina Madruga
hackthursday
1
63
CW 34: Bus1.me - Rafael Silva
hackthursday
2
57
CW 33: Pathfinding - Vinicius Maciel
hackthursday
1
38
CW 31: Ruby - Filipe Giusti
hackthursday
1
45
CW 26: Computação Gráfica - Lucas Texeira
hackthursday
1
56
CW 25: Object Calisthenics - Vinícius Krolow
hackthursday
1
110
Other Decks in Programming
See All in Programming
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.9k
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
910
Getting more out of Maven
mlvandijk
0
110
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
490
iOS機能開発のAI環境と起きた変化
ryunakayama
0
180
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
210
感情を設計する
ichimichi
5
1.4k
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
500
t *testing.T は どこからやってくるの?
otakakot
0
190
事業会社でのセキュリティ長期インターンについて
masachikaura
0
250
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
2.9k
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
20
8.6k
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
Optimising Largest Contentful Paint
csswizardry
37
3.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Darren the Foodie - Storyboard
khoart
PRO
3
3.2k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Rails Girls Zürich Keynote
gr2m
96
14k
Ruling the World: When Life Gets Gamed
codingconduct
0
200
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
360
It's Worth the Effort
3n
188
29k
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