找回密码
 FreeOZ用户注册
查看: 2775|回复: 1
打印 上一主题 下一主题

[软件技巧] Microsoft releases JavaScript alternative - TypedScript

[复制链接]
跳转到指定楼层
1#
发表于 4-10-2012 18:05:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册

x
Microsoft has released a new JavaScript development environment, dubbed TypeScript, and says it is designed to help developers write more complex apps with the popular scripting language.

Long-time Reg readers may recall that Microsoft has form giving the world new technologies, but not always for altruistic reasons. During its epic antitrust battle with the US Department of Justice, Microsoft's in-house use of the terms “embrace and extend” or “embrace and smother” came to light to describe the practice of releasing non-standard products, among them software development tools, then using Microsoft's market share to none-too-gently steer the industry towards buying those products to the detriment of competitors.

That strategy seems not to be in play this time, as TypeScript is free, open source and compiles into garden-variety JavaScript that Microsoft has taken pains to state repeatedly will run on any browser, host or operating system.

TypeScript is also being pitched as a developer's saviour, as by extending JavaScript developers will have more and more potent tools to build the kind of large-scale apps being built around HTML 5 in the browser and on mobile devices. Apps destined for the Windows 8 store are also cited as worthy of the more robust environment TypeScript is said to afford.

In a video posted to introduce the language (and embedded below), Microsoft Technical Fellow Anders Hejlsberg argues that TypeScript is needed because JavaScript was never intended for the roles it has found itself serving today and lacks many of the structures developers find useful in other languages. TypeScript is designed to add those extra bits, with static typing and classes at the top of Hejlsberg's list of developer desirables.

Existing JavaScript code and libraries work in TypeScript, and Microsoft has arranged TypeScript support for Emacs, Vim and Sublime Text. A TypeScript editor plugin for Visual Studio 2012 has also been released. Code samples are already available, too.

Initial response to TypeScript has tended towards the positive. While a few narky comments have appeared on Microsoft's announcement post, Twitter sentiment seems broadly happy about the new language. Your own opinions can, of course, be recorded below. ®
回复  

使用道具 举报

2#
 楼主| 发表于 4-10-2012 18:07:30 | 只看该作者
I cannot see which technology we shall invest, especially those from Microsoft. Learning is a pain, but there's more pain to find out the learning is in vain.

评分

参与人数 1威望 +50 收起 理由
shenlh + 50 我很赞同!

查看全部评分

回复  

使用道具 举报

您需要登录后才可以回帖 登录 | FreeOZ用户注册

本版积分规则

小黑屋|手机版|Archiver|FreeOZ论坛

GMT+11, 31-12-2024 02:55 , Processed in 0.032117 second(s), 21 queries , Gzip On, Redis On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表