Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB Open Academy Spring 2014

alisan16
May 07, 2014
54

MongoDB Open Academy Spring 2014

alisan16

May 07, 2014
Tweet

Transcript

  1. Wait...why doesn’t the regular PHP Mongo extension work? Straight from

    the Mongo PHP Team: Our task: Make MongoDB work with HHVM!
  2. Our Tasks • Implement all MongoDB core classes within the

    HHVM extension framework using PHP and the Mongo C Driver via C++ • Create PHP Mongo-specific types ◦ MongoDate, MongoID, MongoTimestamp • Create PHP testing suite for our driver
  3. Design Since we want to be transparent (using PHP interpreter

    vs HHVM shouldn’t be any different), client API needs to be identical
  4. Design Cont’d • Main choice: which methods to make native

    (C++) and which to do in PHP • Decision: Write C++ methods only when absolutely necessary (need to contact DB) ◦ Insert, remove, update, run a query ◦ Benefits: Easier to catch errors, elegant!
  5. Collaboration • Seven students: PHP Team, C++ Team, BSON Team

    • One MongoDB mentor: Jeremy • Weekly 1 hr Google Hangout meetings • Consistent IRC availability
  6. Future Recommendations For Project: • Clearly defined goals and end-product

    • Weekly meetings and constant communication • Good kickoff experience
  7. Future Recommendations We recommend OpenAcademy for the student who: •

    is willing to take A LOT of initiative • wants to become very familiar with Git • works well alone