Live data from Hacker News

Advent of Code 2017

adventofcode.com

41–50 of 77 posts

Re: Advent of Code 2017

#41

Is it a death sentence to try and learn Haskell on this challenge? Or should I go with a language I'm more comfortable in?

I went into ICFP 2007 with two other dudes, only one of us knew Haskell (not me), and yes, it was a death sentence.

However, ICFP is 4 days, not a month, and the experience was good enough that it made me want to actually learn Haskell properly. I had fun and benefited in the long run. :)

Re: Advent of Code 2017

#42

Is it a death sentence to try and learn Haskell on this challenge? Or should I go with a language I'm more comfortable in?

I found Project Euler really helpful for learning new languages, I imagine AoC is similar.

Though I find Project Euler to be pretty heavy on the math problem solving, and not much on the day-to-day programming problem solving.

Re: Advent of Code 2017

#43
post #36

Earlier quoted context omitted.

I'm thinking on doing them in Rust and Clojure. I've dabbled in Clojure before but nothing serious and I'd like to build up some more familiarity. Rust because it's the first systems programming language that grabbed my attention; plus it's always good to have a varied selection of tools in your proverbial toolbox. I know that I can probably do them in 10 minutes in Python, but that's not going to be as fun or valuab…

> I know that I can probably do them in 10 minutes in Python Then you are in the absolute top tier of the people competing. Either that, or you probably belong in this subreddit https://reddit.com/r/iamverysmart ;)

Haha, I meant the actual coding part. I'm sure the problem solving would take me longer, it's just that once I have a solution in mind I can code it in 10 minutes in Python, since I'm very familiar with it and use it almost on a daily basis.

Having to think about basic things such as how to instantiate hash maps, what is the syntax for control flow, does this language have this particular functionality. This can take hours spent in reading documentation and debugging.

From what I've seen from last year, the problems arent't that hard (they're meant to be solved within a day), so the real time consuming part is the coding.

Re: Advent of Code 2017

#45

Earlier quoted context omitted.

How does the scoring work? Is it dependent on speed? Are you penalised for incorrect attempts? What time / timezone are the problems released?

Problems are released midnight EST. First person with a solution globally gets 100 points, second person gets 99, etc. So you have to be one of the first solvers globally to get any points.

If you feel the global challenge is out of reach, you can setup a private leaderboard for you and anyone you give the 'join code' to, localizing competition and points to your own circle of "AoC" friends: http://adventofcode.com/2017/leaderboard/private

Re: Advent of Code 2017

#46
post #43

Earlier quoted context omitted.

> I know that I can probably do them in 10 minutes in Python Then you are in the absolute top tier of the people competing. Either that, or you probably belong in this subreddit https://reddit.com/r/iamverysmart ;)

Haha, I meant the actual coding part. I'm sure the problem solving would take me longer, it's just that once I have a solution in mind I can code it in 10 minutes in Python, since I'm very familiar with it and use it almost on a daily basis. Having to think about basic things such as how to instantiate hash maps, what is the syntax for control flow, does this language have this particular functionality. This can take…

I get what you mean, but after the few first days it gets kinda hard imo. It takes like 10 minutes for me to read and maybe grep what the problem is.

Re: Advent of Code 2017

#47
post #14

Advent of Code is an amazing achievement. Designing all the puzzles, writing code to generate all those different inputs for everyone, keeping the site going, somehow managing to create this wonderful community of problem solvers... I loved it last year. I've already paid my AoC++ this year. The least I can do for a month and more (because I never do a puzzle a day, and still haven't finished last year's) of fun. Thi…

> This year I need to make sure I do the graph search problems properly I'm guessing this year it might be some other 'common theme' for the tasks, and we might not see as many graph-problems as in 2016. But learning graph searches cannot hurt you either way :)

Are there any good resources you'd recommend on learning how to effectively work with/search graphs?

Re: Advent of Code 2017

#48

Is it a death sentence to try and learn Haskell on this challenge? Or should I go with a language I'm more comfortable in?

I used last year to learn Elm really well and plan on using this year for F#. Go for it!

Elm served as a gentle intro to Haskell for me personally since it has easier to read errors and less overall complexity to grok at first go, but it sort of depends on your experience.

Re: Advent of Code 2017

#50
post #42

Earlier quoted context omitted.

I found Project Euler really helpful for learning new languages, I imagine AoC is similar.

Though I find Project Euler to be pretty heavy on the math problem solving, and not much on the day-to-day programming problem solving.

I agree with you. Not super useful for day to day stuff, but still fun and enlightening.
Post reply on HN