• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    Scala
  • Created about 12 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visualize statistics from the MOOC "Functional Programming Principles in Scala" using Scala!

Progfun-stats

This repository contains the data from the Fall 2013 "progfun" survey, and the source code for many of the plots seen in the Functional Programming Principles in Scala: Impressions and Statistics (Fall 2012) article on scala-lang.org. (Of course, adapted to the statistics gathered from the Fall 2013 iteration of the course).

We encourage you to checkout the repository, to generate the plots shown in the article yourself, and to explore the data further. Given sufficient interest, we plan on writing a follow-up article, and we'd love to hear from you! If you've found anything interesting in the data, or otherwise have a cool/interesting visualization to share, please don't hesitate to let us know! We'll include as many as we can in our follow-up article.

Pull requests are also welcome. Please either post in the comments in the article or contact Heather if need be.

The Survey

The survey was emailed to the ~36,000 students enrolled in the Fall 2013 Functional Programming Principles in Scala MOOC on Coursera. Out of those students, 3,786 responded.

The following questions (with their available choices) were on the survey:

  • What's your age group?
    • Possible choices: 10-17, 18-24, 25-34, 35-44, 45-54, 55-64, 65+
  • What country do you live in?
  • What's your highest degree?
    • Possible choices: No High School (or equivalent), Some High School (or equivalent), High School (or equivalent), Some College (or equivalent), Bachelor's Degree (or equivalent), Master's Degree (or equivalent), Doctorate Degree (or equivalent), Other (fill in)
  • If applicable, what field of study was your highest degree in?
    • Possible choices: Computer Science, Computer/Software Engineering, Electrical Engineering, Mechanical Engineering, Statistics/Mathematics, Business/Marketing, Physics, Life Sciences, Liberal Arts, Fine Arts, Other
  • How many years have you been programming?
    • Possible choices: 0-1 years, 1-2 years, 3-5 years, 5-7 years, 7-10 years, 10-15 years, 15-20 years, 20+ years
  • Did you finish the course?
    • Possible choices: Yes, No
  • How many hours, on average, did you spend per week on the course?
    • Possible choices: 1-2 hours, 2-4 hours, 4-6 hours, 6-8 hours, 8-10 hours, 10-12 hours, 12+ hours
  • How difficult did you find the course overall?
    • Possible choices: 1 - Too Easy, 2, 3, 4, 5 - Too Hard
  • How difficult did you find the homework assignments?
    • Possible choices: 1 - Too Easy, 2, 3, 4, 5 - Too Hard
  • Do you feel the course was worth the time you invested in it?
    • Possible choices: 1 - Disagree Completely, 2, 3, 4, 5 - Agree Completely
  • Would you take a follow-up functional programming in Scala course, if it were offered?
    • Possible choices: 1 - Not Interested, 2, 3, 4, 5 - Absolutely!
  • What interested you in the Functional Programming Principles in Scala course?
    • Possible choices: Personal Interest/Curiosity, University Studies, Helps With Profession
  • Where do you plan to apply what you've learned in this course?
    • Possible choices: Personal projects, Individual project at work, Team project at work, University projects, No application plans, attended for general interest
  • What is your preferred editor, for use outside of this course?
    • Possible choices: Eclipse, IntelliJ, Sublime Text, Visual Studio, XCode, TextMate, emacs, vim, Other
  • What editor did you end up using for the majority of the course?
    • Possible choices: Eclipse, IntelliJ, Sublime Text, TextMate, emacs, vim, Other
  • What experience do you have with other programming languages or paradigms? (asked once each for Java, C/C++/Objective-C, Python/Ruby/Perl/other scripting language, C#/.NET, JavaScript, Haskell/OCaml/ML/F#, Lisp/Scheme/Clojure)
    • Possible choices: No experience / not seen it at all, I've seen and understand some code, I have some experience writing code, I'm fluent, I'm an expert

Dependencies

You need SBT 0.12 installed. If you don't already have SBT, make sure to grab it.

If you've got a mac, you can use either Macports:

$ sudo port install sbt

Or HomeBrew:

$ brew install sbt

For Linux users, you can use APT (other package managers are available [on the getting started page](make sure to grab it))

apt-get install sbt

Windows users can either install the msi or create a batch file.

Running

The code in this repository generates HTML/JavaScript visualizations of some of the data collected in the above survey.

To run,

  1. Start SBT in the root directory of progfun-stats.
  2. run
  3. Select the plot that you wish to generate. Or select ProgfunStats to generate them all.
  4. All HTML/JavaScript is generated in the html/ directory.

Explore the data with Scala!

To generate a new graph, define a new singleton object in ProgfunStats.scala, and make sure to extend the proper GraphFactory (current choices are GroupedBarGraphFactory, SimpleBarGraphFactory, PieChartFactory, WorldMapFactory).

In all cases, there are a few fields that you need to implement-- for example, the name field, which corresponds to the name of the HTML file you wish to output, as well as the data field, which represents that data that you would like to display on a graph.

Have a look at the visualizations already implemented (the ones visible in the article) in ProgfunStats.scala

Accessing the survey data from Scala

There are two ways to get to the data, depending on what you'd like to do with it. In general, all of the survey data lives in the CourseraData object. You can:

  1. Access entire rows of the dataset, i.e., a single question answered by all respondents of the survey. For example, to see what all responses were for the question: "What's your highest degree?", you can simply import CourseraData.degrees (have a look at CourseraData to see all other possible options for import)
  2. Access all responses per respondent, i.e., a list of Users, each has a field for each question asked in the survey (luckily no more than 22!). Simply import CourseraData.users.This is useful when you want to plot two qualities against each other. For example, in the graph of perceived difficulty vs background/field we need to know what a single user inputted for two different fields. That is, we needed to first filter out only Java/C/C++/FP experts, and then for those users, we needed to examine how difficult they believed the course to be.

LICENSE

The source code and data within this repository are open source under the Apache License V2.

A summary of the license can be found here. Like all licences the Apache License v2 grants certain rights under certain conditions. In brief a licensee of Apache Licensed V2 software can:

  • copy, modify and distribute the covered software in source and/or binary forms
  • exercise patent rights that would normally only extend to the licensor provided that:
  • all copies, modified or unmodified, are accompanied by a copy of the license
  • all modifications are clearly marked as being the work of the modifier

See the V2 Apache License itself, or the summary for more information.

Apache License V2

Copyright 2012-2014 École Polytechnique Fédérale de Lausanne (EPFL)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

More Repositories

1

dist-prog-book

CSS
3,424
star
2

spores

Scala Spores, safe mobile closures.
Scala
127
star
3

menthor

Parallelizing Machine Learning-- Functionally.
Scala
53
star
4

f-p

A new programming model for asynchronous and distributed programming.
Scala
36
star
5

papers-documents

Papers I (+ collaborators) have written or am currently writing
TeX
20
star
6

scala-pickling

Fast, customizable, boilerplate-free pickling support for Scala. MOVED TO http://github.com/scala/pickling
Scala
18
star
7

healy-article

Minimum working version of one of Kieran Healy's beautiful LaTeX article templates
TeX
18
star
8

cv

My CV
TeX
12
star
9

wwwheathermiller

Heather Miller's homepage
JavaScript
11
star
10

cs7680

Programming Models for Distributed Computation, analyses & minutes
8
star
11

scacs

Scala Cluster Service: a general cluster service + cluster support for Delite.
Scala
6
star
12

wwwcurryon

Website for Curry On!
CSS
5
star
13

scala-dataflow

TeX
5
star
14

wwwcs7680

http://heather.miller.am/teaching/cs7680
CSS
5
star
15

parcolls-extended

Extensions to Scala's Parallel Collections.
Scala
3
star
16

dissertation

Heather Miller's PhD Dissertation
TeX
3
star
17

testing-git-deploy-hooks

3
star
18

unisync

A non-destructive uni-directional sync. Think: über simple rsync that won't delete everything in the destination directory.
Scala
2
star
19

oss-community-bib

Bibliography covering peer-reviewed-research on Open Source Software (OSS) communities
1
star
20

reactive-stats

Visualize statistics from the MOOC "Principles of Reactive Programming" using Scala!
Scala
1
star
21

group-page-exp

HTML
1
star
22

wwwscala13

Website for Scala workshop 2013 (Scala'13)
CSS
1
star
23

srlzn-sandbox

Java
1
star
24

wwwscala14

Website for Scala workshop 2014 (Scala'14)
CSS
1
star
25

dep

Scala
1
star