background preloader

JS alternatives

Facebook Twitter

Thoughts on TypeScript. Earlier this week, Microsoft released TypeScript[1], a new compile-to-JavaScript language for “application scale JavaScript.” My initial reaction was confusion: Um, why? Blogs.msdn.com/b/somasegar/ar… (via @izs)— Nicholas C. Zakas (@slicknet) October 1, 2012 It seems like almost every week there’s a new language that’s trying to replace JavaScript on the web. Google received a lukewarm reception when it introduced Dart[2], it’s own idea for fixing all of JavaScript’s perceived flaws. My bias Before talking about TypeScript specifically, I want to explain my personal bias so that you can take the rest of my comments in their proper context. Some would argue that the high demand and low supply puts good JavaScript developers in an awesome position and we should never want to change that.

I see compile-to-JavaScript languages as a barrier to that goal. To be clear, I’m not saying that JavaScript is a perfect language and doesn’t have its warts. What is TypeScript? Additional features. JavaScript Made Everyone Crazy. Nobody seems to be happy, nobody seems to understand it ... everyone is trying to change it, pretending to make it better ... and again, nobody seems to realize it has been here since ever, it has been working in any field, it does everything, and it keeps getting faster! One Scripting To Rule Them All As simple as that: Dart compiles into JavaScript so does Java, CoffeeScript, C, C++ and any LLVM compatible/compilable language via Emscripten ... and now TypeScript too ... how cool is that? As tweeted before, if every programming language can be basically translated into JavaScript which is already an extremely high level scripting language, don't ya think that maybe is not exactly JavaScript the problem ? Don't ya think maybe it's time to learn it rather than keep moaning about it ?

Hasn't this language already demonstrated to be one of the most malleable, powerful, adaptable, reusable, recyclable, expressive out there ? So why everyone is trying to pretend this language is not good? CoffeeScript. CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way. The golden rule of CoffeeScript is: “It’s just JavaScript”. The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime.

You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The CoffeeScript compiler goes to great lengths to generate output JavaScript that runs in every JavaScript runtime, but there are exceptions. Latest Version: 1.12.5 npm install -g coffee-script CoffeeScript 2 is coming! Overview CoffeeScript on the left, compiled JavaScript output on the right. run: cubes Installation The command-line version of coffee is available as a Node.js utility. To install, first make sure you have a working copy of the latest stable version of Node.js. Npm install --global coffee-script Usage. CoffeeScript. The language has a relatively large following[citation needed] in the Ruby community. CoffeeScript support is included in Ruby on Rails version 3.1.[8] In 2011, Brendan Eich referenced CoffeeScript as an influence on his thoughts about the future of JavaScript.[9][10] History[edit] On December 24, 2010, Ashkenas announced the release of stable 1.0.0 to Hacker News, the site where the project was announced for the first time.[12][13] Syntax[edit] Almost everything is an expression in CoffeeScript, for example if, switch and for expressions (which have no return value in JavaScript) return a value.

As in Perl, these control statements also have postfix versions; for example, if can also be written after the conditional statement. Many unnecessary parentheses and braces can be omitted; for example, blocks of code can be denoted by indentation instead of braces, function calls are implicit, and object literals are often detected automatically. Examples[edit] Tests and comprehensions[edit] or Or.

Welcome to TypeScript. Microsoft Ajax Content Delivery Network - ASP.NET Ajax Library. The Microsoft Ajax Content Delivery Network (CDN) hosts popular third party JavaScript libraries such as jQuery and enables you to easily add them to your Web applications. For example, you can start using jQuery which is hosted on this CDN simply by adding a <script> tag to your page that points to ajax.aspnetcdn.com. By taking advantage of the CDN, you can significantly improve the performance of your Ajax applications.

The contents of the CDN are cached on servers located around the world. In addition, the CDN enables browsers to reuse cached third party JavaScript files for web sites that are located in different domains. The CDN supports SSL (HTTPS) in case you need to serve a web page using the Secure Sockets Layer. The CDN hosts the following third party script libraries which have been uploaded, and are licensed to you, by the owners of those libraries: The CDN used to use the microsoft.com domain name and has been changed to use the aspnetcdn.com domain name.

<! <! TypeScript. TypeScript is a strict superset of JavaScript, so any existing JavaScript programs are also valid TypeScript programs. TypeScript is designed for development of large applications and compiles down to JavaScript.[5] TypeScript supports header files which can contain type information of existing JavaScript libraries, enabling other programs to use objects defined in the header files as if they were strongly typed TypeScript objects. There are third-party header files for popular libraries like jQuery, MongoDB, Node.js, and D3.js.[6] Background[edit] TypeScript originates from the need to develop large-scale JavaScript applications. Internally at Microsoft the challenges with dealing with complex JavaScript code led to demand for custom tooling to ease the writing of components in the language.[8] Microsoft has stated that they did not have the intention of making something that could break compatibility with the standard and its cross-platform support.

