why code in node js often get rejected by soundcloud
play

Why code in Node . js often get rejected by SoundCloud Phil Calado - - PowerPoint PPT Presentation

Why code in Node . js often get rejected by SoundCloud Phil Calado - SoundCloud @pcalcado http :// philcalcado . com Tuesday, October 1, 13 2011: Phil zieht nach Berlin Tuesday, October 1, 13 Tuesday, October 1, 13 > 11 hours of audio


  1. Why code in Node . js often get rejected by SoundCloud Phil Calçado - SoundCloud @pcalcado http :// philcalcado . com Tuesday, October 1, 13

  2. 2011: Phil zieht nach Berlin Tuesday, October 1, 13

  3. Tuesday, October 1, 13

  4. > 11 hours of audio uploaded every minute ~ 200 million users / month Tuesday, October 1, 13

  5. Tuesday, October 1, 13

  6. hiring @ SoundCloud http://bit.ly/15DToNK Tuesday, October 1, 13

  7. Phone Code Review Interviews O fg er Tuesday, October 1, 13

  8. Phone Code Review Interviews O fg er Tuesday, October 1, 13

  9. challenge until late 2012 Tuesday, October 1, 13

  10. you can choose any language . % of submissions ~2011-2012 40 30 20 10 0 Ruby Java JavaScript (Node.js) C Clojure Scala Tuesday, October 1, 13

  11. you can choose any language . rejected before interview invited for inverview 40 30 20 10 0 Ruby Java JavaScript (Node.js) C Clojure Scala Tuesday, October 1, 13

  12. new challenge Tuesday, October 1, 13

  13. you can choose any language . % of submissions on the past ~1 year 30 22.5 15 7.5 0 Ruby Java JavaScript (Node.js) Go Clojure Scala Tuesday, October 1, 13

  14. you can choose any language . % of submissions on the past ~1 year 30 22.5 15 7.5 0 Ruby Java JavaScript (Node.js) Go Clojure Scala Tuesday, October 1, 13

  15. you can choose any language . rejected before interview invited for inverview 30 22.5 15 7.5 0 Ruby Java JavaScript (Node.js) Go Clojure Scala Tuesday, October 1, 13

  16. you can choose any language . rejected before interview invited for inverview WTF? 30 22.5 15 7.5 0 Ruby Java JavaScript (Node.js) Go Clojure Scala Tuesday, October 1, 13

  17. don’t get me wrong we are all hipsters http://bit.ly/J1aLNn Tuesday, October 1, 13

  18. Tuesday, October 1, 13

  19. Not OO, not Functional... Just (bad) Procedural code. Tuesday, October 1, 13

  20. http://bit.ly/JiECRp Tuesday, October 1, 13

  21. we don’t need this complicated stu fg . this is not java, you know . Tuesday, October 1, 13

  22. so how do we structure our app? http://bit.ly/JiFSnq Tuesday, October 1, 13

  23. what to use? ( decent ) procedures? Tuesday, October 1, 13

  24. Tuesday, October 1, 13

  25. Tuesday, October 1, 13

  26. what to use? objects? Tuesday, October 1, 13

  27. Tuesday, October 1, 13

  28. what to use? ... functions? Tuesday, October 1, 13

  29. http://bit.ly/JFbZt8 Tuesday, October 1, 13

  30. “SICP and some of the Sussman & Steele " Lambda the ..." papers made a big impression on me years before, although I did not understand their full meaning then . Remember, I was recruited to " do Scheme " [...] My interest in languages such as Self informed a subversive agenda [...]. Likewise with first - class functions, which were inspired by Scheme [...] ” http://bit.ly/JFbZt8 Tuesday, October 1, 13

  31. http://bit.ly/JiEQYM Tuesday, October 1, 13

  32. Tuesday, October 1, 13

  33. Tuesday, October 1, 13

  34. Tuesday, October 1, 13

  35. Tuesday, October 1, 13

  36. Tuesday, October 1, 13

  37. going old school http://bit.ly/JiF7ef Tuesday, October 1, 13

  38. e . g . passing functions around Tuesday, October 1, 13

  39. we see a lot of this Tuesday, October 1, 13

  40. 1st, we extract what is common Tuesday, October 1, 13

  41. then we refactor our functions Tuesday, October 1, 13

  42. and we send them as arguments Tuesday, October 1, 13

  43. e . g . closures not only for objects Tuesday, October 1, 13

  44. we see a lot of this Tuesday, October 1, 13

  45. we can keep writeComment as it is Tuesday, October 1, 13

  46. and we add a function with two closures Tuesday, October 1, 13

  47. and we add a function with two closures immutable Tuesday, October 1, 13

  48. and we add a function with two closures immutable mutable Tuesday, October 1, 13

  49. now we don’t need to pass in the kitchen sink Tuesday, October 1, 13

  50. e . g . functions all the way down Tuesday, October 1, 13

  51. we see a lot of this Tuesday, October 1, 13

  52. first we extract common protocol Tuesday, October 1, 13

  53. then we clean up our functions Tuesday, October 1, 13

  54. then we use them . Tuesday, October 1, 13

  55. then we use them . redundant? Tuesday, October 1, 13

  56. http://bit.ly/JiETnd Tuesday, October 1, 13

  57. our “framework” : 1 - Extract protocol in “combinators” 2 - Keep mutable state in closures Tuesday, October 1, 13

  58. no scary monads required Tuesday, October 1, 13

  59. there is plenty to learn from Tuesday, October 1, 13

  60. in the javascript community too Tuesday, October 1, 13

  61. phil calçado http://philcalcado.com @pcalcado www.soundcloud.com Tuesday, October 1, 13

  62. How to Design Programs - http://bit.ly/K0BfrL Structure and Interpretation of Computer Programs - http://bit.ly/K0BjYm The Art of the Metaobject Protocol http://amzn.to/K0BqU1 Purely Functional Data Structures http://amzn.to/JFn4KG Let Over Lambda - http://amzn.to/IMMkNO An Introduction to Lambda Calculi for Computer Scientists - http://amzn.to/IX8d1B All drawings are available as t-shirts from the awesome Diesel Sweeties - http://dieselsweeties.com/ Tuesday, October 1, 13

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend