Skip to content

Latest commit

 

History

History
130 lines (111 loc) · 5.44 KB

File metadata and controls

130 lines (111 loc) · 5.44 KB

Class 6

Impostor syndrome

..or rather, you shouldn't!

🛠️ Data Structures

Common structured data types:

  • Arrays
    • Indexed values (0, 1, 2, 3...)
    • Various ways of looping through arrays
      • for loop
      • for...of loop
      • forEach() method
      • map() method
    • Other array functions
  • Dictionaries/Hashes (Objects in .js, HashMap in Java)
    • Key-value pairs rather than indexed values
    • Various ways of looping through objects
      • for...in loop
      • Object.keys() method
      • Object.values() method
      • Object.entries() method
  • Other languages have other data structures

Loading data payloads from external files or APIs

🛠️ APIs

🛠️ Databases

  • Databases are searchable data structures
  • Relational & queryable databases allow for large sets of searchable data
    • Pro: More powerful and reliable than a data file
    • Pro: Hosted in the cloud, a db can share data between users
    • Con: More difficult to set up and work with
    • Some different types of databases: SQL, Mongo, GraphQL
  • What's the best tool for the job?
  • Data search example

🛠️ Data Visualization

📝 Homework:

Watch:

Build a data visualization

  • Types of visuals to consider
    • A chart
    • An interactive visual representation
    • A storytelling device
    • An abstract interpretation of the data
  • Data sources
    • Handcrafted/hard-coded arrays, objects
    • Loaded data files (json, csv, xml, text)
    • API requests
  • Inspiration
  • Steps
    • Find or create some interesting data
    • Load your data source into your environment
    • Draw something based on your data

📋 Review code

  • Present your generators