Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript or CoffeeScript [closed]

Tags:

Started using node.js for building web apps.

One of my colleague asked about TypeScript which is a new Language from Microsoft. We have a plan to start our new Web app with node.js and TypeScript as a Scripting engine.

I just want to know is it right time to develop apps using TypeScript? How about the future of TypeScript?

like image 468
started on node.js Avatar asked Mar 02 '13 07:03

started on node.js


People also ask

Is CoffeeScript still maintained?

As of today, January 2020, CoffeeScript is completely dead on the market (though the GitHub repository is still kind of alive).

Is TypeScript and CoffeeScript the same?

Bottom Line. One crucial difference between the two languages is that TypeScript is the superset of JavaScript while CoffeeScript is a language which is an enhanced version of JavaScript. Not just these two languages but there are other languages such as Dart, Kotlin, etc. which can be compiled into JavaScript.

Is CoffeeScript a superset?

It's neither a subset nor a superset of JavaScript.


2 Answers

Both TypeScript and CoffeeScript have their own strengths. But if you want to build a big application I'd recommend going with CoffeeScript as you end up writing less code. Here's a nice slideshow that compares both TypeScript and CoffeeScript. This may be off topic but the development of TypeScript is clear at least part of MS is really serious about open source.

  • TypeScript is under the Apache 2.0 license
  • Source is available via git on Codeplex
  • Installation is as easy as npm install -g typescript
like image 132
Nej Kutcharian Avatar answered Oct 02 '22 09:10

Nej Kutcharian


TypeScript will be supported by all browsers. You can say its just another javascript. What I found TypeScript was easy to code and evern more easy to debug. Microsoft is in no mood to challenge the old JavaScript like they did by releasing Silverlight to challenge Flash.

Anytime you feel that u want to switch back to old JavaScript and don't want to use TypeScript its even more easy to convert your ts to Js.

Try this and see the difference between js and ts.

like image 28
Newton Sheikh Avatar answered Oct 02 '22 11:10

Newton Sheikh