Skip to content

Instantly share code, notes, and snippets.

Micro Survey 1/2017

Multiple times when working on the Python track, I thought it would be good to know certain things about the users. The last one was about how people actually run our tests. Do they use stock Python or do they install something else ...

So, I created a short 2-5 min survey with surveyplanet.com and posted the link on some exercise submissions in the Python track. I selected the allergies exercise which is number 15 in this track and all submissions from the last 6 months (~ 150).

My expectations about the turnout where not that high because for people to actually participate, they would need to visit the exercism.io site in the last week, discover my comment and than do the survey. ... but I received 35 response!

Note I: The questions where in a different order in the survey. I asked about Python stuff first and later about the demographic/background stuff (bonus – nice but not so relevant to me).

object Challenges {
def mergeStrings(a: String, b: String): String = {
a.zipAll(b, "", "") map { case (m, n) => m.toString + n } mkString
}
def mergeStringsRec(a: String, b: String): String = {
def loop(first: List[Char], second: List[Char]): String =
(first, second) match {
case (x :: xs, y :: ys) => x.toString + y + loop(xs, ys)
case (f, Nil) => f mkString
@behrtam
behrtam / app.py
Created August 19, 2017 09:43
Flask Injecting Request Information – still uses old format
import logging
from flask import Flask, request
from flask.logging import default_handler
class RequestFormatter(logging.Formatter):
def format(self, record):
record.url = request.url
record.remote_addr = request.remote_addr