Top Banner
Learning new words
37

Learning new words

Jun 27, 2015

Download

Technology

Andrew Dupont

Godwin's Law for JavaScript: as people discuss a proposed extension to JavaScript syntax, the likelihood of someone saying "Stop trying to turn JavaScript into Java!" approaches 1.

For years I've tried to understand this perspective. Why are there so many people out there for whom present-day JavaScript is Good Enough™? What crucial aspect of JavaScript's identity are they trying to defend? Why do they get so scared when someone suggests new syntax? Can we figure out how to evolve the language without incurring the wrath of their pitchforks and/or torches?
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Learning new words

Learning new words

Page 2: Learning new words

English

Page 3: Learning new words

Old English

Page 4: Learning new words

Norman conquest of England

Page 5: Learning new words

anniversary yeartide

musician gleeman

conclusion endsay

“inkhorn terms”

Page 6: Learning new words

I am of this opinion that our own tung should be written cleane and pure, unmixt and unmangeled with borowing of other tunges; wherein if we take not heed by tiim, ever borowing and never paying, she shall be fain to keep her house as bankrupt.

Sir John Cheke,16th century scholar

Page 7: Learning new words

For the barbarousnesse of our tongue, I must lykewyse say that it is much the worse for [the objectors], and some such curious fellowes as they are: who if one chaince to derive any word from the Latine, which is insolent to their eares, they foorthwith make a jest at it, and terme it an Inkehorne terme. It is indeed the ready way to inrich our tongue, and make it copious, and it is the way which all tongues have taken to inrich themselves. I know not how we should speake any thing without blacking our mouthes with inke.

George Pettie16th century author

Page 8: Learning new words

“Anglish”

Page 9: Learning new words

The Anglish Moothttp://anglish.wikia.com

Page 10: Learning new words

Banded Folkdoms of Americksland

Page 11: Learning new words

ForesitterBarack Obama

Folkrike Mootbandof the

Page 12: Learning new words

French

Page 13: Learning new words

L’Académie française

Page 14: Learning new words

40 membersserving life terms

Page 15: Learning new words

walkman baladeur

so!ware logiciel

email courriel

Page 16: Learning new words

#hashtag

mot-dièse

Page 17: Learning new words

JavaScript

Page 18: Learning new words

How do we wantour language to evolve?

Page 19: Learning new words

top-downvs.

bottom-up

Page 20: Learning new words

New “words” must comefrom the standards body...

Page 21: Learning new words

…but they’ll run up againstcommunity-made patterns.

Page 22: Learning new words

ClassesTHREE.SkinnedMesh = function (geometry, material) { THREE.Mesh.call(this, geometry, material);

this.identityMatrix = new THREE.Matrix4(); this.bones = []; this.boneMatrices = []; // ...};

THREE.SkinnedMesh.prototype = Object.create(THREE.Mesh.prototype);

THREE.SkinnedMesh.prototype.clone = function (object) { if (object === undefined) { object = new THREE.SkinnedMesh(this.geometry, this.material); } THREE.Mesh.prototype.clone.call( this, object ); return object;};

class SkinnedMesh extends THREE.Mesh { constructor(geometry, material) { super(geometry, material); this.identityMatrix = new THREE.Matrix4(); this.bones = []; this.boneMatrices = []; // ... } clone(object) { if (object === undefined) { object = new THREE.SkinnedMesh(this.geometry, this.material); } super(object); return object; }}

Page 23: Learning new words

“Leave classes in Java where they belong! The only people who want classes are the ones who don’t understand the inherent beauty of prototypal inheritance.”

(paraphrased)

Page 24: Learning new words

JavaScript is not Java.

Page 25: Learning new words

The challenge:

Page 26: Learning new words

gender-indeterminate pronouns

Page 27: Learning new words

“A doctor must not harm his patients.”

Page 28: Learning new words

“A doctor must not harm eir patients.”

Page 29: Learning new words

“A doctor must not harm his/her patients.”“A doctor must not harm their patients.”

Page 30: Learning new words

Code ideas are spreadthrough popular usage.

Page 31: Learning new words

If you want people to use a new word,make sure it’s in the things they read.

Page 32: Learning new words

So… here’s what we can do:

Page 33: Learning new words

Document the hell out of the new stuff.

Page 34: Learning new words

Use them in your projects.

Page 35: Learning new words

Give people therapy.

Page 36: Learning new words

JavaScript will be OK.

Page 37: Learning new words

(the end)

@andrewduponthttp://andrewdupont.net