book

Report

Tableau Visulizations:

https://public.tableau.com/profile/publish/ClassmatesHackathonReport3/Sheet3#!/publish-confirm

https://public.tableau.com/profile/publish/ClassmatesHackathonReport2/Sheet2#!/publish-confirm

https://public.tableau.com/profile/andrew.linenfelser#!/vizhome/ClassmatesHackathonReport/Sheet1

As a class, we brainstormed and came up with a long list of further questions we can ask based on the "self-introduction" data. Out of these questions, our team chose to tackle on the following:

(Percent of students that are CS majors)

var bodies = _.pluck(data.comments, 'body')
var cs = _.map(bodies, function( item){return _.last(item.split('Major:'))})
var counter = 0
for(var i=0; i
61.53846153846154 % of the people are Computer Science people

(What are the favorite languages?)

var language_string = ""
for (i = 0; i < _.size(data.comments); i++) {
    var text = data.comments[i].body
    var languages

    function splitString(stringToSplit, separator) {
        var arrayOfStrings = stringToSplit.split(separator)
        var language_line = arrayOfStrings[2]
        var line = language_line.split(':')
        var favorite_language = line[1]
        var splitline = favorite_language.split(" ")

        if (favorite_language != "") {
            return (splitline[1])
        }
        else {
            return 'false'
        }
    }

    languages = splitString(text, '\r\n')
    if (languages == "JAVA") {languages = "Java"}
    language_string += (_.capitalize(languages) + ',')
}

var array = language_string.split(',')
var saved_array = language_string.split(',')
var new_array = array
var key = array[0].split()
var found_keys = key + ','

while (new_array.length > 1) {
    new_array = _.difference(array, key)
    array = new_array
    key = new_array[0].split()
    found_keys += (key + ',')
}

var sort_keys = found_keys.split(",")
var answer = ""

for (var i = 0; i < sort_keys.length; i++) {
    if (sort_keys[i] != "") {
    var count = 0
        for (var j = 0; j < saved_array.length; j++) {
            if(saved_array[j] == sort_keys[i]) { count++ }
        }
        answer += (sort_keys[i] + ':' + count + ' ')
    }
}

return answer


console.log(answer)

The results are: Python:10 Javascript:2 C:6 Java:4 Haskell:1 C++:2 C#:1

( How many students submitted before the first class? )

var created = _.pluck(data.comments, 'created_at')
console.log(created)
var time = _.map(created, function(item){return (item.split('-'))})
var onTime = ["2015-08-24T22:00:00Z"]
var onTimeSplit = _.map(onTime, function(item){return (item.split('-'))})

var counter = 0
for(i=0; i
console> [ "2015-08-20T22:39:50Z", "2015-08-21T00:32:27Z", "2015-08-21T21:44:26Z", "2015-08-23T02:42:38Z", "2015-08-23T15:16:45Z", "2015-08-24T02:41:03Z", "2015-08-24T04:58:06Z", "2015-08-24T15:09:50Z", "2015-08-24T17:05:03Z", "2015-08-24T17:08:26Z", "2015-08-24T17:08:44Z", "2015-08-24T17:14:40Z", "2015-08-24T18:55:15Z", "2015-08-24T18:56:52Z", "2015-08-24T20:19:08Z", "2015-08-24T20:22:26Z", "2015-08-24T20:48:20Z", "2015-08-24T22:57:57Z", "2015-08-24T23:02:13Z", "2015-08-24T23:04:34Z", "2015-08-24T23:26:19Z", "2015-08-25T04:08:34Z", "2015-08-25T21:57:39Z", "2015-08-26T01:49:34Z", "2015-08-26T21:30:51Z", "2015-08-26T22:41:40Z" ]
17 people submitted before class

( How many students updated their comments after class )

var created = _.pluck(data.comments, 'updated_at')
var time = _.map(created, function(item){return (item.split('-'))})
var onTime = ["2015-08-24T22:00:00Z"]
var onTimeSplit = _.map(onTime, function(item){return (item.split('-'))})

//console.log("=====================")
//console.log(onTimeSplit)

var counter = 0
for(i=0; i onTimeSplit[0][j]){
			//console.log("NOT ON TIME!!!!!")
			counter++
		}
	}
}
return counter

10 people updated after