473,503 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1628
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1893
by: perseus | last post by:
Well, As you all have seen, I received a host of messages that say that I should not post up here a question about BOOST. BOOST is a FREE interface that allows you, THE STANDARD C++ USERS, to...
5
1959
by: Abyss | last post by:
My view. anyone that doesn't like it tough, click off and stop reading it. I have spent the last 45 minutes reading through all the posts, and I believe that you have all missed the mark of...
4
2071
by: Mark Stijnman | last post by:
A while ago I posted a question about how to get operator behave differently for reading and writing. I basically wanted to make a vector that can be queried about whether it is modified recently...
6
5243
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
111
19924
by: Tonio Cartonio | last post by:
I have to read characters from stdin and save them in a string. The problem is that I don't know how much characters will be read. Francesco -- ------------------------------------- ...
8
2319
namcintosh
by: namcintosh | last post by:
I really need some help. I am trying to read some information from a file in C++. Here is the program that I wrote. (Beware, I am very new to this, so don't freak out if the program seems a...
21
626
by: Naya | last post by:
Hello, everyone!!! Well, I have a situation here. I am trying to read this data from a file, but the wrong values keep spitting out at me. Here's what I mean: Program: int main() {...
7
1760
by: David Delony | last post by:
Since the best way to learn how to program well is to read other people's programs, which open source projects written in C stand out as examples of well-written code? -- There's no place...
41
5339
by: biplab | last post by:
Hi all, I want to read the pixel values of a .bmp image(which will be input to the code) into a matrix...plz help me out as i can not understand how to achieve this... thanks in advance ...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.