npm Tag

Gone are the days of single vendor lock-in, where one technology stack is used across an entire organization. Even small organizations and hobbyists will find themselves mixing technologies in a single project. For years, Java reigned king on the server. Today Node.js is everywhere. But even with the rise of Node.js and popularity of JavaScript, Java continues to shine. Furthermore, few organizations can afford to migrate...

Read More

With popular frameworks like Angular 2 now recommending its use by default, TypeScript continues its rise in popularity. Reception is usually very positive with both veteran JavaScript developers and those coming from a Java or C# background. We have mentioned before how TypeScript can be used to enhance your Tabris.js development. Since then, a lot has changed. With Tabris.js 1.8, getting started with TypeScript and...

Read More

The latest version of JavaScript (ES2015, or commonly called ES6) is packed with modern features, including classes, lambda expressions (“arrow functions”), block scoping, template strings, and much more. Using a transpiler like Babel, you can use these features in your Tabris.js app today. Quick Start The fastest way to a working ES6 project setup is to generate it. Just install Yeoman, a popular project generator for JavaScript,...

Read More

The dynamic typing in JavaScript allows for more flexibility, but it comes at the price of weaker tool support. Explicit type definitions in your code can support editors to provide more exact suggestions as you type … … and to discover problems earlier … TypeScript is a superset of JavaScript that adds type information to the language. It is compiled to regular JavaScript, so it can be...

Read More

The built-in, node compatible module system of Tabris.js makes it pretty easy to find and load JavaScript files within your project. NPM modules aside, all paths are relative. So even if your current module is "subProject/modules/dialogs/foo.js", you can open "subProject/modules/dialogs/bar.js" simply by calling "require("./bar");" However, aside from .js files, your Tabris.js project may also consist of images, json, xml and/or text files that you need to access. JSON is...

Read More

On April 30th Tabris.js 1.0 was released. Tabris.js is a mobile framework which enables developers to write cross-platform, native, mobile applications entirely in JavaScript. To celebrate the release, I'm counting down my Top 10 Tabris.js features. As soon as a project scales larger than a Hello, World! program, project structure becomes important. Creating boundaries between components, defining APIs and decoupling unrelated pieces all make for a more cleaner,...

Read More

One of the things we live at EclipseSource is efficiency. This is true for IDE usage, code and development lifecycles. This is why we made the Tabris.js development lifecycle as fast as possible with the Tabris.js 0.9.3 release. The mission for this release was that we wanted to enable you to: Build your own branded app, without owning build hardware. Be able to develop JavaScript apps...

Read More

Tabris.js is a new framework to develop mobile apps in JavaScript. For a general introduction, check out this post: Native Mobile Apps in JavaScript with Tabris.js. Tabris.js 0.9.1 is out now. We've also published a compatible version of the Tabris.js Developer App, which lets you test your scripts directly on your iOS or Android device. With 0.9.1, Tabris.js becomes a regular npm module. You will load...

Read More

Tabris.js implements a module system as outlined by Common.js and supported by npm. Modules are a great way to organize your application code into isolated units. Unlike conventional scripts they keep the global namespace clean and are automatically loaded in the right order. Script modules The most common way to create a module is to use a single JavaScript file. There are some important differences to conventional...

Read More

Most Java developers stick up their nose if it comes to JavaScript. Today I would like to present you a way of dealing with JavaScript that is less alienating than learning prototype based inheritance and all the caveats about this. How does a JavaScript with class based inheritance, types, generics and modules sound? Let me introduce TypeScript to you. TypeScript syntax is a superset of Ecmascript 5...

Read More