Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: How to look at sorce code

  1. #11
    Join Date
    Apr 2007
    Location
    U.S
    Beans
    389
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to look at sorce code

    Looking up svn is'ent helping can you be more pacific.

  2. #12
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: How to look at sorce code

    Take a look at the games and demos at pygame.org.

  3. #13
    Join Date
    Jan 2005
    Location
    India
    Beans
    385
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to look at sorce code

    There's a book which has some tips on reading source code called "Code Reading : The Open Source Perspective" which starts from basic UNIX apps like echo and goes up to the X server. You might find it helpful, though most of the examples in it are in C.
    I am the turnip. No, not a turnip, the turnip. Visit my blog here.

    I need help with my Code Dojo. If you're interested, please drop me a line.

  4. #14
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: How to look at sorce code

    After reading intro book, start with simple programs. Real programs (with GUI and error handling) might be too complicated for a beginner. After couple months, when you wrote and debug your own 500 line program, reading code of other people will suddenly become much easier. You will be able to see "patterns" and distinguish bigger chunks of the code.

    But really deeply reading and understanding code of other people is hard, reading code is always slower that reading ie. sci-fi novel

  5. #15
    Join Date
    Dec 2004
    Location
    Manchester
    Beans
    2,086
    Distro
    Ubuntu Mate 15.10 Wily Werewolf

    Re: How to look at sorce code

    to get the source code to any program in ubuntu you can run

    Code:
    apt-get source program_name
    to get a list of all the ubuntu packages using pygame

    Code:
    apt-cache rdepends python-pygame
    so pick one of those and run, for example

    Code:
    apt-get source singularity

  6. #16
    Join Date
    Sep 2006
    Location
    London (I miss the beach)
    Beans
    376

    Re: How to look at sorce code

    Quote Originally Posted by microsoft92sucks View Post
    Looking up svn is'ent helping can you be more pacific.
    svn is the client for Subversion.

    Subversion is version control system, it is open source and just about everyone uses it (yep, even Microsoft heavy companies do). Many open source projects will tell you the URL for their repositories so you can download the source.

  7. #17
    Join Date
    Apr 2007
    Location
    U.S
    Beans
    389
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to look at sorce code

    Thanks ssam now I get how this all work's.
    Last edited by microsoft92sucks; June 8th, 2007 at 05:15 AM.

  8. #18
    Join Date
    Apr 2007
    Location
    U.S
    Beans
    389
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to look at sorce code

    Quote Originally Posted by WW View Post
    Take a look at the games and demos at pygame.org.
    Thanks for this site there's lot's of Python source code here.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •