469,963 Members | 1,344 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

reading other people's code

MJL
I am working with an open source piece of software that is
overwhelming me and I was hoping to get some advice.

It is in some areas simple and others nearly impossible. There are
many includes and functions scattered among many files in many
directories. While the code itself is not to hard to follow, there is
virtually no commenting or documentation.

I am working on a Windows XP machine, but I am comfortable and have
access to a Unix machine also (my web host via SSH).

Are there any recommended methods or tools for figuring this stuff
out?

Thanks for any advice. The software, by the way, is OpenEMR, which
can be found easily through Google.
Jul 17 '05 #1
3 1517
MJL wrote:
It is in some areas simple and others nearly impossible. There are
many includes and functions scattered among many files in many
directories. While the code itself is not to hard to follow, there is
virtually no commenting or documentation.

Are there any recommended methods or tools for figuring this stuff
out?


Never tried it on PHP, but ctags and vim are a useful combo for many
languages. ctags to build indexes of the code and vim... just the best
editor ever :)
Jul 17 '05 #2
"MJL" <ma**@affordablemedicalsoftware.com> wrote in message
news:29**************************@posting.google.c om...
I am working with an open source piece of software that is
overwhelming me and I was hoping to get some advice.

It is in some areas simple and others nearly impossible. There are
many includes and functions scattered among many files in many
directories. While the code itself is not to hard to follow, there is
virtually no commenting or documentation.

I am working on a Windows XP machine, but I am comfortable and have
access to a Unix machine also (my web host via SSH).

Are there any recommended methods or tools for figuring this stuff
out?

Thanks for any advice. The software, by the way, is OpenEMR, which
can be found easily through Google.


You can attach something like print_r(get_include_files()) to the bottom of
a page to get a list of files included. Would give you some inkling of
what's going on.
Jul 17 '05 #3
"MJL" wrote:
I am working with an open source piece of software that is
overwhelming me and I was hoping to get some advice.

It is in some areas simple and others nearly impossible. There are
many includes and functions scattered among many files in many
directories. While the code itself is not to hard to follow, there is virtually no commenting or documentation.

I am working on a Windows XP machine, but I am comfortable and have
access to a Unix machine also (my web host via SSH).

Are there any recommended methods or tools for figuring this stuff
out?

Thanks for any advice. The software, by the way, is OpenEMR, which
can be found easily through Google.


I have worked my way thru some serious code. The best approach IMO is
use a php debugger that can single-step the code. You will soon
figure out what is going on. There are a number of threads on the
subject of php debugger or php IDE. If you need them, let me know,
and I will post them.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-reading-...ict140454.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=470509
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by arne.muller | last post: by
111 posts views Thread by Tonio Cartonio | last post: by
21 posts views Thread by Naya | last post: by
7 posts views Thread by David Delony | last post: by
41 posts views Thread by biplab | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.