Coder Social home page Coder Social logo

start-with-typescript's Introduction

start-with-typescript

为什么要学习和使用TypeScript?

当我使用一些常见的前端框架和库,发现现在很多框架和库都已经使用了TypeScript的时候;当我在项目中使用某些库产生了bug,因为时间问题我急着解决问题,自己去找库的bug,然而我发现这些ts编写的文件让我无处下手的时候;当我想看用TypeScript编写的antd design之类的框架源码的时候;当我看见很多react、vue和angular项目用了TypeScript的时候,我发现是时候学习TypeScript了。

TypeScript是一种纯面向对象的语言。相比JavaScript,它更能提高我们的开发效率。而且,由于TypeScript是JavaScript的超集,TypeScript能够和JavaScript混合使用。因为TypeScript的这个强大特性,越来越多的优秀框架开始尝试使用TypeScript。

在编写代码的阶段,TypeScript就能够找到大部分的错误,而JavaScript在这方面就没那么友好了。要知道,运行时错误越少,你的程序的bug就越少。除此之外,相比JavaScript,TypeScript的重构也更容易。

供参考文档:

TypeScript基础

start-with-typescript's People

Contributors

staticdeng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.