syntax - why so caremad?

Post on 17-Dec-2014

538 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

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.

TRANSCRIPT

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax – Why so Caremad?

Syntax MattersMahesh Paolini-Subramanya (@dieswaytoofast)V.P. R&D, Ubiquiti Networks

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax – Why so Caremad?

Syntax Doesn’t Matter

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax – Why so Caremad?

Syntax Doesn’t Matter

Except when it does

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax – Why so Caremad?

Syntax Doesn’t Matter

Except when it doesBut that isn’t the point

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಹು�ಳಿ(huli)

lemon• (huli)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಹು�ಲಿ(huli)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಹು�ಳಿ vs ಹು�ಲಿ(huli vs huli)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಹು�ಳಿ vs ಹು�ಲಿ(huli vs huli)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಖಾ�ರ(khara)

chili• (ಖಾ�ರ)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

ಸಂ�ಕೋ�ಚ(sankocha)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Monad

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

GOTO

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

It’s the Language stupid!

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Classifications

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Chomsky-Schützenberger

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Structures

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Multilingual People

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Unscientific Studies Rock!

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Unscientific Studies Rock!

• 60% correlation between polyglots

Source: Wholly unscientific research by me.

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Unscientific Studies Rock!

• 60% correlation between polyglots

• 80% correlation between monolinguals

Source: Wholly unscientific research by me.

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Language Differences

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

जा�ना�vs

andare

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

http://langexplr.blogspot.co.uk/2011/03/quick-look-at-apl.html

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

allervs

andare

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

If i Mod 2 = 0 Then MsgBox(“Even”)Else MsgBox(“Odd”)End If

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

=IF(MOD(A1,2)=0,1,2)

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

{for i in l when i % 2 = 0 -> i}

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

[I || I <- L, (I rem 2) == 0].

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Error Correction

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

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.

From http://www.livescience.com/18392-reading-jumbled-words.html

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Hello Compiler!

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Errors lead to Evolution

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

All Languages Evolve

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Matters

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Doesn’t Matter

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

It’s a Language stupid!

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Two parties to every conversation

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Right tool for the job!

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

What is the Job?

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax

• Who are you talking to?

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax

• Who are you talking to?

• How necessary is it?

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax

• Who are you talking to?

• How necessary is it?

• How quickly do you need it?

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Doesn’t Matter

This is SO not the point

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Isn’t RIGHT

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Isn’t WRONG

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Just IS

Syntax – Why so Caremad?

V 1.0 © Ubiquiti Networks, Inc. All Rights Reserved

Syntax Just IsMahesh Paolini-Subramanya

(@dieswaytoofast)

V.P. R&D, Ubiquiti Networks

top related