PCWorld Forums

PCWorld Forums: Need Some Help Understanding Source Code - PCWorld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Some Help Understanding Source Code Can somebody point to a guide about source code structure?

#1 User is offline   dstarfire 

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 63
  • Joined: 13-February 07

Posted 15 July 2012 - 10:04 AM

I can read and understand most code (even if I don't understand what every line does, I can get a general idea of what's going on). However, I'm rather lost with projects where the code is broken up into multiple files, referencing each other and frequently arranged in some hierarchical structure.

Is there a standard for how this stuff is broken up? How can I find which file/s contain the function I want to modify? I'd like to go in and tinker with stuff, but I don't want to learn the entire language and every toolkit and library used by a program.
0

#2 User is offline   linuxrants7xpg 

  • Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,860
  • Joined: 11-May 11
  • Location:Phoenix, AZ

Posted 15 July 2012 - 10:00 PM

It all depends on who wrote the code really. Just read the includes first. Familiarize yourself with those, and make yourself an index. Which file has which functions and brief summary of what they do just long enough for you to remember. Should get you what you need to know.
------------------------------------------------------------------------------------------
http://www.linuxrants.com
http://twitter.com/linuxrants
http://facebook.com/linuxrants
Google+

"42.7 percent of all statistics are made up on the spot."
— Steven Wright

"Dawn: When men of reason go to bed."
— Ambrose Bierce


------------------------------------------------------------------------------------------
1

#3 User is offline   dstarfire 

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 63
  • Joined: 13-February 07

Posted 16 July 2012 - 12:28 PM

View Postlinuxrants7xpg, on 15 July 2012 - 10:00 PM, said:

It all depends on who wrote the code really. Just read the includes first. Familiarize yourself with those, and make yourself an index. Which file has which functions and brief summary of what they do just long enough for you to remember. Should get you what you need to know.


Thanks. I didn't even think to look over the includes. That'll at least help me figure out the hierarchy and how functions are grouped/arranged.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users