Skip to Main Content
Small pic productivity

At MongoDB, we frequently struggle with tracking developer productivity, and trying to understand how and when we're doing our best work. Answering these questions would give us key insight on how to enable our engineers to get work done faster and better.

One way we would love to achieve this is through a git post-commit hook that records data about our commits in a MongoDB. Then we could create and run aggregations, giving us insight to interesting questions like:

1) On average, when are we most productive?

2) What time of day do we see the most commits?

3) What is the size of a typical commit?


Please complete the following:

1) Submit the code for your git post-commit hook

2) Explain how to operate the hook, as well as the design choices made, and tradeoffs accepted

3) What are a few aggregation queries you might run?


When submitting your solution, consider the following:

1) Our developers may not have the same type of environment or even OS.

2) The commit hook can’t take more than 500ms since we don’t want to interrupt our workflow.

3) The hook should not create duplicate information. (ex. rebases, amends, etc.)

    Submissions will be graded on the following criteria:
  • Meets Deliverables
  • Creativity
  • Clarity
Reward Tiers
2 Winners
will receive $150 each
1 Honorable Mention
will receive $50
$150.00 Square pic 60 img 0107 ship
$150.00 Square pic 60 1016221 3522665870870 1252840112 n Duke University
$50.00 Square pic 60 may logan University of Pennsylvania
Submission questions

0 characters Average: 1705 characters
Your solution must be at least 200 characters long
Enter your info to sign in
or sign in with