News

TypeScript Handbook Revamped as Primary Learning Resource

Microsoft announced a rewrite of its TypeScript Handbook, used as the primary learning resource in the company's home site for its popular, open source programming language that is a superset of JavaScript, introducing the capability to use static types.

Or, for an "official" description of what TypeScript is all about, one can consult the new handbook: "The goal of TypeScript is to be a static typechecker for JavaScript programs - in other words, a tool that runs before your code runs (static) and ensures that the types of the program are correct (typechecked)."

That capability has vaulted the eight-year-old language to the upper pantheon of some indices that track programming language popularity, including this latest ranking from RedMonk.

The latest release, TypeScript 4.2, just shipped last month, with the dev team noting that going forward from there, planned improvements included switching to new handbook.

Several days ago, that was announced with team engineer Orta Therox saying, "In the last year, the TypeScript team has heavily focused on ramping up the scale, modernity and scope of our documentation. One of the most critical sections of our documentation is the handbook, a guided tour through the sort of TypeScript code you'll see in most codebases. We want the handbook to feel like the first recommendation you give for learning TypeScript."

TypeScript Handbook
[Click on image for larger view.] TypeScript Handbook (source: Microsoft).

The handbook is accessed from the main TypeScript web site in the docs section, where it's described as "A great first read for your daily TS work."

It's structured so developers can go from start to finish in a few hours by following a left-side navigation pane, after which they should be able to:

  • Read and understand commonly-used TypeScript syntax and patterns
  • Explain the effects of important compiler options
  • Correctly predict type system behavior in most cases

The team took a new approach in the rewrite with some constraints that added more focus and resulted in a more approachable product, Therox said, listing these guidelines followed by the team:

  • Leave teaching JavaScript to the experts
  • Teach incrementally
  • Let the compiler do the talking
  • Write for the everyday cases

The handbook is presented in several formats: Web / Epub / PDF. Any issues can be reported here.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube