Is there a software-engineering methodology for functional programming? [closed]

Thank God that the software-engineering people have not yet discovered functional programming. Here are some parallels: Many OO “design patterns” are captured as higher-order functions. For example, the Visitor pattern is known in the functional world as a “fold” (or if you are a pointy-headed theorist, a “catamorphism”). In functional languages, data types are mostly … Read more

How do you make a web application in Clojure? [closed]

Compojure is no longer a complete framework for developing web applications. Since the 0.4 release, compojure has been broken off into several projects. Ring provides the foundation by abstracting away the HTTP request and response process. Ring will parse the incoming request and generate a map containing all of the parts of the request such … Read more

Debugging in Clojure? [closed]

There’s also dotrace, which allows you to look at the inputs and outputs of selected functions. (use ‘clojure.contrib.trace) (defn fib[n] (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2))))) (dotrace [fib] (fib 3)) produces the output: TRACE t4425: (fib 3) TRACE t4426: | (fib 2) TRACE t4427: | | (fib … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)