dwarvesf / playbook

Guides for getting things done, programming well, and programming in style.
https://memo.d.foundation
227 stars 48 forks source link

Frontend - Typescript recommendations #44

Closed huygn closed 2 years ago

huygn commented 3 years ago

https://github.com/dwarvesf/playbook/blob/master/engineering/frontend.md (currently outdated for the most parts).

Typescript is dominating and being used opinionatedly in most of our projects, thus some help are needed to add Typescript to polish up our Frontend practices. @tuanddd @zlatanpham are you guys willing to help? Even just bullet points & some helpful links are good enough (more are welcome ofc), I'll look into restructuring the whole Frontend section later.

zlatanpham commented 3 years ago

I took the following from docs of a project. Let me know if I can help with other parts too.

TypeScript is a strict syntactical superset of JavaScript and adds optional static typing to the language. Forcing to write strongly typed syntax while you are familiar with dynamic/multi-paradigm scripting language like JavaScript is sometimes annoying, even for experienced developers. However, the drawback can be out-weighted by the following benefits when coming to write medium to large-sized applications:

Resources

zlatanpham commented 2 years ago

I've included the TypeScript section in https://github.com/dwarvesf/playbook/pull/46