{"id":15599852,"url":"https://github.com/hypercubed/javascript-the-esoteric-parts","last_synced_at":"2025-04-19T19:41:30.665Z","repository":{"id":66193309,"uuid":"43723836","full_name":"Hypercubed/javascript-the-esoteric-parts","owner":"Hypercubed","description":"JavaScript: The Esoteric Parts","archived":false,"fork":false,"pushed_at":"2015-10-23T06:09:19.000Z","size":192,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-04T13:20:24.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hypercubed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-06T01:26:50.000Z","updated_at":"2022-07-08T15:10:16.000Z","dependencies_parsed_at":"2023-02-20T00:00:56.745Z","dependency_job_id":null,"html_url":"https://github.com/Hypercubed/javascript-the-esoteric-parts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjavascript-the-esoteric-parts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjavascript-the-esoteric-parts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjavascript-the-esoteric-parts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjavascript-the-esoteric-parts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hypercubed","download_url":"https://codeload.github.com/Hypercubed/javascript-the-esoteric-parts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246181677,"owners_count":20736602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T02:00:55.583Z","updated_at":"2025-03-29T12:20:44.454Z","avatar_url":"https://github.com/Hypercubed.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript: The Esoteric Parts\n\n## Table of Contents\n\n- Introduction\n- Classical vs. Prototypal inheritance\n- Psudoclassical Inheritance\n- Object Composition\n- The ES6 `class`\n- Semicolons\n- *Tabs vs Spaces*\n- Semantic Versioning\n- Arrow function syntax\n- Observer Patterns\n- Constants and Immutability\n- *Frameworks vs. Vanilla*\n- [Contribution Guidelines](#contribution-guidelines)\n- [License](#license)\n\n## Introduction\n\n## Classical vs. Prototypal inheritance\n\nJavaScript uses prototypal inheritance instead of classical inheritance.  Knowing the difference is key to understanding the discussions below.\n\n- [Classical Inheritance in JavaScript](http://www.crockford.com/javascript/inheritance.html)\n- [Why Prototypal Inheritance Matters](http://aaditmshah.github.io/why-prototypal-inheritance-matters/)\n- [Benefits of prototypal inheritance over classical?](http://stackoverflow.com/questions/2800964/benefits-of-prototypal-inheritance-over-classical)\n\n## Psudoclassical Inheritance (The `new` and `this` keywords)\n\nControversy over how to do class-like inheritance in JavaScript existed long before the ES6 `class` keyword.\n\n- [Crockford on JavaScript](https://www.youtube.com/watch?v=ya4UHuXNygM\u0026t=50m23s)\n\n## Object Composition\n\n- [Composition over Inheritance](https://medium.com/humans-create-software/composition-over-inheritance-cb6f88070205) by Mattias Petter Johansson\n  - [comment](https://www.reddit.com/r/programming/comments/3m64ns/composition_over_inheritance/cvccr2u)\n- [The Open Minded Explorer’s Guide to Object Composition](https://medium.com/javascript-scene/the-open-minded-explorer-s-guide-to-object-composition-88fe68961bed) by Eric Elliott\n  - [comment](https://medium.com/@jeffm712/every-industry-has-its-own-jargon-words-that-have-special-and-technical-meaning-beyond-what-you-1cc05d519ff9) by Jeff M\n    - [Composition vs Composite Pattern](https://medium.com/@_ericelliott/composition-vs-composite-pattern-842133706472) by Eric Elliott\n      - [comment](https://medium.com/@jeffm712/nope-the-definition-i-m-referring-to-is-indeed-for-composition-707e4499e85a) by  Jeff M\n\n## The ES6 `class`\n\nES6 introduced the `class` keyword.  ES6 classes are syntactical sugar over prototypal inheritance.  There are many arguments for and against the `class` keyword in JavaScript.\n\n- [How to Fix the ES6 `class` keyword](https://medium.com/javascript-scene/how-to-fix-the-es6-class-keyword-2d42bb3f4caf) by Eric Elliott\n- [The Two Pillars of JavaScript](https://medium.com/javascript-scene/the-two-pillars-of-javascript-ee6f3281e7f3) by Eric Elliott\n  - [Crockford's Wager](https://medium.com/@hypercubed/ok-let-me-play-devils-advocate-for-a-second-and-introduce-crockford-s-wager-f8e051cc52a) comment by Jayson Harshbarger\n- [A Simple Challenge to\nClassical Inheritance Fans](https://medium.com/javascript-scene/a-simple-challenge-to-classical-inheritance-fans-e78c2cf5eead)  by Eric Elliott\n  - [comment](https://medium.com/@rauschma/i-would-never-argue-that-es6-classes-are-clearly-a-better-choice-than-composition-modules-or-891e462da85b) by Axel Rauschmayer\n- [Not Awesome: ES6 Classes](https://github.com/joshburgess/not-awesome-es6-classes) by joshburgess\n  - [comment](https://www.reddit.com/r/javascript/comments/3nkycz/not_awesome_es6_classes_a_curated_list_of/) by rauschma\n- [How to Use Classes and Sleep at Night](https://medium.com/@dan_abramov/how-to-use-classes-and-sleep-at-night-9af8de78ccb4) by Dan Abramov\n- [ES6 class](https://github.com/getify/You-Dont-Know-JS/blob/master/this%20\u0026%20object%20prototypes/apA.md) by getify\n\n## Semicolons\n\nJavaScript has a feature called Automatic semicolon insertion (ASI).  With ASI, you are able to omit certain semicolons.  Use of this feature is controversial.  After the `class` keyword, ASI may be JavaScript's most controversial syntactic feature.\n\n- [An Open Letter to JavaScript Leaders Regarding Semicolons](http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding) by Isaac Z. Schlueter\n- [JavaScript Semicolon Insertion, Everything you need to know](http://inimino.org/~inimino/blog/javascript_semicolons)\n- [Understanding automatic semi-colon insertion in JavaScript](http://jamesallardice.com/understanding-automatic-semi-colon-insertion-in-javascript/)\n- [Well, actually; Not all semicolons…](http://blog.getify.com/not-all-semicolons/) by getify\n\n## Semantic Versioning\n\nSemantic Versioning, while not a feature of JavaScript, is vital to JavaScript package management and is often misunderstood.\n\n- [We fail to follow SemVer – and why it needn’t matter](https://www.youtube.com/watch?v=tc2UgG5L7WM\u0026index=6\u0026list=PLFZ5NyC0xHDaaTy6tY9p0C0jd_rRRl5Zm) by Stephan Bönnemann at JSConf Budapest 2015\n- [Semantic Versioning: Why You Should Be Using it](http://www.sitepoint.com/semantic-versioning-why-you-should-using/)\n- [Pragmatic Semantic Versioning](http://ponyfoo.com/articles/semver) by Nicolas Bevacqua\n- [Why semver ranges are literally the worst…](https://medium.com/@kentcdodds/why-semver-ranges-are-literally-the-worst-817cdcb09277) by Kent C. Dodds\n\n## Arrow function syntax\n\n- [Arrow This](http://blog.getify.com/arrow-this/) by getify\n\n## Observer Patterns\n\n- [Comparison between different Observer Pattern implementations](https://github.com/millermedeiros/js-signals/wiki/Comparison-between-different-Observer-Pattern-implementations)\n\n## Constants and Immutability\n\n- [Constantly Confusing ‘const’](http://blog.getify.com/constantly-confusing-const/) by getify\n\n# Contribution Guidelines\n\nPlease read the following guidelines:\n\n- Search previous suggestions before making a new one, as yours may be a duplicate.\n- Make an individual pull request for each suggestion.\n- Titles should be [capitalized](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html).\n- Use the following format: `[Content Title](content link)` and `by Author Name` where appropriate.\n- Choose corresponding section (and subsection) for your suggestion. \n- New sections (and subsection) are welcome.\n- Try to keep this resource objective but feel free to link to your subjective resource.\n- Try to link to primary sources instead of collections.\n\n## License\n\n[![Creative Commons License](http://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)\n\nThis work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fjavascript-the-esoteric-parts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypercubed%2Fjavascript-the-esoteric-parts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fjavascript-the-esoteric-parts/lists"}