Author: Yao Zeyuan
Section profile
This week’s worth of tech content, released on Thursday
Visual management tool
1.adminer
1.< high-performance MySQL> one of the recommended database management tools
2. Only one PHP file, quick startup with Docker
3. Safe and reliable, support Chinese/skin change (currently I am using this one)
4. Online demo
1.MongoDB-Compass
1. Official MongoDB management tool
1.motrix
1. Motrix is an obvious choice if you often see Xunlei’s copyright notices/membership ads and are annoyed
Aria2 is the best open source download software available, but it only has a command line interface, which makes it very difficult to use. Motrix uses Electron to pack AriA2 into a graphical interface. Currently, Github has 10,000 stars.
Progressive TS migration
At present, the mainstream view of TS on the network is still that this is a new programming language, through static analysis of the data type for strict verification, professional solution to the object oriented problems. TSC/ts-loader/tslint/etc
With this in mind, it is not easy to promote TS on the business side. Because from the business side, TS perfectly implements object-oriented classes/interfaces/polymorphisms, but it just creates and solves a problem that doesn’t exist in front-end development. It brings a lot of learning/migration costs aside, it doesn’t help the actual work. As a result, there is not much business interest in TS.
But it would be nice to think about it differently.
In actual business development, how to memorize the complex state/props/ interface data interface is a headache. While practices such as Mock data/layering/force-writing comments have resulted, they are symptomatic rather than symptomatic. This problem, however, can be easily solved by using the TS type declaration.
In Babel 7, Facebook officially launched the Babel version of TS conversion tool, which is implemented as follows: 1. Split TS into type declaration +JavaScript 2. Remove type declaration 3. Compile JavaScript normally.
In other words, because JS does not need to learn, as long as the front-end master TS type declaration method, can be normal access to TS. And 100% compatible with older code.
In fact, this is what create-React-app actually does (TSC for static type checking of TS code and Babel for code conversion)
So, if you only promote TS type hints in the business side, you can easily guide the business side to migrate to the TS ecosystem =>
Upgrade babel6 to babel7
2. Install babel-plugin-transform-typescript and configure babelrc
3. Add tsconfig.json to the project
4. Change the suffix from js to ts
5. Add type declarations to your code, and there you go