Avatar of Jimmy Briggs

Jimmy Briggs

Software Engineer at No Clocks, LLC
Software Engineer at No Clocks, LLC·
TypeScript

See the architecture decision record for more details.

Context

When deciding on TypeScript vs. JavaScript, we need to consider the following:

  • TypeScript is a superset of JavaScript, which means that any valid JavaScript code is also valid TypeScript code.
  • TypeScript is statically typed, which means that it can catch errors at compile time.
  • TypeScript is a popular choice for large codebases because it helps with code organization and maintainability.
  • TypeScript is supported by most modern IDEs, which means that you get better autocompletion and type checking.
  • TypeScript can be transpiled to JavaScript, which means that you can use it in any environment that supports JavaScript.
Decision

We have decided to use TypeScript as our primary front-end language over JavaScript and strongly advise that TypeScript be used for all new projects going forward.

TypeScript offers several advantages over JavaScript, including static typing, better code organization, and better tooling support.

Consequences
  • Developers will need to learn TypeScript if they are not already familiar with it.
  • Developers will need to set up a TypeScript build pipeline for their projects.
  • Developers will need to use TypeScript-specific tools and libraries.
  • Developers will need to write type definitions for any third-party libraries that they use.
READ MORE
Sign in to GitHub · GitHub (github.com)
11 upvotes·5 comments·7.4K views
Michal Stransky
Michal Stransky
·
March 15th 2024 at 12:14PM

Hi Jimmy, I prefer Typescript... it's better than to search for types errors in vanilla JavaScript. I have just a few points to your consequences...

Developers will need to learn TypeScript if they are not already familiar with it. - This is true, but it will not be so hard… JavaScript is still the base-stone and everyone's who use it, is quite excited of type safety.

Developers will need to set up a TypeScript build pipeline for their projects. - This is just several lines of code, it just takes some time, so don't be afraid of this.

Developers will need to use TypeScript-specific tools and libraries. - I use VSC and add just a few Typescript specific add-ons, that's all.

Developers will need to write type definitions for any third-party libraries that they use. - This is the second side of the coin, if you don't know what the type is, typescript cannot check it for you… There is some complexity in non-basic types, but community is now huge and Microsoft do good job with knowledge base, so it will be ok.

·
Reply
Sonia Mittal
Sonia Mittal
·
April 15th 2024 at 7:01AM

Just For Acknowledge

·
Reply
Sonia Mittal
Sonia Mittal
·
April 15th 2024 at 7:01AM

Just For Acknowledge

·
Reply
Cusudj Kumar
Cusudj Kumar
·
May 13th 2024 at 7:16AM

Velo Credit Loan APp Customer Care Helpline Number ✔️ 7439367021//7439822246 All information Toll Free..

·
Reply
Cusudj Kumar
Cusudj Kumar
·
May 13th 2024 at 7:17AM

Velo Credit Loan APp Customer Care Helpline Number ✔️ 7439367021//7439822246 All information Toll Free..

·
Reply
Software Engineer at No Clocks, LLC·
Shared a protip
on
dnscontroldnscontrol
at
()

Pro Tip: Utilize DNSControl for Infrastructure as code for your DNS!

DNSControl is a system for maintaining DNS zones. It has two parts: a domain specific language (DSL) for describing DNS zones plus software that processes the DSL and pushes the resulting zones to DNS providers such as Route53, Cloudflare, and Gandi. It can send the same DNS records to multiple providers. It even generates the most beautiful BIND zone files ever. It runs anywhere Go runs (Linux, macOS, Windows). The provider model is extensible, so more providers can be added.

READ MORE
GitHub - noclocks/dns: DNS Records Managed via dnscontrol (github.com)
3 upvotes·4.9K views
Software Engineer at No Clocks, LLC·
Needs advice
on
AngularJSAngularJSNext.jsNext.js
and
ReactReact

Starting out with front end frameworks and have decent Javascript Knowledge.

READ MORE
2 upvotes·288 views