Re: "Soft" failures with spec?

2017-02-18 Thread Linus Ericsson
There is a good talk by Chris Houser, "Condition Systems in an Exceptional Language" [1] where he systematically goes through many of the aspects on handling exceptions in batch processing (like the problem Josh describes). An interesting way to build a conditional error handler is outlined towa

Re: "Soft" failures with spec?

2017-02-18 Thread Austin Haas
I have the same problem: I need to log warnings based on some criteria and reject records completely based on other criteria. I'm currently using two separate specs, but I haven't convinced myself that is the best solution. -- You received this message because you are subscribed to the Google G

"Soft" failures with spec?

2017-02-17 Thread Josh Tilles
Has anyone explored using spec for “soft” failures? For example, if I’m writing an ETL system to migrate legacy customer account data, all I might require of a record’s :created field is that the value is a syntactically valid date-time string. If any record claimed that it was created on "1970