Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

CIS 115

Lecture 28: Databases, Web 2.0, Informatics, & Social Media (oh my)

kst8r

K-State's new social network!

Edgar F. Codd

Image Source: Wikipedia

Relational Database

Image Source: Wikipedia

Relational Database

userID Name Birthday Major
russfeld Russell May 10th Comp. Sci
johnsmith John June 1 Info. Sci
miriamc Miriam February 2nd Info. Sys
gameguy Jayson Dec 26 computersci
sharpie Reily Dec. 18th IS

Database Normalization

Relational Database

userID Name Birthday Major
russfeld Russell May 10th Comp. Sci
johnsmith John June 1 Info. Sci
smiller Sheila Sept. 26 Soft. Engg.
gameguy Jayson Dec 26 computersci
sharpie Reily Dec. 18th IS

Related Tables

userID Name Birthday Major
russfeld Russell May 10th 1
johnsmith John June 1 3
smiller Sheila Sept. 26 2
gameguy Jayson Dec 26 1
sharpie Reily Dec. 18th 3


majorID Major Abbreviation
1 Computer Science CS
2 Software Engineering SE
3 Information Systems IS

Storing Phone Numbers

userID Name Phone1 Phone2
johnsmith John 555-1234
smiller Sheila 555-5134
gameguy Jayson 555-1235 555-5134
sharpie Reily 555-5134

Many-to-One?

userID Name
johnsmith John
smiller Sheila
gameguy Jayson
sharpie Reily


Phone user1 user2
555-1234 johnsmith
555-5134 smiller gameguy ?sharpie?
555-1235 gameguy

One-to-Many

userID Name
johnsmith John
smiller Sheila
gameguy Jayson
sharpie Reily


userID phone
johnsmith 555-1234
smiller 555-5134
gameguy 555-1235
gameguy 555-5134
sharpie 555-5134

What is Web 2.0?

Image Source: Wikipedia

The Long Tail

Image Source: Wikipedia

Web 1.0 Web 2.0
Static web pages Dynamic pages
Content from few Content from many
Local software Web software
Local storage Web storage
Read only Write / Collaborate
Text only Multimedia
Individual thoughts Collective thoughts
Propietary Open / Shared

Source: New Tools Workshop

Examples of Web 2.0 Sites?

Core Web 2.0 Technologies

Document Object Model (DOM)

Image Source: Wikipedia

JavaScript (1995)

AJAX (2005)

Extensible Markup Language (XML)

<person>
   <firstName>John</firstName>
   <lastName>Smith</lastName>
   <age>25</age>
   <address>
      <city>New York</city>
      <postalCode>10021</postalCode>
      <state>NY</state>
      <streetAddress>21 2nd Street</streetAddress>
   </address>
   <phoneNumbers>
      <element>
         <number>212 555-1234</number>
         <type>home</type>
      </element>
      <element>
         <number>646 555-4567</number>
         <type>fax</type>
      </element>
   </phoneNumbers>
</person>

JavaScript Object Notation (JSON)

{
    "firstName": "John",
    "lastName": "Smith",
    "age": 25,
    "address": {
        "streetAddress": "21 2nd Street",
        "city": "New York",
        "state": "NY",
        "postalCode": 10021
    },
    "phoneNumbers": [
        {
            "type": "home",
            "number": "212 555-1234"
        },
        {
            "type": "fax",
            "number": "646 555-4567"
        }
    ]
}

Image Source: Geek and Poke

Social Media

Rise of Social Media

Social Media Stats

Discussion Time!

Is Web 2.0 and Social Media
Good, Bad, or Otherwise?

List 5-10 Good and 5-10 Bad aspects of Web 2.0 and Social Media

Informatics

Image Source: Blog Schmog

Informatics

Source: Blog Schmog

Informatics

Source: Blog Schmog

Use Case: Business Intelligence & Customer Relationship Management

Image Source: Wikipedia

Source: Forbes

Assignments

Blog 13 - Design a Robot

In the lecture on robotics, we talked about many examples of how robots are shaping the world we live in today. Based on what you have learned i this class, design a robot that you think would be useful or interesting to you. Some things you can include: