Live data from Hacker News

Advent of Code 2018

adventofcode.com

51–60 of 101 posts

Re: Advent of Code 2018

#51
post #30
post #9

Excited for this year's version. I did last year's event in OCaml which was a challenging, yet very rewarding experience. Still trying to decide what language to use this year.

Interesting choice. What made you want to learn Ocaml?

Always had been fascinated with functional programming, but kept stumbling with Haskell. Discovered the Real World OCaml [0] book and was instantly hooked. Sadly haven't been able to use it much outside of last year's Advent of Code and a toy ray tracer.

[0] https://dev.realworldocaml.org/

Re: Advent of Code 2018

#52
post #39

Earlier quoted context omitted.

Never rule out people cheating. Solving it on one account then doing it again in another account

That doesn't help - time is counted from midnight, so if you solve the problem on one account and then another, the second account will have a strictly worse time. About all it can really do is mess with the score distribution. Also, the input data for each problem is randomized per user, so you really do need a proper programmatic solution (i.e. simply copying another person's answer is unlikely to work).

You could hurt other people's scores though right? Like if you and one other competitor traded wins on different days, but you had a second account that you posted the same solution to, your competitor would get third place on your winning days (and thus fewer points).

(Please don't do this!)

Re: Advent of Code 2018

#53
post #17
post #9

Excited for this year's version. I did last year's event in OCaml which was a challenging, yet very rewarding experience. Still trying to decide what language to use this year.

I'm going to do Rust.

Yes, Rust is my other option I'm leaning towards. In process of learning it by building a ray tracer, so doing Advent of Code would be another way to get more familiar with it.

Re: Advent of Code 2018

#54
post #38

I did the AoC last year for the first time and was amazed how quickly some participants solved the puzzles, e.g. http://howtowriteaprogram.blogspot.com/2017/12/advent-of-cod... )

I'm one of the people who solved problems very quickly (3rd overall last year). I'm somewhat competitive by nature, and I did ACM programming challenges in undergrad (although I was never good enough to make the local team, heh). Happy to answer any questions you might have about "competitive" AoC; it's fun in a very different way than learning new languages for the competition. I personally used Python for the last…

For day 3 in 2017, the spiral. Were you just aware of this concept before hand?

Re: Advent of Code 2018

#55
post #32

I got a bit too invested in this last year. I even did a write up of one of the tasks. That year I did it all using JS since it's easy to write input parsers with it. This year I'll be doing it in Rust to stretch myself a little. https://qubyte.codes/blog/advent-of-code-2017-day-20-task-2

Depending on your skills it may stretch you a lot. I did 2016 in rust and it was a battle, I knew relatively little beforehand.

2017 I solved in kotlin and got all the way to the end. I remember closing my laptop on Christmas Day and feeling elated/tired

Re: Advent of Code 2018

#56
post #54

Earlier quoted context omitted.

I'm one of the people who solved problems very quickly (3rd overall last year). I'm somewhat competitive by nature, and I did ACM programming challenges in undergrad (although I was never good enough to make the local team, heh). Happy to answer any questions you might have about "competitive" AoC; it's fun in a very different way than learning new languages for the competition. I personally used Python for the last…

For day 3 in 2017, the spiral. Were you just aware of this concept before hand?

I’m not OP, but if I were solving this I’d just take the smallest square less than that number, figure out where it is (the top left or bottom right corner), and then “run” the algorithm from there, which should only require one “turn” at the most. You really don’t need to know anything about spirals in particular; just look for a pattern that you can take advantage of to reduce your work.

Re: Advent of Code 2018

#57
post #39
post #38

I did the AoC last year for the first time and was amazed how quickly some participants solved the puzzles, e.g. http://howtowriteaprogram.blogspot.com/2017/12/advent-of-cod... )

Never rule out people cheating. Solving it on one account then doing it again in another account

Aside from the other responses mentioning why cheating wouldn’t work, I don’t think it’s out of the question that people can solve these that quickly. The “trick”, from my experience, has been to quickly skim the problem, extract useful information (which you can “learn” to do if you do it enough), and try to figure out how to solve the problem while you are writing boilerplate to set up the problem. Using Python or a similarly high-level language often helps.

Re: Advent of Code 2018

#58

Forget the code challenges for a minute, and just look at that beautiful font and text-shadow combination on the logo.

To be honest that website looks very bad to me. Fonts are too thin and that makes the text quite difficult to read. Much more than e.g. HN. And that's in my desktop PC, in mobile I went directly to close the tab.

(Update) The "high contrast" CSS style they provide is more readable, but I'm sure it should be possible to create a dark style where readability doesn't suffer that much. That font is just not the best choice.

Re: Advent of Code 2018

#59
Would be cool if they asked for information after you completed a puzzle for the day - scale of 10 how hard did you consider the puzzle, did you learn something new, what language did you use to complete it - would be super interesting data I bet.

Re: Advent of Code 2018

#60
Looks like a cool project.

I'm just curious about why this is billed as an Advent calendar, when really the only thing it has in common with an Advent calendar is that it terminates on Christmas.

Is there anything about it that has anything to do with Advent, i.e. the Christian liturgical season that precedes Christmas?

Post reply on HN