Live data from Hacker News

Advent of Code 2019

adventofcode.com

61–70 of 124 posts

Re: Advent of Code 2019

#62

Earlier quoted context omitted.

For someone just starting out they would get stuck on this very first problem, it involves recursion. People 'get' recursion, but coding it is something different.

It doesn’t need recursion, you can do a while(round(x/3)-2 > 0) type thing, but recursion is simpler.

Ah true, i just naturally reach for it in elixir

Re: Advent of Code 2019

#63
post #44

Earlier quoted context omitted.

That one wiped me out for a week too, and caused borderline psychological problems. Ultimately though I realised that if I followed the description word by word, and made no assumptions, then I got the right solution. Still, a nightmare: you could pass all the examples, or even some alternate real sample data, and still get it wrong if you got the ordering slightly incorrect.

Yeah, it's really frustrating when the text summary is vague and underspecified. It makes it hard to understand exactly the result the author is looking for, which isn't the fun kind of puzzle.

Yeah. That sounds like work and me begging business side for better requirements.

Re: Advent of Code 2019

#65

Eric, the author, says he won't accept any puzzle submissions because of attribution and legal issues. This seems like the wrong outcome for people who want to make the site better but don't want credit, compensation, or attribution. Has anyone seen a site using an IP assignment agreement which is the equivalent of "take my work, I don't want credit, and it's just for your site"? The Creative Commons CC0 license come…

It’s a preference in his case that cannot be solved with licensing. Eric doesn’t want even potential ideas to influence him, and he says he has more puzzle ideas than time to implement them.

Personally, I suspect that he wants something that consumes so much of his free time to wholly be his, and I respect that.

Re: Advent of Code 2019

#66
I went to bed before trying it last night, but couldn't sleep. So I did the day one problem early this morning. It was fun, and went quicker than I thought. I guess I must've improved from last year.

Re: Advent of Code 2019

#67

Earlier quoted context omitted.

And?

if this is a religious project, it should be clearly marked as such. if it's not, why not use a nonreligious word?

Because advent is a common term for the 4 weeks before Christmas even in non religious contexts. And that is how it's used in this non religious project.

Re: Advent of Code 2019

#68

Eric, the author, says he won't accept any puzzle submissions because of attribution and legal issues. This seems like the wrong outcome for people who want to make the site better but don't want credit, compensation, or attribution. Has anyone seen a site using an IP assignment agreement which is the equivalent of "take my work, I don't want credit, and it's just for your site"? The Creative Commons CC0 license come…

“your site” is really complicated. Who is “you”, person, website or the company? If it’s the person can they transfer the rights? What happens if they die? If they donate the estate? If they get hired or contracted? If the website expands scope or changes in any way?

Re: Advent of Code 2019

#69
post #49

Self promotion, but as this is my first year doing advent of code I'm solving all of the problems using awk[1], the solutions will be published here[2] [1]: https://man.openbsd.org/awk [2]: https://jo.ie/advent-of-awk-2019.html

I've used awk for one year of Advent of Code: https://github.com/bewuethr/advent-of-code/tree/master/2016

Some problems feel like they were designed to be solved in awk, like the assembly style ones. Others, not so much... But it was great fun overall and I learned a lot about awk.

Post reply on HN