Giter Site home page Giter Site logo

rus0000 / jsinheritance Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 28.0 315 KB

JavaScript prototype-based inheritance visualized

License: MIT License

constructor-prototype factory-functions javascript-inheritance javascript-objects javascript-patterns javascript-prototypes mixins oop prototype

jsinheritance's People

Contributors

rus0000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jsinheritance's Issues

Some word change suggestions:

"This is a beginner-level post, just to clarify and visualize JavaScript prototype-based inheritance."

could be:

"This is a beginner level post to clarify JavaScript prototype-based inheritance via words and diagrams."


"A lot of incomplete and even wrong info can be found on Internet about JavaScript prototypal inheritance. I will just try to explain it again with help of diagrams."

could be:

"Much online information about JavaScript prototypal inheritance is scattered, wrong, confusing and misleading. This explains it as clearly, truthfully and easily as I can with clear images and words."


"JavaScript inheritance understanding is important, even if you are not going to use JavaScript OOP patterns, since many of language built-in functionality based on inheritance."

could be:

"Understanding JavaScript's inheritance approaches is important because the core tenets of its design and operation have been designed around its OOP patterns and abilities. Even if you don't plan on using these it's illuminating to understand the origin and reasoning of the language's methodologies."


"I am not advocating of using OOP patterns and "classical"-like inheritance in JavaScript at all. I personally prefer using "factory" and "mixin" instead of a "constructor" pattern. But this post is not about patterns, it is only about JavaScript prototype-based inheritance mechanics visualization."

could be:

This article is clarification of prototype-based inheritance mechanics and understanding them through visualisation. My personal preferences for use of "factory" and "mixin" over "constructor" patterns does not colour the article. I am not advocating use of OOP patterns and "classical"-like inheritance in Javascript.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.