There are 26 students who gave a self-introduction. As a class, we brainstormed and came up with a long list of further questions we can ask based on this data. Our team chose to tackle on the following:
return _.pluck(_.sortBy(data.comments, function(comment){
return _.size(comment.body.split(""));
}).reverse(), 'user.login');
In order from most verbose comment to least:
[ "Linenfelser", "nicolele", "94kazakov", "pail4944", "karisantos", "sumi6109", "willzfarmer", "KevinKGifford", "zhya215", "boanding", "calebhsu", "satchelspencer", "co-bri", "DomoYeti", "hswitte", "kjblakemore", "twagar95", "jocr1627", "SankethSukumarShetty", "tiro6090", "ZachLamb", "AndreyShprengel", "drewdinger", "fadhilfath", "Malaokia", "anbe6083" ]
(This assumes that userIDs were assigned consecutively)
return _.first(_.pluck(_.sortBy((_.pluck((data.comments), "user")), "id"), "login"))
Assuming that GitHub userIDs are assigned sequentially,
"willzfarmer"has been a member of github the longest.
return _.pluck(_.filter(data.comments, function(comment){
return comment['created_at'] !== comment['updated_at'];
}), 'user.login');
The students who have updated their comments are:
[ "KevinKGifford", "kjblakemore" ]
return _.chain(data.comments)
.map(function(obj) {
return [obj.user.login,
obj.body.match(/[`~!@#\$%\^&\*\(\)_\+-=\[\]\\\{\}\|;':",\./<>\?]/g).length];
})
.sortBy(function(tup) {
return tup[1];
})
.map(function(tup) {
return tup[0];
})
In order of least punctuation used to most:
[ "twagar95", "Malaokia", "fadhilfath", "hswitte", "ZachLamb", "jocr1627", "drewdinger", "tiro6090", "calebhsu", "sumi6109", "SankethSukumarShetty", "AndreyShprengel", "anbe6083", "willzfarmer", "nicolele", "kjblakemore", "co-bri", "zhya215", "94kazakov", "Linenfelser", "pail4944", "DomoYeti", "boanding", "KevinKGifford", "karisantos", "satchelspencer" ]