Live data from Hacker News

Show HN: Advent of Code CLI

github.com

11–20 of 25 posts

Re: Show HN: Advent of Code CLI

#11

> Tool to automate downloading and submitting advent of code problems. Well... the biggest use case I can think of is automated, AI assisted, problem solving. Which isn't really aligned with the spirit of AOC. In fact they politely asked people not to, if I'm not mistaken.

I am actually using it to submit my solutions without leaving the editor (out of lazyness).

I just need to run `aoc submit ` and immediately get feedback if I am correct. If that it the case, it automatically downloads the second problem so I can immediately continue.

As explained in another comment I'm not participating competitively. I just really like automating things.

I also think that AI assisted program solving if against the spirit of AoC, so I will add a note to the readme to discourage it.

Re: Show HN: Advent of Code CLI

#13
post #9
post #8

Do we really need a CLI to replace Cmd-S and a copy/paste command?

This is probably for people who are trying to get on the leaderboard.

i watch someone who consistently places top 5 on youtube. they code in vim on windows in the terminal, exit vim to run at the command line, and then copy and paste from the terminal into a browser.

Re: Show HN: Advent of Code CLI

#15
I wonder why these are not available from the project directly and why input data is not in some standard format like JSON. Parsing the input for speed is the dirtiest part. If it was always in JSON, then at least that part would have been prettier!

Last nights task I did with stinky code string-splitting for speed.

Re: Show HN: Advent of Code CLI

#16
post #15

I wonder why these are not available from the project directly and why input data is not in some standard format like JSON. Parsing the input for speed is the dirtiest part. If it was always in JSON, then at least that part would have been prettier! Last nights task I did with stinky code string-splitting for speed.

I’ve often wondered why AOC and hackerrank and the like have you solving the required problem AND the implicit task of parsing the input.

Re: Show HN: Advent of Code CLI

#18
It's funny to me how much of the code is just replicating behavior you would already have for free if you just had a small shell script that used standard tools like curl and sed, and it wouldn't need to be compiled, and it would be one single file instead of four with a nested source directory, and it wouldn't have 2000 lines of cargo config.

Re: Show HN: Advent of Code CLI

#19
post #15

I wonder why these are not available from the project directly and why input data is not in some standard format like JSON. Parsing the input for speed is the dirtiest part. If it was always in JSON, then at least that part would have been prettier! Last nights task I did with stinky code string-splitting for speed.

I think the first (or first couple) AOC relied on JSON input more.

I assumed Eric (the creator) moved away from JSON to have a level playing field and simplify parsing (and potentially build dependencies) across various programming languages.

Re: Show HN: Advent of Code CLI

#20
post #15

I wonder why these are not available from the project directly and why input data is not in some standard format like JSON. Parsing the input for speed is the dirtiest part. If it was always in JSON, then at least that part would have been prettier! Last nights task I did with stinky code string-splitting for speed.

I’ve often wondered why AOC and hackerrank and the like have you solving the required problem AND the implicit task of parsing the input.

The task of parsing the input is the only transferable skill in the whole thing.
Post reply on HN