Articles pour le mot-clé ‘framework’


Sencha - Ext JS is now SenchaQue fût ma surprise la semaine dernière en apprenant que 2 de mes projets HTML5 préférés, jQtouch, un framework javascript pour créer des applications web iPhone et, Raphael, un outil de dessin très puissant basé sur des technologies HTML5, avaient été acheté par Sencha (créateur de Ext JS).

Malheureusement cette acquisition causa plusieurs inquiétudes dans la communauté. En effet, Ext JS, une ‘branche’ de YUI (framework js pour créer des applications), était à la base complètement open source, puis un beau jour, la licence changea et le projet est devenu commercial. Pour utilisé Ext JS dans un projet dit ‘payant’ on devait maintenant acheter une licence. Qu’allait-il donc devenir de deux de mes projets préférés?

Heureusement Sencha a vite calmé le jeu, jQtouch et Raphael resteront sous la licence MIT. Même mieux, Sencha a mis à temps plein au moins 1 personne sur chaque projet, des projets qui étaient au départ personnels devenaient donc un travail à temps plein, parfait! Une chose ne faisait par contre aucune sens. Raphael je peux comprendre que la technologie sois gratuite et qu’elle aura un très grand rapport avec EXT JS, mais jQtouch, qu’avait-il a gagner à le laisser open source? Acheter un framework d’application iPhone et n’engendrer aucun revenu dessus ne faisait aucun sens.

Sencha introduit Sencha Touch

La réponse est venu 2 jours plus tard, Le créateur de jQtouch travaillait en secret sur un autre framework d’application web mobile. Sencha Touch, déjà disponible en béta, est un framework complet, compatible avec Iphone, Android, Ipad et autres tablettes, et bien sûr, il sera payant pour les projets commerciaux.

HTML5

Sencha Touch est très impressionnant, on voit que Sencha a mis tous les efforts possibles pour créer le framework mobile de l’avenir. Beaucoup plus complet que jQtouch celui-ci se positionne comme le framework des professionnels, tandis que jQtouch, restera pour les applications simples, et n’aura pas de version iPad.

Quoi qui l’en soit, ça brasse du coté HTML5. Petite note de bas de page, Microsoft a sortit un nouveau ‘preview’ de IE9, les tags vidéo, audio, et même canvas ont été implémentés, bien des personnes avaient peine à croire qu’un tel évènement se produirait. Ses technologies sont des compétiteurs directes avec sa technologie propriétaire, Silverlight (quoi que maintenant il semble plus se positionner pour les intranets).

  • Twitter
  • Facebook

Imagine your at the supermarket, you wonder what you will be eating next week. You pop up your iphone,  look at your favorite recipe list directly from your favorite recipe website. You decided what recipe you will do, you look at the ingredients,  check ingredients you don’t have,  it automatically add them to your grocery list. Popup your grocery list, off you go find what you need for the week. What if you could even do this offline like a real app from your ipod touch?

No this is not a application from the Itunes Appstore, what I am talking about is a mobile web application that could work on Iphone, Ipod touch, Palm Pre, and all Droid phone.

There is a new kid in town

If you own a mac you are probably familiar with the web browser Safari, well the Safari gut called Webkit is what is powering all the devices up there I am talking about, even blackberry is working on a browser based on webkit. What so special about webkit? Well it’s cutting edge technology. They implemented every animation you could have in a real application directly in the web browser using CSS3 and it have most features HTML5 will bring in the future, today. Most notably offline website and databases directly in the browser.

With all these devices, you get the big pie of the mobile web browsing, and you get a very good browser to work with. These was neither the case before. You had Windows mobile which use IE 5.5 rendering engine (ouch!), the nokia, backberrie browsers which was actually worse and opera mobile, which is actually pretty good, but do not have a big pie as smartphone goes.

Showtime is using jQTouch for its mobile website, you can save favorite shows and get your weekly schedule

Meet jQTouch and Pastrykit, mobille frameworks

On top of that, we get mobile frameworks popping up to ease the web application development. jQTouch is based on the jQuery javascript framework. To have used it before, it’s a pretty good  rapid development kit for mobile website. You can create basic website with lists and articles in a couple of hours and really feel like a mobile app. Pastrykit is the unofficial framework used by apple. It’s not officillaly released but some developers took the time to open the API to everyone.

An uncomfortable situation

As you can see, pretty much every giant step we took on the mobile web is based on the fact that Webkit is king of the mobile platform. What if the Firefox mobile would come to dethrone Webkit? Well that would be pretty bad for website based on webkit out here, most mobile framework are based only and directly on Webkit. But this is really not the trend right now, with blackberry soon switching to webkit and Google android phone becoming more and more popular (HTC, Samsung and others are developing phone on it), Webkit mobile seems to have at least some great years ahead.

smartmobile The mobile web democratization is coming
Stats from Admob Metric

  • Twitter
  • Facebook

Ask web developers what they hate most about web technologies, chances are they will say javascript, and for some parts, they are right to do so. But to understand why Javascript is so much hated we need to go back in time. In the early years of Netscape, in 1995.

In the nineties, Netscape was flourishing with between 50% and 80% of the browsers’ market and was in a intense combat with Internet Explorer. A guy at Netscape, named Brendan Eich, was given a difficult task of creating a language to make Netscape interacting more dynamically with websites. And of course they wanted this language the day before they asked it . In the time Brendan had, he did the most he could, and created a versatile language that even script kids could pick up, Javascript, he also created the DOM (Document Object Model) on top of Javascript. Now the difference between Javascript and the DOM is simple. Javascript is the basic language you use to make sentence. But the DOM is what is understanding this sentence and makes it interact with the document the way you asked it.

Microsoft was not going to let that happen

Microsoft was certainly not going to let Netscape have « Javascript » and not them, they decided to reverse engineer and implement it in Internet Explorer. Now problems began. They, very unfortunately, did not do a very good job at this implementation. Which means that for doing one simple operation on Netscape and Internet explorer, you had to code 2 implementation for both of them, because the DOM was not understanding the same sentence for both. In fact javascript, the programming language is mostly fine, the biggest problem is the DOM API, some words means nothing to IE and some other means nothing to Firefox. This is what drives web developers crazy. You have to write code specifically to some browsers because they do not follow standards, you have no choice, Internet Explorer represent 67% of your user base, you have to do an implementation for them.

javascript Javascript, the most misunderstood coding language

You need to understand that this happened in 1995. The web did not had the same needs than today. Now web applications are vastly more complex. Some people had to step up and create cross browser API’s to deal with the DOM, and they did. Which means now you write one line, and some API dispatch the good implementation to each browser. This has make the life of web developers much easier.

There is currently 3 major « all round » Javascript libraries, jQuery, Mootools and Prototype

At w.illi.am, we decided to use the jQuery framework, which is now endorsed by a lot of major players, like Microsoft. Not only this is the most use Javascript framework in the world, this is the one we found the most powerful. Writing Javascript with jQuery enabled us to create more powerful web site than ever before and this tool is one of many that make us confident that we are ready for the future of the web.

  • Twitter
  • Facebook