the fat free alternative

20
The Fat-Free Alternative Marwa Gamal

Upload: marwa-gamal

Post on 15-Apr-2017

594 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: The fat free alternative

The Fat-Free Alternative

Marwa Gamal

Page 2: The fat free alternative

Fat ?? Free ?? Alternative !!

Fast !!

Three ??

Page 3: The fat free alternative
Page 4: The fat free alternative

XML everywhere

Page 5: The fat free alternative

Even CAT become XML

!!اى حاجة فاى حتة فاى وقت

Page 6: The fat free alternative

فى حاجة كاملة فى الدنيا هل

!!! ؟

Page 7: The fat free alternative

XML Really BAD !!

• Character Encoding

• Embedding binary data

• Indentation Characters Mixed With Data

• Textual Representation of Numeric Data

<int>1234567890</int>

• Human un-readability

• A single XML root element

Page 8: The fat free alternative

Alternatives ??

Not Used !!

Page 10: The fat free alternative

CSV “ Comma Separated Value”

EX :-

Year,Make,Model,Length

1997,Ford,E350,2.34

2000,Mercury,Cougar,2.38

Cons : -

homemade parser is required to convert the CSV data into a native data structure.

Page 11: The fat free alternative

YAML EX :-

receipt: Oz-Ware Purchase Invoice

date: 2007-08-06

customer:

given: Dorothy

family: Gale

cons :-

very immature API , Not commonly used.

Page 12: The fat free alternative

JSON

JavaScript Object Notation

FAT ?? FREE ??

ideal data-interchange language

Page 13: The fat free alternative

XML vs. JSON

Page 14: The fat free alternative

XML

• Good namespace support

• Widely Supported

• Less memory usage to decode

• “ DRY or DIE “

Page 15: The fat free alternative

JSON

• Simple API

• Very good support by all browsers

• Concise format thanks to name/value pair -based

approach

• Fully automated way of de-serializing/serializing

JavaScript object

• Supported by many AJAX toolkits and JavaScript

libraries

Page 17: The fat free alternative

...شوية احصائيات

Page 18: The fat free alternative

number of JSON APIs During 2009 : 191 JSON APIs registered. August 2010 : 223 APIs

April 2011 : 1262 JSON APIs registered

Page 19: The fat free alternative

growth rate : 565% in the past eight months

Page 20: The fat free alternative

For more http://www.json.org/