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 17: Databases, Web 2.0 & Social Media
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 |
smiller | Sheila | Sept. 26 | Soft. Engg. |
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
Rise of Social Media
Social Media Stats
Image Source: Creotivo
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
Assignments
Blog 8: How Has the Internet Influenced You?
The internet has been a major force in our lives for several decades now. Write about how the internet has influenced you as a person. Try and think about ways that you would be a different person if you didn’t have the internet. Things you can think about:
Mars Rover
Social Media