- What is StapesJS?
- Key Reasons Why You May Love StapesJS
- StapesJS Hello World – Code Example
What is StapesJS?
Key Reasons Why You May Love StapesJS
I am not an expert with StapesJS. However, I must say that I loved StapesJS for multiple reasons after spending few hours with it. So much so that, I would like to spend more time working with it in near future and, telling about it to others. Following are some of the reasons:
- Intuitive: When writing JS code in object-oriented fashion, StapesJS makes it quite intuitive in the sense, that a class extends from Stapes and any other class wanting to inherit could use “subclass” keyword with the class itself. When trying to explain OOPs to beginners, it may come very handy. With existing JS, at times, it become difficult to explain concepts such as class, objects & inheritance to the beginners. In addition, its event handling and data methods are very easy to understand and use.
- High Usability:StapesJS makes the code easy to read and understand owing to its simplistic syntax.
- Very Tiny (Low Footprint): StapesJS has a very low footprint, e.g., (just 2kb minified and gzipped).
- Good for Mobile Sites: Owing to its low footprint, StapesJS could become favorites for usage in building mobile sites.
Stapes Hello World – Code Example
Pay attention to some of the following:
- One may note that argument to “Stapes.subclass” is a JS object.
- All classes, when using Stapes, inherits from Stapes which is the base class. When creating subclass, one can use “subclass” with class name which will inherit all prototype properties of the parent class.
- Keyword “constructor” is explicitly used to define the constructor of the class. This makes the Constructor function stand out unlike normal JS classes. This may come handy when providing training to UI developers willing to learn OOPs concepts.
- Top 10+ Mobile / Web App UI Mockup Tools - December 9, 2017
- Top 10 Startups Building Speech-to-text Conversion Solutions - December 8, 2017
- Key eCommerce Job Responsibilities for Back-office Staff - January 29, 2017