473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

debugging makes a person a better programmer

I'm just wondering,

people tell me that helping to debug someone elses program is a really good
way to learn to understand the language it's programmed in.

My question is: from wich point of can someone start to try to help a
programmer by debugging or testing a program.

If indeed you already need a profound knowledge of the language than how can
you learn something about it? except for the fact that you see other
possibilities of way to programm.

Are there pages that can be found with programs to help understand the
language or the way to use the language.

thanks in advance
ik
Jul 18 '05 #1
1 1561
broebel wrote:
I'm just wondering,

people tell me that helping to debug someone elses program is a really good
way to learn to understand the language it's programmed in.

One of the reasons that "debugging as learning" is often useful is that
many modern systems are large, complex collections of loosely coupled
components. Zope, for instance, is almost impossible to grok fully
without spelunking through with a debugger to see what actually happens
with the security machinery, the traversal machinery, etceteras. The
debugging gives you a guide to "where to start reading the code". Keep
in mind that in these situations, you're not actually looking for bugs,
you're just using the debugging tool to figure out what's going on under
the covers.

As to the actual suggestion of trying to fix bugs to learn. It can be a
good way, but it really does need a mentor to make it an efficient
operation. If you want to pursue it, look at the bug-tracker for the
project in which you're interested (this is particularly easy with
SourceForge-hosted projects), and choose something that seems small.
Email the developers of the project to let them know you'll be playing
with the bug, (let them know that you're a new-ish developer).

Depending on the maturity and size of the projects, you may even find
"how to get started hacking on X" documentation hanging around.
Otherwise you'll often need to talk with the developers to make any real
headway. The developers of the project may even have a suggestion for
what bug would be an appropriate first step. If you're lucky, the
developers will have failure-case code available (i.e. unit-tests) so
that you can know when you've succeeded :) .
My question is: from wich point of can someone start to try to help a
programmer by debugging or testing a program.

If indeed you already need a profound knowledge of the language than how can
you learn something about it? except for the fact that you see other
possibilities of way to programm.

One of the ways that people often suggest is to read (and then play
with) small samples of really well-written code. The Python Cookbook
(both the dead-trees and the online versions) is designed for this kind
of learning. This code will tend to have fairly low defect rates, but
it is, in essence, a collection of the "verse literature" (poetry) of
the language (where projects such as Zope or Twisted is the "prose
literature", i.e. long-form/novels).

Personally, I'd suggest studying short-form examples of the art first
(i.e. poetry), they tend to be easier to keep entirely within the mind,
and will tend toward more varied expressions of what can be done. Once
you've been exposed to the possibilities, try spelunking through the
larger and more heavily structured projects (e.g. Twisted, Zope).

Have fun, and good luck,
Mike

_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/


Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

79
by: Tim Tyler | last post by:
PHP has some pretty funky error messages: "parse error, unexpected T_IF"; "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING"; Humans often see these - shouldn't they be more...
72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
23
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch...
41
by: jacob navia | last post by:
In the C tutorial for lcc-win32, I have a small chapter about a debugging implementation of malloc. Here is the code, and the explanations that go with it. I would appreciate your feedback...
83
by: achintmehta | last post by:
I am working on MontaVista Linux on a PPC board. The compiler I am using is a gnu cross compiler cross compiler (ppc-82xx-gcc) The application/software that is being run, is messing up the...
11
by: jacob navia | last post by:
I was browsing the web pages of les haltton, a software engineering professor ( http://www.leshaltton.org ) and I found this data in htp://www.leshatton.org/Documents/dross_2006.pdf < begin...
1
by: Dan Stromberg - Datallegro | last post by:
Is there a debugging mode in emacs that works well with python? I tried gud, but it was giving me errors, so I thought I'd ask before I try to get it to work: Is there an emacs mode (perhaps gud)...
6
by: Jeff | last post by:
I understand there's socket / recursive calls here, but this is a C question, really it is: Here's the code block in question: #if defined(__GLIBC__) { struct hostent hent; char hbf;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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,...
0
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...

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.