- Babylon.js Essentials
- Julien Moreau-Mathis
- 252字
- 2021-07-16 12:49:10
Why is Babylon.js developed using TypeScript?
Babylon.js is a big project with increasing contributions since its creation on GitHub. It provides you with a lot of functions and, sometimes, with a lot of parameters for more flexibility. The TypeScript language is useful for robust code as its goal is to improve and secure the production of JavaScript code.
The TypeScript language
TypeScript (TS) is a free and open source language developed by Microsoft. It is a compiled language to produce JavaScript (the TS code is, in fact, transcompiled) and provides a static typing system, which is optional. The typing system is used in Babylon.js in order to get a cleaner and more descriptive code. It means that if a function has a lot of parameters, it's easier to fill and understand them instead of always using the documentation as a reference. Moreover, it allows developers to declare classes (as the ECMAScript 6 specifications do) and interfaces for a better understandable architecture and structure of code.
The TypeScript features
The typing system is powerful as it allows developers to create interfaces, enumerated types, and classes and handle generics and union typing. Overall, developers use the typing system for a better understanding and security of the libraries that they are building and using.
The TS language supports inheritance (classes) and also provides access specifiers (private / public / protected) to modify the access rights for the classes' members. Then, developers can see at a glance the members that they can use and modify.
- 極簡算法史:從數學到機器的故事
- scikit-learn Cookbook
- Python程序設計教程(第2版)
- JavaScript 從入門到項目實踐(超值版)
- NumPy Essentials
- Python Tools for Visual Studio
- Julia機器學習核心編程:人人可用的高性能科學計算
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Linux網絡程序設計:基于龍芯平臺
- 差分進化算法及其高維多目標優化應用
- C++寶典
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Python:Deeper Insights into Machine Learning
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- 安卓工程師教你玩轉Android