This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Victory is Yours!


Comment your code and post it online

Now, like a proud parent, review your code. Add comments that you think would be helpful for people trying to understand your code. You don't need to over comment (especially if you wrote nice, self-documenting code), but imagine your target audience as yourself-- before you started this challenge.

And here's a hint: the most likely person to, hypothetically, be reading your code in the future is... you! You, a year from now, when you are desperately trying to remember how you did something. Be kind to your future self. 

Finally, create or log into an account on one of the many online source code hosting websites. These websites are used for hosting, and tracking revisions to, your code. They are very useful both for collaborating and making sure you don't lose anything.

Use whichever site you prefer - github, launchpad, bitbucket, even your own server, or something else. Note that each of these sites offers a different revision control system, and discussing the merits of each is beyond the scope of this challenge. However, it's not a binding decision, so feel free to pick one and try it. As an example, check out P2PU's various source code projects on github

To complete this challenge, post a link to your public code in the comments. You are also welcome to post any feedback about this challenge, including parts that could be improved!

Task Discussion


  • Eenvincible said:

    Hi guys, I just completed this level and here is my link to the repository over at github

    https://github.com/Eenvincible/simpledeveloper

    Thanks everyone

    on Jan. 10, 2013, 11:38 p.m.
  • govindreddy said:

    github

    https://github.com/gtreddy/searchTwitter

    on Dec. 7, 2012, 1:38 a.m.
  • manicphase said:

    Man git on windows is a pain.

    Anyway I'm done :D

    p2pu-programming101.py

    on June 1, 2012, 10:12 p.m.

    Jessy Kate Schingler said:

    hi manicphase! great job on the code. very nice use of functions. interesting how you called enterSearchTerm() from searchTwitter() and vice versa. if the program was running indefinitely i think you would run into an issue with call stack depth since each time you call the function it's adding to the call stack without returning. but, that's entirely unlikely to be a problem for a program like this :).

    on June 2, 2012, 9:18 p.m. in reply to manicphase

    manicphase said:

    I'm using windows and I was trying to work out a way to make it so you could run in cmd by double clicking but stop the console window disappearing as soon as the search finishes. I don't think it's meant to be though. I might get on some tkintering when i wake up.

    on June 3, 2012, 7:18 a.m. in reply to Jessy Kate Schingler
  • LeJit said:

    https://github.com/LeJit/P2PU-

    on May 31, 2012, 10:47 a.m.

    Jessy Kate Schingler said:

    this is awesome LeJit! nicely commented code, too. congrats!

    on May 31, 2012, 12:04 p.m. in reply to LeJit