Emmanuel Gaillot – The Server That Goes Ping
Node.js is getting increasingly popular among developers who have to code HTTP servers. And because its underlying single-threaded model makes programming with Node.js quite an unusual experience, developers have one more excuse not to test-drive their code.
In this session, we’ll do some live coding and demonstrate a possible way to code from A to Z (using mocha and expresso to test-drive our code) an HTTP server that requests informations from a third-party Minecraft server – in the hope to inspire the audience to follow the same path, or to find an even better one.
Who is it for ?
This session is meant for Paul (the Programmer) and maybe for Tamara (the Technical Lead) as well.
t0 ~ t0 + 50 : start live coding
t0 + 50 ~ t0 + 60 : Wrap-up
What will you learn?
- How to test-drive the coding of an HTTP server in Node.js
- How to test-drive the coding of an HTTP client in Node.js
Notions in programming, especially in Node.js
Some understanding of traditional (i.e., synchronous) TDD practice
After the session, attendees might want to try to code the same exercise on their own. They might also want to explore other test frameworks in Node.js.
Do attendees need a laptop?