learning new words
DESCRIPTION
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?TRANSCRIPT
![Page 1: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/1.jpg)
Learning new words
![Page 2: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/2.jpg)
English
![Page 3: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/3.jpg)
Old English
![Page 4: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/4.jpg)
Norman conquest of England
![Page 5: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/5.jpg)
anniversary yeartide
musician gleeman
conclusion endsay
“inkhorn terms”
![Page 6: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/8.jpg)
“Anglish”
![Page 10: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/10.jpg)
Banded Folkdoms of Americksland
![Page 11: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/11.jpg)
ForesitterBarack Obama
Folkrike Mootbandof the
![Page 12: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/12.jpg)
French
![Page 13: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/13.jpg)
L’Académie française
![Page 14: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/14.jpg)
40 membersserving life terms
![Page 15: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/15.jpg)
walkman baladeur
so!ware logiciel
email courriel
![Page 16: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/16.jpg)
#hashtag
mot-dièse
![Page 17: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/17.jpg)
JavaScript
![Page 18: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/18.jpg)
How do we wantour language to evolve?
![Page 19: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/19.jpg)
top-downvs.
bottom-up
![Page 20: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/20.jpg)
New “words” must comefrom the standards body...
![Page 21: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/21.jpg)
…but they’ll run up againstcommunity-made patterns.
![Page 22: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/22.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/23.jpg)
“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](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/24.jpg)
JavaScript is not Java.
![Page 25: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/25.jpg)
The challenge:
![Page 26: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/26.jpg)
gender-indeterminate pronouns
![Page 27: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/27.jpg)
“A doctor must not harm his patients.”
![Page 28: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/28.jpg)
“A doctor must not harm eir patients.”
![Page 29: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/29.jpg)
“A doctor must not harm his/her patients.”“A doctor must not harm their patients.”
![Page 30: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/30.jpg)
Code ideas are spreadthrough popular usage.
![Page 31: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/31.jpg)
If you want people to use a new word,make sure it’s in the things they read.
![Page 32: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/32.jpg)
So… here’s what we can do:
![Page 33: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/33.jpg)
Document the hell out of the new stuff.
![Page 34: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/34.jpg)
Use them in your projects.
![Page 35: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/35.jpg)
Give people therapy.
![Page 36: Learning new words](https://reader033.vdocuments.mx/reader033/viewer/2022052601/558e7e111a28aba57c8b45c4/html5/thumbnails/36.jpg)
JavaScript will be OK.