Thread: Developing good logic skills

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    *Moved to General Discussions*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    Complete Beginner
    Join Date
    Feb 2009
    Quote Originally Posted by MK27 View Post
    I absolutely and very strongly disagree with Snafuist about this. You will be much much better off putting twice as much time into K&R (or whatever) than spending that time reading philosophy (even math philosophy).
    But you don't have to: we're sharing the exact same opinion here. fsx got what he asked for, namely book titles.

    All things begin as source code.
    Source code begins with an empty file.
    -- Tao Te Chip

  3. #18
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    United States
    Quote Originally Posted by MK27 View Post
    Bladactania, it would be stupid or crazy to try reading about computer algorithms if you did not have at least some grounding in at least one language.

    How an algorithm is presented doesn't matter; the "egghead" stuff Sharke refers to is probably the worst way to do it though. I believe the purpose is generally not explanatory anyway; it's academic analysis.

    So all that being said, the best and most practical explanation of a process is bound to be in real code -- plus, you can count on the fact that the source is an actual programmer. Beat that logic...
    Eh, your painting readers and authors with a wide paintbrush there. I find a contradiction that how an algorithm is presented doesn't matter to you but you are here defending a specific approach. This topic in particular is similar to floating point in that you do not need to understand how floating point works internally to use it on a regular basis but knowing how it works is still imperative, because it is easy to abuse a specific circumstance.

    That egghead stuff is actually asymptotic analysis, and as you will see notations around other resources to detail an algorithm's run time, it is important to understand. No, the explanation does not need to be complex or even that correct in a mathematical sense. That's why computer science is applied science. You may not even rely on a deep mathematical understanding unless the platform demands that you be stringent with your choices (such as programming a wristwatch). But you should know enough to know what O(n) means and how to classify your own algorithms as O(n). Hence there are nontechnical resources in some texts and online besides technical ones.

    That does not make in-depth resources bad or "the worst way to go about it." It depends on the reader's aptitude and circumstance.

    edit: fsx was not looking for an algorithm book or anything like that. We're off topic.
    Last edited by whiteflags; 04-21-2009 at 01:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MURK - a small preview
    By Mario F. in forum Game Programming
    Replies: 27
    Last Post: 12-18-2006, 08:22 AM
  2. Opinion on GOOD digicam
    By Shadow in forum A Brief History of
    Replies: 0
    Last Post: 08-22-2003, 05:37 PM
  3. Question about atheists
    By gcn_zelda in forum A Brief History of
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  4. Circular Logic
    By DavidP in forum A Brief History of
    Replies: 1
    Last Post: 10-15-2001, 08:10 PM