News for hackers. Stuff that matters.
Re:Clojure will affect the way you think about programming by DigitalJack on Friday August 04, 2017 @11:30AM (#14929416)
stack traces still suck as far as I've seen on the 1.9 alpha branch. And while clojure spec is pretty neat, the barge-load of information it dumps on a spec failure is overwhelming.

That said, the info it dumps is in the form of clojure data structures. In my own programs, I've added code to refine this output to something useable, but it's particular to my project and I don't think generally useful.

There are other projects to aid in this fashion too. Expound is one that takes inspiration from Elm, and Inspectable is intended to help at the repl by launching a gui for exploring Specs and failures.

I've tried both, but couldn't get inspectable to work in my environment, and expound isn't meant to handle the error I've been dealing with, so I can't speak to either.

Re:Clojure will affect the way you think about programming by bbrinck on Monday August 07, 2017 @09:07AM (#14947195)
"expound isn't meant to handle the error I've been dealing with"

If you have some time, would you be willing to expand on this? I'm curious to learn more about your error. I'm the author of Expound so I'd like to make it more useful (or, at least, understand the limits of a library like Expound).

Re:Clojure will affect the way you think about programming by phyrex on Friday August 04, 2017 @01:47PM (#14930485)
Expound recently made my life a lot better by cutting through one of those ridiculous spec errors and telling me exactly what was wrong! I was really impressed.