I’m thinking of collection some test Clojure programs to run with speculative (a collection of specs for core functions). I made a small start here: https://github.com/borkdude/advent-of-spec
Whose Advent of Code code can I include in this repo? PRs are welcome of course
Code will be anonymized, so you don’t have to fear your solution will be compared with others 😉.
That's fine by me, but are we talking about this year's AOC or last year's?
any year. I’ll try to include as many as I can, time permitting. But it’s most fun to include this year in “real time” of course
The purpose is mostly to check our specs or to encounter usage we didn’t think of before.
Here you go: https://github.com/vvvvalvalval/advent-of-code-2017
thanks!
Feel free to use my code! 😃 https://github.com/athos/advent-of-code-2017
How about running this year’s codeofadvent on Zulip? I created a stream there at https://clojurians.zulipchat.com/#narrow/stream/152583-adventofcode Apart from having history, and syntax highlighting it would give us an easier way to discuss exercises in a spoiler-free way.
ah, you posted just there borkdude 😉
Idea for Zulip: make a topic per day?
yeah something like that
could be even day X exercise
, day X answers
let’s see what people come up with
https://github.com/borkdude/advent-of-spec/blob/master/src/aos/y2017/d02.cljc#L114
Right, since the data varied per user, sometimes you get away with a non-general solution :(
Should the code work with all input data and return the same output given the same input? Think so?
Ideally, each individual’s solution would work on other individual’s data.
ok, maybe I’ll change the test assertion to (number? ...)
instead of a specific answer then.. since I will take too much work aligning them