Earlier quoted context omitted.
I think you were referring to the JavaScript syntax when you said JavaScript is full of flaws, because IMHO the language itself - except the syntax component - is actually very good. Someone on Quora said[1] it very well: JavaScript is a wonderful language, deep down: It's Lisp-y, yet imperative. Its lack of support for threads has turned out to be a strength on the server side. And recent implementations have made i…
The language itself is broken, especially when it comes to equality, type coercion, `arguments`, and Date processing.
TypeScript: a language for application-scale JavaScript development
251–260 of 316 posts
Re: TypeScript: a language for application-scale JavaScript development
#252Earlier 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?
Re: TypeScript: a language for application-scale JavaScript development
#253Earlier 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…
Comparing JS interop in Dart and TypeScript is apples and oranges. Dart has a native virtual machine with its own garbage collector and object representation. The language itself has an entirely different object model and set of collection types. For better or worse, even Dart's number types are different from JS. Doing JS interop in Dart is like trying to do interop between the JVM and CLR. TypeScript doesn't have J…
I do understand what you are saying, had read similiar on Dart forum in past. Just to be dear I am not in any way saying I think the interop would have been easy, I do think without it Dart was a dead end for most people. It will be interesting to see how things proceed, whether the interop story that is now available lets Dart finally take off a bit in terms of usage and mindshare.
Re: TypeScript: a language for application-scale JavaScript development
#254Don't do this. Microsoft doesn't matter anymore.
Re: TypeScript: a language for application-scale JavaScript development
#255Earlier 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…
I don't think Microsoft tech has ever favored clarity...it's usually too java-esqe ivory-tower architeched enterprisey for my tastes. MVC is like that too, but the worst bits seem to be the ones inherited from ASP.NET. The new stuff is somewhat better, and you can now at least go look at the code to figure out how it works.
Re: TypeScript: a language for application-scale JavaScript development
#256Earlier quoted context omitted.
No, we have not. Read John Carmack's posts on static code analysis to understand why.
I've been writing large-scale JS applications with SproutCore since 2007, and not once have I been bitten by a bug that would have been caught by static typing. Same with Objective-C and my iOS and Cocoa development (since the OpenStep days). I do use Scala on the server side though, and it helps there. But application development is, IMO, hindered by static typing. It's a lot more work to set up, and provides essent…
Common things such as access an undefined variable or property or trying to call a method of a null object would be detected by most static type checking algorithms.
Re: TypeScript: a language for application-scale JavaScript development
#257Back in the day, Microsoft would use a strategy called "embrace, extend, extinguish." http://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish Recently, Microsoft has been pushing Javascript very hard (embrace) and now it looks like they've started the "extend" phase. Luckily, no one really worries about them being able to pull off the "extinguish" part anymore... they just don't have enough market power these day…
Except that this is fully open source, which makes it a little difficult for MS to retain control over it, no? Re-reading late 90s M$ memes gets old after a time.
Re: TypeScript: a language for application-scale JavaScript development
#258Earlier quoted context omitted.
What are the problems with Javascript you speak of? The libraries hiding you from terrible bits, at least the ones I use, have to do with the DOM and not with Javascript.
Variable scoping, unavoidable global namespace pollution, === vs == insanity, etc.
Re: TypeScript: a language for application-scale JavaScript development
#259Earlier quoted context omitted.
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.
Re: TypeScript: a language for application-scale JavaScript development
#260Earlier quoted context omitted.
What are the problems with Javascript you speak of? The libraries hiding you from terrible bits, at least the ones I use, have to do with the DOM and not with Javascript.
Variable scoping, unavoidable global namespace pollution, === vs == insanity, etc.
http://elegantcode.com/2011/03/24/basic-javascript-part-12-f...