Correctly detecting Windows Phone when sniffing user agent string

With the emergence of smartphones, we saw the rise of applications store. And if you have both a mobile application and a web site, this could be really interesting for you to suggest to your users to install the mobile application when they browse your web site. But life is more complex than that because…


JavaScript: Returning this or not returning this, this is the question!

You want to discuss about this article? Ping me on Twitter! While designing Babylon.js API, I recently found that some API may required to be more fluent. A fluent API as stated by this Wikipedia article is an implementation of an object oriented API that aims to provide for more readable code. jQuery for instance…


Simple inheritance with JavaScript

A lot of my friends are C# or C++ developers. They are used to use inheritance in their projects and when they want to learn or discover JavaScript, one of the first question they ask is: “But how can I do inheritance with JavaScript?”. Actually, JavaScript uses a different approach than C# or C++ to…


JavaScript: using closure space to create real private members

For a recent project, I was discussing with @johnshew about the way JavaScript developers can embed private members into an object. My technique for this specific case is to use what I call “closure space”. But before diving into it, let me present you why you may need private member and also the other way…


Why I love debugging my website with IE F12 tools

We recently released Internet Explorer Developer Channel, a fully functioning browser designed to give Web developers and early adopters a sneak peek at the Web platform features we’re working on. You can grab it here alongside useful information about IE roadmap. As a web developer, I spend a lot of time using F12 tools to…


Why we decided to move from plain JavaScript to TypeScript for Babylon.js

One year ago when we decided to sacrifice all of our spare time to create Babylon.js we had a really interesting discussion about using TypeScript as main development language. At that time, TypeScript was not robust enough (even if we did some experiments) so we decided to use plain JavaScript language. But I am really…


What do you mean by shaders? Learn how to create shaders with babylon.js

You may have noticed that we talked a lot about babylon.js during //Build 2014. If you do not, you can see the keynote for day 2 here and go directly to 2:24-2:28: http://channel9.msdn.com/Events/Build/2014/KEY02 Steven Guggenheimer and John Shewchuk demoed how the Oculus Rift support was added to Babylon.js. And one of the key thing for…


Next Game Frontier: The first event around web gaming

I am glad to announce that Microsoft and Samsung will organize the first technical conference purely dedicated to Web Gaming: www.nextgamefrontier.com It will take place in Paris on March 13th, 2014. Places are limited so be sure to register today! We prepared a huge amount of technical sessions for you with great international speakers: 9:30am…