SlideShare ist ein Scribd-Unternehmen logo
1 von 102
Downloaden Sie, um offline zu lesen
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3
Handling Data in YUI3

Weitere ähnliche Inhalte

Andere mochten auch

Streaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and RedshiftStreaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and RedshiftAmazon Web Services
 
MySQL partitions tutorial
MySQL partitions tutorialMySQL partitions tutorial
MySQL partitions tutorialGiuseppe Maxia
 
Собеседование на английском: секреты профессионалов.
Собеседование на английском: секреты профессионалов.Собеседование на английском: секреты профессионалов.
Собеседование на английском: секреты профессионалов.Skyeng
 
The Future is Internet of Things (IOT)
The Future is Internet of Things (IOT)The Future is Internet of Things (IOT)
The Future is Internet of Things (IOT)Adnyesh Dalpati
 
Automated Governance of Your AWS Resources
Automated Governance of Your AWS ResourcesAutomated Governance of Your AWS Resources
Automated Governance of Your AWS ResourcesAmazon Web Services
 
Tap 1/2 Yearly Incentive Trip
Tap 1/2 Yearly Incentive TripTap 1/2 Yearly Incentive Trip
Tap 1/2 Yearly Incentive TripLiron Rutovitz
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceAmazon Web Services
 
Hindu Marriage Act,1955
Hindu Marriage Act,1955Hindu Marriage Act,1955
Hindu Marriage Act,1955Rashmi Dubey
 
Application Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless WorldApplication Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless WorldAmazon Web Services
 
Infrastructure Continuous Delivery Using AWS CloudFormation
Infrastructure Continuous Delivery Using AWS CloudFormationInfrastructure Continuous Delivery Using AWS CloudFormation
Infrastructure Continuous Delivery Using AWS CloudFormationAmazon Web Services
 
Zinnov Zones for IoT Services 2017
Zinnov Zones for IoT Services 2017Zinnov Zones for IoT Services 2017
Zinnov Zones for IoT Services 2017Zinnov
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon RedshiftAmazon Web Services
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateAmazon Web Services
 
Deploy, scale and manage your application with AWS Elastic Beanstal
Deploy, scale and manage your application with AWS Elastic BeanstalDeploy, scale and manage your application with AWS Elastic Beanstal
Deploy, scale and manage your application with AWS Elastic BeanstalAmazon Web Services
 

Andere mochten auch (17)

Streaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and RedshiftStreaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and Redshift
 
MySQL partitions tutorial
MySQL partitions tutorialMySQL partitions tutorial
MySQL partitions tutorial
 
Собеседование на английском: секреты профессионалов.
Собеседование на английском: секреты профессионалов.Собеседование на английском: секреты профессионалов.
Собеседование на английском: секреты профессионалов.
 
The Future is Internet of Things (IOT)
The Future is Internet of Things (IOT)The Future is Internet of Things (IOT)
The Future is Internet of Things (IOT)
 
Automated Governance of Your AWS Resources
Automated Governance of Your AWS ResourcesAutomated Governance of Your AWS Resources
Automated Governance of Your AWS Resources
 
Tap 1/2 Yearly Incentive Trip
Tap 1/2 Yearly Incentive TripTap 1/2 Yearly Incentive Trip
Tap 1/2 Yearly Incentive Trip
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Hindu Marriage Act,1955
Hindu Marriage Act,1955Hindu Marriage Act,1955
Hindu Marriage Act,1955
 
Application Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless WorldApplication Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless World
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
Infrastructure Continuous Delivery Using AWS CloudFormation
Infrastructure Continuous Delivery Using AWS CloudFormationInfrastructure Continuous Delivery Using AWS CloudFormation
Infrastructure Continuous Delivery Using AWS CloudFormation
 
Zinnov Zones for IoT Services 2017
Zinnov Zones for IoT Services 2017Zinnov Zones for IoT Services 2017
Zinnov Zones for IoT Services 2017
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 
Deploy, scale and manage your application with AWS Elastic Beanstal
Deploy, scale and manage your application with AWS Elastic BeanstalDeploy, scale and manage your application with AWS Elastic Beanstal
Deploy, scale and manage your application with AWS Elastic Beanstal
 
Introduction to AWS X-Ray
Introduction to AWS X-RayIntroduction to AWS X-Ray
Introduction to AWS X-Ray
 

