Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Syntax - Why so CareMad?

1,029 views

Published on

Syntax tends to get people unusually upset in the programming world. Heck, virtually any introductory talk on Erlang (Haskell, Clojure, whatever) invariably contains a self-deprecatory quote about the syntax. The thing people forget is that this isn't new. Syntax has been upsetting hominids since the first australopithecus said "Urghk" instead of "Oook" - getting thumped for its pains - and has continued to the present day (Look up "French is better than" on The Googles)

In this talk, I will explore the similarities between spoken and programming languages, with particular emphasis on the process of learning them, as well as the almost reflexive hatred of this process in most cultures. You'll learn to appreciate the role of syntax in languages, how it can help - or hinder! - your understanding of the semantics, and most importantly, how to appreciate syntax as an element of the language that is valuable in its own right.

Published in: Technology, Education
  • Be the first to comment

Syntax - Why so CareMad?

  1. 1. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? Syntax Matters Mahesh Paolini-Subramanya (@dieswaytoofast) V.P. R&D, Ubiquiti Networks
  2. 2. Syntax – Why so Caremad? Syntax Doesn’t Matter V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  3. 3. Syntax – Why so Caremad? Syntax Doesn’t Matter V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Except when it does
  4. 4. Syntax – Why so Caremad? Syntax Doesn’t Matter V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Except when it does But that isn’t the point
  5. 5. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? (huli)
  6. 6. lemon • (huli)
  7. 7. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? (huli)
  8. 8. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? vs (huli vs huli)
  9. 9. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? vs (huli vs huli)
  10. 10. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? (khara)
  11. 11. chili •( )
  12. 12. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? (sankocha)
  13. 13. Syntax – Why so Caremad? Monad V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  14. 14. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? GOTO
  15. 15. Syntax – Why so Caremad? It’s the Language stupid! V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  16. 16. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? Classifications
  17. 17. Syntax – Why so Caremad? Chomsky-Schützenberger V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  18. 18. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? Structures
  19. 19. Syntax – Why so Caremad? Multilingual People V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  20. 20. Syntax – Why so Caremad? Unscientific Studies Rock! V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  21. 21. Syntax – Why so Caremad? Unscientific Studies Rock! • 60% correlation between polyglots V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Source: Wholly unscientific research by me.
  22. 22. Syntax – Why so Caremad? Unscientific Studies Rock! • 60% correlation between polyglots • 80% correlation between monolinguals V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Source: Wholly unscientific research by me.
  23. 23. Syntax – Why so Caremad? Language Differences V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  24. 24. Syntax – Why so Caremad? vs andare V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  25. 25. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? http://langexplr.blogspot.co.uk/2011/03/quick-look-at-apl.html
  26. 26. Syntax – Why so Caremad? aller vs andare V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  27. 27. Syntax – Why so Caremad? If i Mod 2 = 0 Then MsgBox(“Even”) Else MsgBox(“Odd”) End If V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  28. 28. Syntax – Why so Caremad? =IF(MOD(A1,2)=0,1,2) V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  29. 29. Syntax – Why so Caremad? {for i in l when i % 2 = 0 -> i} V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  30. 30. Syntax – Why so Caremad? [I || I <- L, (I rem 2) == 0]. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  31. 31. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? Error Correction
  32. 32. Syntax – Why so Caremad? It deson’t mttaer in waht oredr the ltteers in a wrod aepapr, the olny ipromatnt tihng is taht the frist and lsat ltteer are in the rghit pcale. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved From http://www.livescience.com/18392-reading-jumbled-words.html
  33. 33. V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Syntax – Why so Caremad? Hello Compiler!
  34. 34. Syntax – Why so Caremad? Errors lead to Evolution V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  35. 35. Syntax – Why so Caremad? All Languages Evolve V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  36. 36. Syntax – Why so Caremad? Syntax Matters V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  37. 37. Syntax – Why so Caremad? Syntax Doesn’t Matter V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  38. 38. Syntax – Why so Caremad? It’s a Language stupid! V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  39. 39. Syntax – Why so Caremad? Two parties to every conversation V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  40. 40. Syntax – Why so Caremad? Right tool for the job! V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  41. 41. Syntax – Why so Caremad? What is the Job? V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  42. 42. Syntax – Why so Caremad? Syntax • Who are you talking to? V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  43. 43. Syntax – Why so Caremad? Syntax • Who are you talking to? • How necessary is it? V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  44. 44. Syntax – Why so Caremad? Syntax • Who are you talking to? • How necessary is it? • How quickly do you need it? V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  45. 45. Syntax – Why so Caremad? Syntax Doesn’t Matter This is SO not the point V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  46. 46. Syntax – Why so Caremad? Syntax Isn’t RIGHT V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  47. 47. Syntax – Why so Caremad? Syntax Isn’t WRONG V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  48. 48. Syntax – Why so Caremad? Syntax Just IS V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved
  49. 49. Syntax – Why so Caremad? Syntax Just Is V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved Mahesh Paolini-Subramanya (@dieswaytoofast) V.P. R&D, Ubiquiti Networks

×