Live data from Hacker News

TypeScript: a language for application-scale JavaScript development

typescriptlang.org

211–220 of 316 posts

Re: TypeScript: a language for application-scale JavaScript development

#211
post #120
post #68

$ t command not found clearly they could have named the compiler just 't' instead of the overly verbose 'tsc'. all those extra characters!!

$ curl http://news.ycombinator.com/user?id=j No such user. Clearly you could have named yourself just 'j' instead of the overly verbose 'jon6'. All those extra characters!!

Clearly you can't perceive sarcasm.

Re: TypeScript: a language for application-scale JavaScript development

#212
post #198

Earlier quoted context omitted.

Roughly the same story here. At the risk of sounding like a fanboy, I feel that while most tech BigCos (e.g. Google, Apple) have become more evil over time, MS has actually become less evil, to the point that using their tech (and some major tech at that) is relatively free of any lock-in risk. TypeScript seems very much in line with this trend, and I love it. This is exactly what I wanted - JavaScript but with decen…

Given where MS started, "less evil" is damning with faint praise. The people in charge include people who were part of everything that was wrong with the company all along. As long as I have a reasonable alternative, I will never choose to trust Microsoft. Then again I'm biased. Their desire to sell insecure software to the US government when that was against the law lead them to deliberately destroy the life of a fr…

I hadn't heard this story before, but time isn't kind to this particular conspiracy. The moment of clarity: Mr. Curry wanted to sue Microsoft but "couldn't find a lawyer willing to take on the case" -- in 1998. EVERYBODY was suing Microsoft in 1998, including multiple governments. If you couldn't find someone to sue them that year, I'm afraid you don't have much credibility.

And this made my head hurt:

"All computer security systems begin with the Intel processor itself," Curry said. "I helped Intel develop their processor, so I know how they work and how vulnerable they can be if left exposed." ... "In fact," he added, "Microsoft NT 4.0 is the least secure of all the NT versions... Processors on Windows NT Version 4.0 are insecure because they have been designed to automatically open the processor up to accept commands on start-up."

Re: TypeScript: a language for application-scale JavaScript development

#213
post #4

Say what you want about whether this is a good idea or not, it is clear at least part of MS is really serious about open source. * TypeScript is under the Apache 2.0 license [1] * Source is available via git on Codeplex [2] * Installation is as easy as npm install -g typescript [3] Extra bonus coolness: They've provided an online playground like jsfiddle! [4]. [1] http://typescript.codeplex.com/license [2] http://typ…

I have to admit I'm impressed with MS here. Contrast Dart and TS. Dart announced a year ago and they're only now dealing the JS interop issue, so to most people its still only really interesting as a play thing. TS announced and from the looks of if we choose to we can immediately start using it. I know Dart is more ambitious and maybe long term their focus on issues other than interop will be proved to be correct, b…

Google deliberately opened up dart development early. I thing that was a good thing. They could have kept it closed and released it today, it's roughly as mature as type script seems to be. Would you have been happier with that?

Re: TypeScript: a language for application-scale JavaScript development

#215
post #42

Very interesting. The Apache 2.0 Licence is comforting, makes it worth having a look. The docs are here for anyone interested in the spec: http://typescript.codeplex.com/documentation I like what they've done. Nothing too revolutionary, mostly adding static typing to Javascript without straying to far from the existing (or future) language or increasing the noise significantly. Here's some highlights: * Type inferenc…

I don't think `super` can be invoked as a function yet. I think it's only a reference to the superclass' prototype.

Re: TypeScript: a language for application-scale JavaScript development

#216

Earlier quoted context omitted.

Sourcing typescript.vim throws errors: http://pastebin.com/raw.php?i=HHDJDG7X

The error about ^M suggests it has DOS line endings. Try converting the line endings.

anything else would have been... revealing.

Re: TypeScript: a language for application-scale JavaScript development

#217
post #148

Earlier quoted context omitted.

Agreed, it's a terrible language. Among other things, it makes it way too easy to write code which many people will read as being correct, but will actually be subtly incorrect. A few of the weakest parts: - for (var x in y) when used for array iteration or even dict iteration; hasOwnProperty? Really? - x[obj] = y; seriously, did i really want '[Object object]' as my key? - the choice of function level scope over blo…

I'm not sure function level scope over block level is a bad thing. It makes it more Lisp-y. And if you want block level scope, it's about as easy as (in CoffeeScript): do -> ... local variables right here ...

> I'm not sure function level scope over block level is a bad thing. It makes it more Lisp-y.

Lisp has block scope.

Re: TypeScript: a language for application-scale JavaScript development

#218

Like someone else commented in the TC article about Typescript, this Resig quote, changing "Google" for "Microsoft" is relevant: "Why is [Microsoft] putting time and effort into changing JavaScript when the DOM is what needs fixing?" https://twitter.com/jeresig/status/124114331616026624

Ironically, improving the DOM is actually something we're trying to do with Dart: http://www.dartlang.org/articles/improving-the-dom/.

Re: TypeScript: a language for application-scale JavaScript development

#219

Earlier quoted context omitted.

I started doing C# development last year, coming from mostly a Unix/Perl platform, and I'm really glad about the timing because that's when Microsoft got serious about open development. I started doing web apps using ASP.NET MVC3, and this year MVC4 was released as an open-source project[1]. It seems that a bunch of 'young turks' have reached higher management positions in most of the key software development product…

Roughly the same story here. At the risk of sounding like a fanboy, I feel that while most tech BigCos (e.g. Google, Apple) have become more evil over time, MS has actually become less evil, to the point that using their tech (and some major tech at that) is relatively free of any lock-in risk. TypeScript seems very much in line with this trend, and I love it. This is exactly what I wanted - JavaScript but with decen…

Trust me when I say that if you use .NET, you're always going to be stuck with Microsoft. Mono, the only other somewhat viable implementation of the CLR, just doesn't really cut it in practice -- at least for ASP.NET.

Re: TypeScript: a language for application-scale JavaScript development

#220

Earlier quoted context omitted.

I have to admit I'm impressed with MS here. Contrast Dart and TS. Dart announced a year ago and they're only now dealing the JS interop issue, so to most people its still only really interesting as a play thing. TS announced and from the looks of if we choose to we can immediately start using it. I know Dart is more ambitious and maybe long term their focus on issues other than interop will be proved to be correct, b…

Google deliberately opened up dart development early. I thing that was a good thing. They could have kept it closed and released it today, it's roughly as mature as type script seems to be. Would you have been happier with that?

> Would you have been happier with that?

Yes. Google (and others) need to stop releasing half-baked products.

You release something half-baked, even if it gets up to speed down the road, people will still have perceptions of it being half-baked. The above exchange is typical.

Post reply on HN