Fork me on GitHub
#adventofcode
<
2018-11-22
>
borkdude10:11:49

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

👍 4
borkdude10:11:24

Whose Advent of Code code can I include in this repo? PRs are welcome of course

borkdude10:11:20

Code will be anonymized, so you don’t have to fear your solution will be compared with others 😉.

val_waeselynck10:11:47

That's fine by me, but are we talking about this year's AOC or last year's?

borkdude10:11:24

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

borkdude10:11:18

The purpose is mostly to check our specs or to encounter usage we didn’t think of before.

eval202010:11:29

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.

👍 4
eval202010:11:46

ah, you posted just there borkdude 😉

borkdude10:11:52

Idea for Zulip: make a topic per day?

eval202010:11:00

yeah something like that

eval202010:11:27

could be even day X exercise, day X answers

eval202010:11:41

let’s see what people come up with

borkdude16:11:19

Interestingly I get different answers for day 2017 day 2 for both @mfikes and @athos than my solution, while the Advent of Code page says my answer is correct

mfikes16:11:23

Right, since the data varied per user, sometimes you get away with a non-general solution :(

borkdude16:11:16

Should the code work with all input data and return the same output given the same input? Think so?

mfikes16:11:15

Ideally, each individual’s solution would work on other individual’s data.

borkdude16:11:56

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