Hinweis der Redaktion

  1. I wanted to start off by just talking a bit about data. Its what drives the internet and it seems there’s more and more of it available.
  2. YUI 3 has a rich set of utilities that make it easy for developers to handle this data. The end result is in the user having a great experience, without you having to break too much of a sweat.
  3. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  4. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  5. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  6. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  7. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  8. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  9. There are usually 4 steps to take when working with data. YUI3 provides utilities that assist you at each of these steps.
  10. this shows how all the utilities work together in YUI3. datasource gets data from a remote source. dataschema plugs into datasource to parse the data and uses datatype to normalize it. the normalized/parsed data is then consumed by a user facing widget
  11. We will be talking about these utilities and how they come together with respect to the data lifecycle. We’ll be combining these utilities and showing some examples of data-driven apps using very few lines of code. Working with these utilities and ultimately managing your data is a piece of cake in YUI3
  12. Retrieval: the process of getting data to your page.
  13. This data could exist anywhere
  14. The utility that can help you with this is called DataSource.
  15. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  16. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  17. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  18. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  19. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  20. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  21. Subclasses of Y.DataSource. Get, IO, Local are 1kb each. Schemas are around 0.8kb each. Polling is 0.5kb, cache is 1kb. Function is 0.5kb
  22. A simple DataSource being instantiated and fetching a request
  23. loads the datasource roll-up on your page
  24. Instantiate a new instance of a dataSource and give it a source to get data from
  25. Pass in various requests to get data back from the given source. Create or pass in a callback object that has “success”, “failure” functions defined on it.
  26. Pass in various requests to get data back from the given source. Create or pass in a callback object that has “success”, “failure” functions defined on it.
  27. The events that can be hooked into for DataSource
  28. The events that can be hooked into for DataSource
  29. The events that can be hooked into for DataSource
  30. The events that can be hooked into for DataSource
  31. The events that can be hooked into for DataSource
  32. The events that can be hooked into for DataSource
  33. The events that can be hooked into for DataSource
  34. On or After
  35. Parsing: Taking all that data and only getting the pieces that are important to you
  36. The left side is an example of the data we are getting back. Top right shows our schema definition. Bottom right shows our final object bag.
  37. The left side is an example of the data we are getting back. Top right shows our schema definition. Bottom right shows our final object bag.
  38. The left side is an example of the data we are getting back. Top right shows our schema definition. Bottom right shows our final object bag.
  39. The left side is an example of the data we are getting back. Top right shows our schema definition. Bottom right shows our final object bag.
  40. “key” corresponds with the key on the object bag we are working with. resultListLocator tells the schema where to find the array that it will iterate through.
  41. For JSON/XML: metaFields Object Key/locator pairs that point to arbitrary data values. resultListLocator String Locator to an internal array of tabular data. resultFields Array Keys to assign to the values contained in the array.
  42. Very similar to the standalone module.
  43. Plug in the proper schema
  44. Define the schema as you would normally
  45. Define the schema as you would normally
  46. Define the schema as you would normally The resultListLocator is from e.response.results
  47. Define the schema as you would normally
  48. YQL allows you to control incoming data so its probably not the greatest use case.
  49. YQL allows you to control incoming data so its probably not the greatest use case.
  50. YQL allows you to control incoming data so its probably not the greatest use case.
  51. YQL allows you to control incoming data so its probably not the greatest use case.
  52. YQL allows you to control incoming data so its probably not the greatest use case.
  53. YQL allows you to control incoming data so its probably not the greatest use case.
  54. Light blue: Numbers Yellow: Dates Orange: Strings
  55. If you want to sort data, or perform any sort of arithmetic / comparison operations, having the data in its proper format will save you from tons of headaches.
  56. DataType.Date.parse() will accept any arguments that can be accepted by the Date() object in JS. It will return a Date() object. DataType.Number.parse() will return a Number() object DataType.XML.parse() will accept a string representation of XML and return an XML document object. Note that browsers differ in their handling of invalid syntax but will in general return an XML document even under error conditions.
  57. php.net/strftime
  58. php.net/strftime
  59. php.net/strftime
  60. php.net/strftime
  61. php.net/strftime
  62. php.net/strftime
  63. php.net/strftime
  64. The module has support for a large number of languages built in. If you need a language that's not supported, you can register the necessary localized data yourself using facilities of theInternationalization utility. The resource bundle you provide needs to have properties corresponding to the locale-sensitive strftime format specifiers:
  65. The module has support for a large number of languages built in. If you need a language that's not supported, you can register the necessary localized data yourself using facilities of theInternationalization utility. The resource bundle you provide needs to have properties corresponding to the locale-sensitive strftime format specifiers:
  66. The module has support for a large number of languages built in. If you need a language that's not supported, you can register the necessary localized data yourself using facilities of theInternationalization utility. The resource bundle you provide needs to have properties corresponding to the locale-sensitive strftime format specifiers:
  67. You can pass in strings “date”, “number”, “xml”, or the parser function (such as Y.DataType.Number.parse) or a custom function (such as parseDate)
  68. Key things to mention here are the source and the parser
  69. Creating a scrolling datatable. Map the columns to the
  70. Creating a scrolling datatable. Map the columns to the
  71. Taking the same data and plugging it into charts (Charts does not support DataSource yet)
  72. Taking the same data and plugging it into charts (Charts does not support DataSource yet)
  73. The data lifecycle, and why its important to have utilities at each step
  74. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  75. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  76. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  77. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  78. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  79. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  80. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  81. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  82. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  83. Caching and polling of datasources. Handling values in their native types. Work with javascript objects with known properties
  84. There are other utilities that you should look into when dealing with data. - Y.io - Y.YQL - Y.jsonp
  85. There are other utilities that you should look into when dealing with data. - Y.io - Y.YQL - Y.jsonp