XML

Firefox OS to be built in HTML5

Tuesday, July 17th, 2012 | Business | No Comments

MozillaTechWeek europe posted today, Mozilla Wants Hundreds of Thousands of Firefox OS Developers.

The new Firefox OS will be built around Gecko, the engine behind Firefox.

According to the article, 75% of “apps” (I hate that term) are already written in HTML5, which is entirely likely.  Given the cross platform nature of HTML5 many of those “instant iOS” apps will have no problem migrating to the Firefox OS.

From the article:

The Mozilla Foundation has just renamed the project Boot to Gecko “Firefox OS”. But can we really talk about an operating system?
Absolutely. In terms of architecture, it is an operating system based on Linux, just as Android is. But we rely on Gecko, the Firefox web browser layout engine, to run applications written entirely in HTML5. We dropped XUL (the XML User Interface Language) in favour of HTML5, a language known to all web developers.

› Continue reading

Tags: , , , , , ,

JSON is just easier to use than XML

Thursday, June 23rd, 2011 | Business | No Comments

Saw a post at mongolab about JSON, Why is JSON so popular?  Developers want out of the syntax business.

He’s right, JSON is popular not just because it’s “more efficient” at transferring data, but it’s easier to manipulate and use.

An excerpt:

There is a reason why JSON is becoming very popular as a data exchange format (more important than it being less verbose than XML): programmers are sick of writing parsers! But “wait”, you say – “surely there are XML parsers available for you to use so that you don’t have to roll your own…”. Yes, there are. But while XML parsers handle the low-level syntactic parsing of XML tags, attributes, etc…, you still need to walk the DOM tree or, worse, build one yourself with nothing but a SAX parser (Objective-C iPhone SDK I’m looking at you!).

Check out the article, it’s short and to the point.

Tags: , , ,

Introduction to JSON (JavaScript Object Notation)

Wednesday, February 18th, 2009 | Business, Tutorials | 3 Comments

JSON, JavaScript Object Notation, is a very useful tool for AJAX developers (and many others I’m sure).

XML is fairly difficult for JavaScript to parse out.  It also includes quite a bit of infrastructure overhead in certain applications.  

Implementation of JSON can be very easy, it is imported natively in JavaScript through the eval() procedure.  It is also supported by many server side languages.

Lets take a basic example of an XML statement and see it’s JSON equivalent:

XML
<book id=”123″><author>Tom Jones</author></book>

JSON
{“book”: {“id”:”123″, “author”:”Tom Jones”}}

It may seem more cryptic, but if you look, that’s just because there are fewer iterations of key words.  The compression gets extended when you implement longer arrays of data.

The best part about JSON, in my opinion, is the speed increase you get when using it in javascript.  Please implement something in XML and JSON with the same data, you will notice a significant performance increase.

JSON is easy to consume in JavaScript:

objJSON = eval(jsonDataFeed);

You can access data (using our example earlier):

alert(objJSON.book.id);
alert(objJSON.book.author);

Server side implementation can be quite simple as well:

$dataObject = array();
$dataObject["book"] = array();
$dataObject["book"]["id"] = 123;
$dataObject["book"]["author"] = "Tom Jones";
echo (json_encode($dataObject));

Ask any questions in the comments below.  

Here are some articles to continue your exploration of JSON:

Tags: , , , , , , ,

Integrating wordpress, xml, and flash

Tuesday, August 26th, 2008 | Business | No Comments

I am experimenting on integrating the wordpress application with my flash front end, through the RSS XML conduit. 

I’ll post any results — of course if there are no results, you may not see anything at all!

Tags: , , , ,


Please share, it makes me happy:

Subscribe to Email Alerts

Follow Me

Follow seangw on twitter

Archives

Categories

prestashop theme

virtuemart template