News for hackers. Stuff that matters.
Re:Coding Horror: Should Competent Programmers be "Mathemati... by potatolicious on Wednesday April 01, 2009 @10:54AM (#541893)
Maybe it's my engineering background, but I don't feel like this is semantics - it's unfair to categorize logical thinking as "mathematical" thinking. There are plenty of us from different backgrounds who are big on logic, and IMHO make great programmers. Mathematicians are far from the only ones who can think logically, and the term is at least somewhat misleading.
Re:Coding Horror: Should Competent Programmers be "Mathemati... by donaq on Wednesday April 01, 2009 @11:56AM (#542002)
Uh, logic is a branch of mathematics. From wikipedia:

Logic is the study of the principles of valid demonstration and inference. Logic is a branch of philosophy, a part of the classical trivium, as well as a branch of mathematics.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by carbon8 on Wednesday April 01, 2009 @01:19PM (#542130)
potatolicious has a point.

In fact, in universities, logic (formal logic, with symbols) is usually taught by philosophy departments.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by dkarl on Wednesday April 01, 2009 @04:24PM (#542398)
Only by tradition, and in my experience the philosophy department only teaches the class that serves to introduce formal logic to all undergrads. Philosophers deal with words. They like to discuss the various ways a verbal problem might be reduced to logic, and they might be interested in what can be said (in terms they already use) about a system of logic, but that's the limit of their interest. If you take a graduate-level math class in logic (or metamathematics or foundations or whatever your local math department calls it) or even if you just take an upper-division set theory class, you'll learn more about mathematical logic than anyone in the philosophy department wants to know.
Re:Coding Horror: Should Competent Programmers be "Mathemati... by carbon8 on Wednesday April 01, 2009 @06:14PM (#542543)
the philosophy department only teaches the class

Most or all undergrad pure logic classes, as far as I've ever seen. There aren't usually a whole lot of pure logic classes, so it's entirely possible that your school(s) might only have had one.

Philosophers deal with words.

Philosophers deal with logic in arguments. I took a couple logic classes during my undergrad and they were entirely symbolic logic. I also took a couple philosophy classes, and they used symbolic logic extensively to describe the flow of logic in arguments. Skimming through MIT OpenCourseWare indicates it's similar there: http://is.gd/qaE0

If you take a graduate-level math class in logic ... even if you just take an upper-division set theory class, you'll learn more about mathematical logic

So you are saying that heavily mathematical logic is more heavily mathematical? Interesting. Do you also learn about tautologies in these classes?

I'm guessing that you are actually implying that mathematical logic is more useful to programmers. As I stated elsewhere, during my undergrad I took classes that touched on both philosophical and mathematical logic concepts and I definitely find myself using both. In my experience: symbolic/philosophical concepts in high level development, symbolic/mathematical concepts in low level development.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by dkarl on Wednesday April 01, 2009 @06:27PM (#542563)
The distinction I'm making is between logic that is purely symbolic, where conclusions follow mechanically from assumptions and rules, and logic that is applied to verbal argument. You can describe verbal argument using symbolic logic, but applying symbolic logic to words easily results in ludicrous conclusions unless you apply other filters.

I'm not saying that mathematical logic is more heavily mathematical, I'm saying that philosophers are only interested in mathematical logic concepts they can extract from their mathematical context and apply in words. Aside from that, they are not interested in mathematical logic at all. Whether they are interested in mathematically defined concepts such as "complete," "consistent," and so forth depends entirely on whether the concepts have suggestive names that seem to imbue mathematical results with meanings beyond mathematics.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by carbon8 on Wednesday April 01, 2009 @07:00PM (#542612)
I'm arguing that the application of logic to arguments and ideas that was part of philosophy has greater impact on high level application design and architecture than math. Taking a real world concept, need or set of actions and translating them into a structure that can be constructed with a programming language uses logic in fundamentally the same way philosophy does, although in an academic setting this area is computer science. Math is most useful at an implementation level, generally coming into play when dealing with components, algorithms and other more narrow implementation details.

The point is that logic used in computer science/information science is a hybrid that is informed by other forms of logic (including linguistics), not just math.

I'm saying that philosophers are only interested in

I don't know what philosophers are only interested in because I don't know what a "philosopher" is.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by dkarl on Wednesday April 01, 2009 @08:47PM (#542734)
I think I misunderstood you; I thought you meant mathematical logic (the kind that can be generated mechanically from axioms and rules) and not the kind of logic that requires judgment and applies to words and concepts. If you meant the second kind, then I retract what I said. But you did say, "formal logic, with symbols," and that kind of logic is a pretty weak tool to apply to arguments and ideas.

As for what a philosopher is, we're all philosophers, but not all of us get paid for it.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by donaq on Wednesday April 01, 2009 @01:50PM (#542169)
That raises an interesting question, doesn't it? I wonder how many mathematicians turn out to be good programmers vs how many philosophers turn out to be good programmers?
Re:Coding Horror: Should Competent Programmers be "Mathemati... by dkarl on Wednesday April 01, 2009 @04:34PM (#542420)
From experience, I have concluded that whether mathematicians become good programmers depends on whether they have an engineering aesthetic. Mathematical elegance and engineering elegance are not exactly the same thing. A mathematically trivial solution can be a huge practical mess. Mathematicians with no engineering aesthetic can't see the difference and tend to produce big blobs of unmaintainable code. Mathematicians with an engineering aesthetic are some of the best programmers I've worked with.

I've only worked with one philosopher. He's very creative and produces reams of working code, but new requirements always mean new reams of code. Everyone suspects there must be a lot of redundancy in his code, but then, nobody has needed to look, because it all works....

Re:Coding Horror: Should Competent Programmers be "Mathemati... by crpatino on Wednesday April 01, 2009 @01:30PM (#542145)
Why would you consider unfair to call logic thinking as mathematical thinking? Maybe it is the engineering background indeed, at least it is for myself. Maybe it was all those "engineering math" mandatory courses... you know, calculus, differential equations, linear algebra, statistics. If we keep thinking about math in terms of some sort of computation which ought to result in a numeric answer... then, absolutely, I agree that has nothing to do with logic.

However, least see what happens when one does not apply mathematical thinking into his own reasoning. I do it myself from time to time and refer to it as my "rat intelligence". You go over and over the facts, one at a time, trying to figure out the way out... It feels pretty much like a rat walking through a maze inside of my brain.

But it comes to a point, when the problem is very hard, that no matter how many times the rat goes over and over the same data, it does not find the answer. In that case you need a superior type of reasoning. You need to step aside and look at the problem as a whole. To find patterns that you can abstract out and rephrase the problem in a way more tractable. And I think in this broader sense logic and math use the same type of mental tools (principles) to attack the same issues.

Re:Coding Horror: Should Competent Programmers be "Mathemati... by billswift on Wednesday April 01, 2009 @05:59PM (#542527)
Actually, all of those computations "which ought to result in a numeric answer" are done according to the principles of logic. Maybe I see it more clearly having taught myself calculus and more advanced math without having someone to "explain" things to me, but all mathematical problem solving is also logical reasoning.