McKinsey Hackathon

Mohamed Hayibor
May 15th, 2016

Outline

  • Big Idea
  • Demo
  • Further implementation ideas

Love the stack!

Scary!

Good questions?

Demo Time

window.Parsley.addValidator('length', {
  validateString: function(value) {
    // if question's length less than 50, throw error
    if (value.length < 50) {
      return false
    }
  },
  messages: {
    en: "Your question is too short.",
    fr: "Cette phrase est trop court."
  }
});
window.Parsley.addValidator('question-mark', {
  validateString: function(value) {
    var tempString = value.trim();
    if (tempString[tempString.length - 1] !== "?") {
      return false;
    }
  },
  messages: {
    en: "Your question doesn't have a question mark at the end.",
    fr: "Votre question n'a pas de point d'exclamation"
  }
});

Takeaways

  • Prompt user to ask better questions
  • Recursively test all code in md
  • Keep improving the "noob" experience 

Thanks!

Resources:

Made with Slides.com