Node.jsエンジニアErlangに入門するの巻

283 views

Published on

2016/06/23 dots.主催イベント「社会人×学生」技術バトルNight!での、市原の講演資料になります

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
283
On SlideShare
0
From Embeds
0
Number of Embeds
93
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Node.jsエンジニアErlangに入門するの巻

  1. 1. •  •  •  •  •  • 
  2. 2. •  •  •  •  •  • 
  3. 3. •  •  •  •  •  • 
  4. 4. •  •  • 
  5. 5. http.get('http://www.google.com/index.html', (res) => { console.log(`Got response: ${res.statusCode}`); // consume response body res.resume(); }).on('error', (e) => { console.log(`Got error: ${e.message}`); }); app.use(function(err, req, res, next) { console.error(err.stack); res.status(500).send('Something broke!'); }); function myFunc() { throw new Error(“Error”); } try { myFunc(); } catch(err) { // handle err }
  6. 6. • 
  7. 7. • 
  8. 8. •  •  • 
  9. 9. • 
  10. 10. •  •  •  •  •  • 
  11. 11. •  • 
  12. 12. •  • 
  13. 13.    
  14. 14. • 
  15. 15. •  • 
  16. 16. •  •  • 
  17. 17. •  •  • 
  18. 18. •  •  • 
  19. 19. •  •  • 
  20. 20. •  •  • 
  21. 21. •  •  • 
  22. 22. •  •  •  • 
  23. 23. •  • 
  24. 24.    
  25. 25. •  •  •  •  •  • 
  26. 26. •  •  • 
  27. 27. •  • 

×