Late October 2013 Twitter added a feature that automatically expands tweets that contains images or video. Remember that Twitter will (supposedly) makes its initial public offering this week. It's with no doubt a way to introduce ads or promoted tweet images and video to their users and future share holders.
This said, as Twitter user, I find it to remove a lot of information from my timeline when having tweets text replaced by any media content. With the following, we easily can understand that we can have two tweets where one image stands up in place.
For the rest, I was lost at least one hour or two before starting the work because of lack of any existing documentation, but using stackoverflow.com and examples from the official TypeScript website, I quickly found all I needed to start with this new language.
Port to PureMVC
As a result of this work I produced three PureMVC TypeScript repositories:
The PureMVC EmployeeAdmin demo can of course also be tested live.
Update: Cliff Hall made the official announce for it on the PureMVC website.
I started this project last year when jQuery Mobile was still in alpha stage. The first version of Employee Admin demo I made with alpha version of jQuery Mobile was interesting but not fully functional. I so have waited near a year to work on it again. Now that jQueryMobile is final and even passed version 1.0.1 few days ago it was worth it to try to finish the project completely. As recalled for my recent Employee Admin demo for jQuery (call it desktop so) that demo does not use a port of the PureMVC framework for jQuery Mobile. It is not necessary. The two are compatible but independent one from the other.
For those who do not yet know much how jQuery Mobile works, it is loaded in addition to the jQuery framework on a mobile HTML page. The library, once loaded render the HTML page (with some minor jQuery Mobile specific additions) to make it identical to any native mobile application. The framework supports a maximum mobile platforms.
All pages of a jQuery Mobile application must be hosted on a single HTML page. This is the so called jQuery Mobile multi-page template. Using address bar anchors, the framework is responsible to navigate between different pages of the application without changing the root HTML page hosting the application. For the demonstration I chose to only have two pages. One to manage the list of users, one to manage the form to enter data related to each user. In this demo, there is no dedicated page to manage user roles, it would have been ridiculous to make navigation so complex only to have a page hosting a panel when it can be made with a simple multiple select box.
More and more people ask me to finish the job I started in 2011 on the PureMVC Employee Admin demo for jQuery. So I recently took the time to finish it completely.
The project uses:
Before continuing note that using PureMVC Standard or PureMVC JS Native Port (Cliff spoke recently on Twitter ) instead of Objs would be really easy. It is only syntactic sugar. The libraries used, the architecture, implementation choices will be kept the same.
Also note that this project does not depend on any specific PureMVC for jQuery framework, here jQuery only provides the UI layer, PureMVC and UI layers always stands to be two distincts entities. I found this port illustrate this perfectly.
I recently completely refactored the Objs library to make a 2.0 version of it. I also moved its source from Google code to Github.
The current library is focused on simplicity:
- It is only 711 Bytes
- Objs is itself a Function object and the only public method of its API
- Support namespaces
- Support inheritance
- Shortcut to superclass in their subclasses
Simple but powerful. It has been unit-tested and demonstrated to work perfectly on big applications having more than 300 Objs classes.
Project home: Objs on Github
Documentation: Objs wiki on Github
But this is not only a personal challenge. Now that we have an agnostic Unit Test Suite and an agnostic PureMVC port, we can easily create applications using jQuery as User Interface (I mean avoiding any UI components compatibility with others libraries). And what I really wanted to create was a PureMVC EmployeeAdmin for jQueryMobile as few applications already exists for and I need to learn how to use it. I'm already working on it and I think to be able to release it for the next week-end.
Next step will be to create a PureMVC EmployeeAdmin Demo with this standard port using jQuery UI (the standard jQuery version, so not the mobile one). My hope is that it will help in creating future Employee Admin port to other frameworks.
I will port PureMVC Employee Admin or BoxSplash demo in a later blog post I assume that this part will be valuable for PureMVC developers only, but for the moment I prefer to describe which Unit Test framework I used and how I implemented it to test PureMVC.
All source code, libraries and documentation are available on the homepage of the port of the PureMVC website. You can even play with a live demo.
As I have never taken the time to post the news on my own blog to highlight it, you'll have some details here.
En travaillant avec Flash en Actionscript 2, j'ai pris l'habitude d'utiliser des fichiers de classes uniques présentées hiérarchiquement dans une arborescence de dossiers. On utilise chaque classe à partir d'une autre en utilisant la directive *import*. Ce système est trés répandu dans les langages de programmation orientés objet (Actionscript, C#, Java etc...).