Back to 2024 AgendaDon't Cross The Streams: An introduction to streaming data in Node.JS
🕓 2:45 PM - 3:05 PM📍 Room 5 - Black Swan (Lv 2)I hear you ask: "Why do I NEED to stream data? Why can't I just load all of it into a buffer and view it all at once - or better yet, convert it to a string so I can actually understand what this data looks like?"
Actually, no one has ever asked that. No one cares about the Node Web Stream API as much as I do. In fact, most JavaScript developers find node streams confusing and scary.
For example, look at this:
```
let data = '';
fs.createReadStream('filepath.txt').on('data', (c) => {
data = data + c
})
```
See? Best case scenario, your eyes have already glazed over. At worst, you feel vaguely disgusted, there's an anxious feeling in your stomach, and you're wondering if it's too late to change careers.
But, this talk will explain why you don't have to feel that way! Streams are extremely useful, and once you understand what they are for and why to use them, they get a lot less scary.
We can do it together! I believe in you!

Alice McCullagh