News for hackers. Stuff that matters.

vogon_poet

I think you might be misunderstanding what "functional" means. C is typically considered a procedural and not functional language, even though you do define everything in functions.

Functional programming refers to languages (like scheme and Haskell, and also Ruby and Python) where a function is no different than any other object in memory (like int, char, etc.). It can be returned as a value and passed as a parameter. A function can take functions as arguments and return another function as a result, kind of like taking the derivative or integral in math. (Something like this can be done in C with function pointers, but it's ugly.) Moreover, it's possible to define an "anonymous function", or "lambda". This is essentially an expression that evaluates to a function without a name, the same way you can type (x * y * z) and have it evaluate to a number without having to store it in a named variable first.

Also, you ideally want to define "pure functions", which means functions that return the same value for the same inputs no matter when you call them. These are much easier to debug than code that depends on outside conditions.

When you wrap your head around functional programming, it is actually a lot easier and more sensible in many cases than OOP. Of course, OO is still ideal in a lot of situations, which is why many languages (Python, Ruby most notably) combine the two.

(if you've been in academia, Mathematica is an example of a functional language.)

Re:"Yes, but what are your credentials, Mr Stross?" on Saturday July 09, 2011 @08:31PM (#2746691)
Lincoln-Douglas is, in many places, mutating to be just like policy debate (kritiks, spreading, reliance on "cards" rather than actual argument).

To solve this problem, the NFL (National Forensic League) created a new form of debate, called Public Forum, that focuses on clear, persuasive rhetoric at the expense of detailed research. And now it is starting to mutate just like Lincoln-Douglas.

I think that fast-talking and reliance on out-of-context quotes is sort of the dominant strategy for any kind of debate. As long as there is a rule than an unrefuted argument stands as true, quantity will inevitably become more important than quality, and the credentials of a source will be more important than what it actually says.

This process doesn't occur when judges are allowed to make their decision based on persuasive speech and rhetoric as much as on logic, but debate judging is already so subjective that this presents a problem for many people.