Re: Learning C



Richard G. Riley wrote:

"Nick"posted the following on 2006-03-10:

I thought you were implying Linux was better because the *debugger* was


There is no "the debugger" : although gdb is prevalent in Linux -
albeit with several front ends.

better. I've never stepped through an existing application (that wasn't
broken)
with a debugger. If you say it's a good way to learn C, who am I to
argue.

I said its one way to get used to the structure and flow of
applications which is what he wants. Also, I do think a debugger can
give real insight into how C works in the real world : results of
operators there for you to see with no overhead of printfs which some
favor.

The printf's are portable. The printf's work without manual intervention.
The printfs work without having to understand an additional tool.

But it *still* sounds bizzare to me


What does? Are we talking about the same thing? Do you doubt that
watching other, well written apps work is beneficial to a newbie? It
seems fairly clear to me that it can only help. Its how the entire
Open SW system works : people learning by doing and picking up on
other peoples work.

You've conflated "learning by doing and picking up on> other peoples work"
with "watching ... apps work" and that with stepping through an application
using a debugger. I think that's misleading.

--
Chris "sparqling" Dollin
"Who do you serve, and who do you trust?"
.



Relevant Pages

  • Re: Code fails with Segmentation Fault
    ... fails invariably with Segmentation Fault. ... First of all use a debugger to find out where the seg fault occurs. ... learning to use gdb [or similiar ... A graphical front-end like ddd might alleviate the learning curve. ...
    (comp.lang.c)
  • Re: Good debugger?
    ... Stepping through a script sequence, one line at a time, and watching ... the variables change values as you do so is a much better approach to ... learning a language, in my opinion, then inputing values to a function ... think I've ever seen a debugger do that before). ...
    (comp.lang.tcl)
  • Re: Learning C
    ... in understanding the language and how it was implemented ... 'test harness' under a debugger, ... tracing someone else's code is likely to be much of a learning tool. ... I also think writing code is the probably the most useful way to learn. ...
    (comp.lang.c)
  • cant understand the compiler messages
    ... I am learning about the basic usage of a doubly linked list ... I have got the compiler errors which I ... program, I can use a debugger, but at this point, I can't even use a ... I am beginning to realize the difficulty of learning C++ all by ...
    (comp.lang.cpp)
  • Re: Do we have educational IDEs?
    ... instructors think debuggers are a hinderance at the early stages of learning to program. ... Look at your code first to find a problem before jumping to a debugger. ... With Java, I'll agree with you. ... choice between inserted debug code and a debugger at all. ...
    (comp.lang.java.programmer)