473,811 Members | 2,566 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 1655
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**@affordabl emedicalsoftwar e.com> wrote in message
news:29******** *************** ***@posting.goo gle.com...
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_inc lude_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
1906
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 read and manipulate the files of a directory. I asked a question about configuring this wonderful and helpful interface, and all I got was hostile and stupid messages with absolutely no answer to my question. I just wanted to tell you that I...
5
1977
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 that post. The post was not about strict or transitional pages, it wasn't even about
4
2088
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 or not. My first idea, using the const and non-const versions of operator, was clearly not correct, as was pointed out. Julián Albo suggested I could use proxies to do that. I've done some googling for proxies (also in this group) and personally,...
6
5278
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
20084
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 -- ------------------------------------- http://www.riscossione.info/
8
2334
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 little off). #include <iostream> #include <conio> #include <fstream> #include <string> using namespace std;
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() { ifstream inFile;
7
1779
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 like ~! David Delony E-mail: ickyelf@gmail.com Blog: http://ddelony.livejournal.com
41
5433
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 biplab
0
9730
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4341
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 we have to send another system
3
3020
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.