Language features[edit] Classes[edit] Introducing TypeScript: A language for application-scale JavaScript development | Build 2012. TypeScript - Source Code. Visual Studio Ultimate 2012 - Microsoft Visual Studio | MSDN | Microsoft Visual Studio. Visual Studio Ultimate avec MSDN représente la meilleure des offres de Visual Studio. Créé pour un développement en entreprise, Visual Studio Ultimate avec MSDN aide votre équipe à répondre à des exigences élevées de haute disponibilité, performance, montée en charge et complexité. Il fournit des outils avancés et tous les logiciels, services et ressources dont vous avez besoin pour être productifs et développer des applications de qualité supérieure. Principales fonctionnalités IDE Visual Studio Online Il n'existe aucune limite quant au nombre d'utilisateurs Ultimate que vous pouvez ajouter à votre compte Visual Studio Online.

Si vous ne possédez pas de compte Visual Studio Online, vous pouvez en créer un et avoir ainsi accès aux fonctionnalités d'entreprise telles que la gestion de portefeuille Agile, la gestion de cas de test Web, les salles de conférence et le test de charge pour le cloud. Avantages MSDN Fonctionnalités Visualiser la structure d'une application avec des diagrammes UML. Dart: Structured web apps. Dart Editor. An open-source tool for editing, debugging, and running Dart applications. Installing Dart Editor Download Dart Editor, if you haven't already. Dart Editor requires the Java runtime. Download the JRE, if needed. Configuring Dart Editor Want to use the command-line tools, as well? The default version of Dart Editor is the stable build.

Updating Dart Editor can automatically update itself, along with the SDK and Dartium, whenever a new integration build is available. If you'd rather choose when to update, make sure Download updates automatically is not selected. Using Dart Editor To get started with Dart Editor, read these: Get Started (the first tutorial in the Dart Tutorials) Gently introduces you to Dart Editor, from downloading it to creating and running apps. For details on using Dart Editor, read this: Dart Editor (a section from Chapter 4 of Dart Up and Running) Teaches how to use Dart Editor — for example, how to set up launches for different browsers. Features Code completion Refactoring. Dart - Dart - Structured Web Programming. Welcome to Dart, the structured web programming platform. Dart is a new web programming language with libraries, a virtual machine, and tools. Dart helps developers build structured modern web apps, and it compiles to JavaScript to run across the entire modern web.

Just want to use Dart? Go to the main Dart site: www.dartlang.org Dart is open source, so you can download the binaries, get the source and file feature requests and bugs. We look forward to your feedback! GettingTheSource - dart - How to see, download, and build the Dart source code - Dart - Structured Web Programming. This page tells you how to get and build the Dart source code. You can also browse the repository or list the changes. If your machine is already set up to build Chromium, then you should have all the prerequisites for building Dart. Otherwise prepare your machine according to these instructions: PreparingYourMachine. For all instructions below, use https instead of http, and be sure you are using branches/bleeding_edge or use the instructions from the Contributing wiki page. Create a directory into which you want to checkout the Dart sources and change into that directory. Be sure to install the prereqs by following PreparingYourMachine Using Subversion One time setup: gclient config From within your source checkout run this command to update to the latest sources: gclient sync For committers If you're a member of the Dart project you can get a writable version over HTTPS: This requires your generated googlecode.com password.

Dart (programming language) Programming language History[edit] Specification[edit] Deploying apps[edit] Developers can deploy Dart apps in six ways: Deploying to the web[edit] JavaScript[edit] Prior to Dart 2.18, both dart2js and dartdevc could be called from the command line. The Dart SDK compiles to JavaScript in two ways. To debug code, run webdev serve to compile a larger JavaScript file with human-readable code. . $ cd <dart_app_directory> $ webdev serve [--debug] [-o <target.js>] To create production apps, run webdev build to compile a minified JavaScript file. $ cd <dart_app_directory> $ webdev build [-o <target.js>] WebAssembly[edit] Deploying to native platforms[edit] Self-contained executable[edit] Self-contained executables include native machine code compiled from the specified Dart code file, its dependencies, and a small Dart runtime.

. $ dart compile exe <source.dart> -o <target_app> Generated: <target_app> $ . Ahead-of-time module[edit] Just-in-time module[edit] Dart kernel module[edit] Concurrency[edit] Full snapshots.