Coffeehouse Thread

113 posts

TypeScript is JavaScript...

Back to Forum: Coffeehouse
  • User profile image
    vesuvius

    I know some 9ers never attend anywhere but for the forum so link is here.

  • User profile image
    magicalclick

    how do I test out the result on my IE or other browsers? I mean, is it hard to read the compiled code?

    Leaving WM on 5/2018 if no apps, no dedicated billboards where I drive, no Store name.
    Last modified
  • User profile image
    exoteric

    The compiled code is very easy to read. After all, TypeScript is a Javascript feature superset. So it's not the end of anything but another path to Javascript. Go watch the video!

  • User profile image
    Bass

    It has been done before and arguably better. We've been using CoffeeScript for some time, it's a good example of a language that improves JavaScript significantly while not being some kind of totally different idea or doing silly things like adding static typing.

  • User profile image
    TexasToast

    @Bass:Yeah but it is not supported by a big powerhouse software company.

  • User profile image
    contextfree`

    It has been done before and arguably better. We've been using CoffeeScript for some time, it's a good example of a language that improves JavaScript significantly while not being some kind of totally different idea or doing silly things like adding static typing.

    The whole point of this is to add static typing to JavaScript. Whether you think that's a good idea or not, a language that doesn't do that isn't doing "it", better or otherwise.

  • User profile image
    Bass

    @contextfree`:

    Nope.

    @TexasToast:

    Doesn't really matter.

  • User profile image
    magicalclick

    @exoteric:

    Just watched the video. Looks promising. With enough tutorial and community support, I will totally jump on it.

    Didn't see watch it clearly, but, how do I mix and match JavaScript? I mean, if I didn't include the declaration file, can I still use it? So, what is going to happen when I use TypeScript to a method that takes ANY and return ANY?

    One scenario is that I want to have a strange method that can basically works for ANY. Like perhaps adding new attribute to ANY type? I don't know if this is possible in JS yet, but, I remember a bit that this can be done.

    Leaving WM on 5/2018 if no apps, no dedicated billboards where I drive, no Store name.
    Last modified
  • User profile image
    Bas

    , Bass wrote

    It has been done before and arguably better. We've been using CoffeeScript for some time, it's a good example of a language that improves JavaScript significantly while not being some kind of totally different idea or doing silly things like adding static typing.

     

    This makes no sense. "X has been done before except while not doing X."

  • User profile image
    Charles

    The end of this thread?

    TypeScript is JavaScript...

    C

  • User profile image
    TexasToast

    How about JavaScript is finally Dead.   Long live TypeScript!

  • User profile image
    felix9

    Ha, maybe it should be called TurboJavaScript Big Smile

  • User profile image
    Dr Herbie

    So I would describe TypeScript as a Decorator for JavaScript; wrapping it and adding additional features. Seems like a pragmatic approach to make the most of the current technology without expecting everyone to adopt a new standard.

    Herbie

     

  • User profile image
    exoteric

    , Charles wrote

    The end of this thread?

    TypeScript is JavaScript...

    C

    It's a signature of Coffeehouse to have misleading thread titles for dramatic effect, annoying as it can be Smiley

  • User profile image
    fanbaby

    First I see this as a good thing. a) It's open source, how can that be bad?, b) Already I see some die hard Microsoft fanbois (yes, there are some of those left Smiley) who swore they wouldn't  touch JS with a 10 meters pole hailing this as the thing which saved JS. Good for you. Please use this.

    I have said before on the IE blog, "Microsoft was brought into HTML5 screaming and kicking", after a long detour into Silverlight. So now I say: Microsoft came into open source screaming and kicking, but came it did. Welcome (not that I am a great OS contributor, or any contributor).

    I'm just curious what's Anders, or Microsoft, take on releasing dotnet on the same terms, or when he came to realize that open source was any good. (I'm not saying that all the great guys who contribute to open source were like that for their entire professional life, but still, it seems Microsoft were last, please close the door after you Wink)

    EDIT: And for that matter, and i'm sure Andres isn't reading this, but what's your take on Microsoft calming Linux infringes on 287 or so of their patents??

  • User profile image
    Sven Groot

    @fanbaby: This is hardly the first open source project MS has done. Parts of .Net's web stack, like ASP.NET MVC, have been open source for a while now.

  • User profile image
    vesuvius

    @fanbaby: .NET 4.5 source code is available http://blogs.msdn.com/b/dotnet/archive/2012/08/15/announcing-the-release-of-net-framework-4-5-rtm-product-and-source-code.aspx

    It isn't open source, but it is fantastic to be able to debug

  • User profile image
    fanbaby

    Just to add to my post, open source is great isn't it? We live in a great time. OS is the great equalizer. How else can a single guy create something, say jQuery or CoffeeScript, which decimates other work by large teams, whether open or close.

    So today Microsoft added yet ANOTHER transpiler. Great. News at 9. You see, in this new world, the fact that it's Microsoft, or Google, or Apple or anyone, means nothing.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.