11 ms·
Announcing TypeScript 0.9.1
- sluukkonen 13y agoDoes anyone have experience with using TypeScript with existing libraries like Angular.js? I know that there are definition files for it [1] (and many other popular libraries), but unfortunately I haven't had the time to check out their quality. [1] https://github.com/borisyankov/DefinitelyTyped/tree/master/angularjs https://github.com/borisyankov/DefinitelyTyped/tree/master/a...
- santialbo 13y agoWe are building a webapp using TypeScript and Angularjs and we are quite happy. It takes some time to set up everything, we even created our own yeoman generator, but at the end I think it's worth it.
- novaleaf 13y agoi do, i built up an infrastructure around angular with typescript, and requirejs honestly it was a pain in the butt to figure out all the stuff required, but that could be because my company is new at webdev so we are learning webdev techniques at the same time.
- opminion 13y agoI hope that they keep the possibility of running it stand-alone and not force Visual Studio down their users's throats.
- kin3tic 13y agoWhere does this statement even come from? The primary download listed for TypeScript on it's site is an npm module.
- benatkin 13y agoWhy are you concerned about this? I didn't see anything in the announcement that would suggest it.
- kyrra 13y agoCause it makes it windows only. EDIT: to add, I like the idea of typescript (it's a much smaller step than compared to something like Dart). But their tooling is all around Visual Studio, which ties you to Windows. I don't dislike Windows, but I want my development tools to be cross platform (which is why I like Sublime Text, Eclipse, and similar tools).
- benatkin 13y agoI was asking opminion.
- deleted 13y ago[deleted]
- untog 13y agoI think he was asking "why are you concerned about this" because there is absolutely no indication that they intend to force Visual Studio with TypeScript.
- skeeterbug 13y agoWhat makes you think it is windows only? npm install -g typescript
- jzelinskie 13y agoI haven't heard much about TypeScript since its original announce. Are any big projects using it? Does anybody have some commentary on their experience using it and where they think the project is going?
- shearnie 13y agoMy project isn't huge, but larger than it could have been using idiomatic javascript. The scoping with modules and the typing really helped since I'm familiar with C# and having "everything light up" in the IDE. Saved a ton of time letting a compiler catch things instead of writing tests. I tried coffee script, but found the copy/paste option for javascript that I have already written won me over.
- aquark 13y agoSame here -- I rewrote all my javascript code in Typescript and am very happy with the result. No longer am I concerned about errant semi-colons or a stupid typo in a method name on an error handling path that a unit test missed.
- de90 13y agoExactly my feelings about it. Being able to specify types, and having the compiler warn me of mistakes is a godsend when comparing it to just writing javascript. And when valid javascript is valid typescript, it seems odd to not opt to use it when the only addition is a compile step to ensure sanity.
- wiradikusuma 13y agoThere's js2coffee.org to copy paste JavaScript to CoffeeScript.
- trentmb 13y ago... just for it to be 'compiled' back to JavaScript...
- emehrkay 13y ago
- deadreturns3 13y agoAm justing waiting for them to implement "await".
- Permit 13y agoI think you might be waiting for awhile unfortunately. Implementing await would result in a lot of autogenerated code. Typescript is largely meant to be almost 1:1 with the Javascript it produces. Anders talks about that problem in this video: http://channel9.msdn.com/Events/Build/2013/9-006 http://channel9.msdn.com/Events/Build/2013/9-006
- CmonDev 13y agoAwaiting for awhile? Awful.
- yareally 13y agoThere's also a discussion[1] at Codeplex on some TypeScript compatible alternatives to async/await. [1] http://typescript.codeplex.com/discussions/397594 http://typescript.codeplex.com/discussions/397594
- omphalos 13y agoOne proposed alternative to await (for CoffeeScript) that is more one-to-one with the generated JavaScript: https://github.com/jashkenas/coffee-script/issues/2762 https://github.com/jashkenas/coffee-script/issues/2762
- jeswin 13y agoThat would result in future incompatibility, considering ES6 has generators which could do the same job. edit: just the points
- deadreturns3 13y agoFuture incompatibility and TypeScript. You're funny.
- CmonDev 13y ago
- sdevlin 13y agoI sometimes find myself torn between dynamic typing (great for rapid prototyping) and static typing (great for tooling and compile-time error checks). I'm a big fan of TypeScript's approach, which gives you the best of both worlds. Start with fully dynamic code to explore the problem space, then add more static guarantees as you firm up your design. I haven't had occasion to write a big web app recently, but I'm itching to find one so I can put TypeScript through its paces.
- marshray 13y agoDid I just hear someone say they were looking for a web app to write? I think he may even know something about software engineering ... Don't everybody mob him at once :-)
- harrytuttle 13y agoI was in the same position for literally years regarding static vs dynamic. I've concluded that C gets it spot on i.e. it's mostly static with associated guarantees but you can use a void* if you need it.
- mahmud 13y agoProbably the single worst conclusion someone can arrive at regarding typing.
- harrytuttle 13y agoRather than slate me, some constructive discussion would be nice. I'll go from my side: 1. Static type compiler verification saves tonnes of problems. Try managing a 2MLOC dynamically typed solution and you'll get what I mean. 2. Static typed languages are way easier to refactor as more metadata is available to the tooling. 3. Static typed code is easier to test. The type contract is available over the boundary between the implementation and the test cases. 4. Defined interfaces without leaky abstractions are easier to produce when you have static types. 5. Static types allow the compiler to infer more information about how to compiler your code resulting in faster, more efficient code and lower memory usage plus you don't have to compile an instance of a function with every possible type consideration at runtime. 6. Statically typed data serialises more reliably i.e. goes over the wire easier without behemoth contracts and parsers at each end. 7. Statically typed languages tend to have better numeric accuracy as differences between decimal, floats and integers are always deterministic and there are defined casts and conversions between each during operations. I could go on...
- kishor_gurtu 13y agoLove how folks here love to discuss the merits/demerits of a language (not the version of the language) EVERY TIME a new version is announced. This works for every language.
- marshray 13y agoMe too. But I don't agree that it works for every language. Often the stuff that "just works" doesn't end up producing a lot of chatter on the intertubes, at least not nearly as much as something that looks seductively simple but turns out to be much harder in practice. Another example I like is Lua: elegant, mature, and used in some very very big applications. If there was ever evidence that a codebase was high quality and nearly bug free, it's that. But when was the last time we had a good flamewar (with namecalling) over Lua?
- unknownian 13y agoIrrelevant, but a site that lets you comment without putting an email? I like Microsoft.
- seabrookmx 13y agoAgreed. It's little things like this that add up.
- coolsunglasses 13y agoSolid alternative: http://ckknight.github.io/gorillascript/ http://ckknight.github.io/gorillascript/
- sinkasapa 13y agoIt doesn't look like GorillaScript has static typing, which I thought was the point of TypeScript. I think a great alternative in that space is Roy http://roy.brianmckenna.org/ http://roy.brianmckenna.org/
- ghostdiver 13y agoTraceur Compiler is good alternative: https://github.com/google/traceur-compiler https://github.com/google/traceur-compiler however its development kinda stopped in last months
- dinduks 13y agoThe problem with TypeScript is its requirement for definition files which are most of the time outdated. That makes it unusable in a real project where many JS libs live together. (not saying that's the case all the time)
- dodyg 13y agoNo, it's not a problem. You don't need the definition files if you don't care about getting the supporting static typing on external libs. It is completely doable to simply let the external libs call to be dynamic and guard your core code with static typing.
- andor 13y agoDoes anybody know whether Typescript still filters comments?
- novaleaf 13y agoit's a command-line argument --removeComments, install and run tsc.exe with no args for the full list of options
- michaelwww 13y agoIt doesn't. There is a switch I use to preserve them.
- ledneb 13y agoWe need support for it in something like Monodevelop / Netbeans / Eclipse. A lot of the benefit I experience from strict(er) typing comes from the real-time help an IDE gives me - without a Windows/VS licence, I hardly feel compelled by Typescript at all.
- camus 13y agoworks well with webstorm/phpstorm but i agree , useless without realtime help in a IDE. Sometimes the compiler issues an error it is really hard to get what's wrong without visual clues , unless one likes to count lines and columns and switch between command line / text editor all the time. Does the TS compiler even work with Syntastic(vim) by the way ? I like TS , i use modules , classes and short hand functions declarations , but not the type system which doesnt make sense to me. It doesnt make sense with javascript and force back devs in all these java EE like patterns.
- logotype 13y agoAnnouncing LeapMotion TypeScript API: https://github.com/logotype/LeapMotionTS https://github.com/logotype/LeapMotionTS
- logotype 13y agoAnnouncing LeapMotion TypeScript API: https://github.com/logotype/LeapMotionTS https://github.com/logotype/LeapMotionTS
- chris-at 13y agoI appreciate their efforts but this is the 'buggiest' release yet.