adventofcode

Happy Advent 2020! Please put answers in the pinned threads or create one if it does not exist yet. | https://github.com/adventofcode-clojurians/adventofcode-clojurians | Join the private leaderboard with code 217019-4a55b8eb
borkdude 2018-11-22T10:16:49.001700Z

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

👍 1
borkdude 2018-11-22T10:17:24.002600Z

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

borkdude 2018-11-22T10:18:20.003400Z

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

val_waeselynck 2018-11-22T10:18:47.003900Z

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

borkdude 2018-11-22T10:19:24.004600Z

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

borkdude 2018-11-22T10:21:18.005200Z

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

val_waeselynck 2018-11-22T10:25:50.005400Z

Here you go: https://github.com/vvvvalvalval/advent-of-code-2017

borkdude 2018-11-22T10:27:06.005700Z

thanks!

athos 2018-11-22T10:31:21.006200Z

Feel free to use my code! 😃 https://github.com/athos/advent-of-code-2017

👍 1
eval2020 2018-11-22T10:32:29.006600Z

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.

👍 1
eval2020 2018-11-22T10:32:46.007Z

ah, you posted just there borkdude 😉

borkdude 2018-11-22T10:32:52.007300Z

Idea for Zulip: make a topic per day?

eval2020 2018-11-22T10:33:00.007500Z

yeah something like that

eval2020 2018-11-22T10:33:27.008100Z

could be even day X exercise, day X answers

eval2020 2018-11-22T10:33:41.008600Z

let’s see what people come up with

borkdude 2018-11-22T16:00:19.010400Z

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

mfikes 2018-11-22T16:02:23.012700Z

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

borkdude 2018-11-22T16:03:16.013200Z

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

mfikes 2018-11-22T16:05:15.015200Z

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

borkdude 2018-11-22T16:05:56.015900Z

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