3 ms·
dejavu is a set of Object Oriented Programming tools that aims to deliver classical inheritance on top of JavaScript prototypal inheritance, easing the process
by satazor 14y ago
dejavu is a set of Object Oriented Programming tools that aims to deliver classical inheritance on top of JavaScript prototypal inheritance, easing the process of moving from other traditional OOP languages, like PHP, Java, AS3, and others into JavaScript. Its main features include:
- High performance;
- Classes (concrete, abstract and final);
- Interfaces;
- Mixins;
- Private and protected members;
- Static members;
- Constants;
- Method signature checks;
- Capability to extend or borrow from vanilla classes;
- Custom instanceOf with support for interfaces;
Of course this is a matter of flavour, and some developers would rather work with vanilla JS. Still there are a lot of developers that find comfort in working with a more structured codebase, specially in projects involving bigger teams, which enforce traditional OOP guidelines. There were already some libraries out there that could achieve many of the features we expected, but none offered the performance we required, which is why we opted for building this library. With its optimiser, you get better performance than handwritten JavaScript specially in node.js, Chrome and Safari.