Live data from Hacker News

Advent of Code 2024

adventofcode.com

71–80 of 580 posts

Re: Advent of Code 2024

#71
post #33

other advents are available… https://raku-advent.blog/2024/12/01/day-8-rendering-down-for... https://news.ycombinator.com/item?id=42286954

and more advents... https://pdl.perl.org/advent/index.html

yes perl was the original advent of code iirc

Re: Advent of Code 2024

#72
I've never done AoC but I've done other programming-related challenges before. I come from a non-IT background (mech eng), and I'm currently away for work for the first several days with only their locked-down laptop.

Normally I'd break out Python for this, but given the constraints maybe I should try to see how far I can get through this in Excel. It'd be a fun little challenge :)

Re: Advent of Code 2024

#73

Is there a way to override the CSS (on Chromium)? The body font and weight, Source Code Pro is far too thin and far too wide and gives me a headache (and has regularly turned me off AoC). I'd like to change it to `sans-serif`.

I'd just create a bookmarklet or run JS in devtools: `document.body.style.fontFamily = "sans-serif";` etc

Re: Advent of Code 2024

#74
post #33

other advents are available… https://raku-advent.blog/2024/12/01/day-8-rendering-down-for... https://news.ycombinator.com/item?id=42286954

and more advents... https://pdl.perl.org/advent/index.html

I was looking for a puzzle in the first link until I saw the home page: "One article on Raku per day, until Christmas." I vaguely remember these from my Perl days (a decade ago) now.

AoC usually loses my interest around day 6 or so, but a PDL journey for the advent sounds a lot more appealing. Time to dust off my Perl skills and see if I find it as fun today as I did back then.

Re: Advent of Code 2024

#76
post #72

I've never done AoC but I've done other programming-related challenges before. I come from a non-IT background (mech eng), and I'm currently away for work for the first several days with only their locked-down laptop. Normally I'd break out Python for this, but given the constraints maybe I should try to see how far I can get through this in Excel. It'd be a fun little challenge :)

My approach here would be to make an index.html file with a script tag and drag it onto whatever browser is available. Then again I have made peace with JavaScript!

(I think you could even use typescript with this method with the on the fly babel transpiler (you just include a script tag) but I haven't tried that.)

Re: Advent of Code 2024

#77
I will try to do it with F# and Gleam this year, but like every year I won’t have time (and brain) to do more than 10/12 days ^^

For the pythonists around here, give F# a try: it can feels very close to scripting and it has a wonderful REPL too :)

Re: Advent of Code 2024

#78
I can't explain why but doing AoC is always interesting, and doing LeetCode which is supposed to be similar is always very depressing.

Wishing everyone a fun challenge. This year I will be practicing F# and hope some of you will give it a try too :) https://github.com/neon-sunset/AOC24/blob/master/day1.fsx

Re: Advent of Code 2024

#79

I can't explain why but doing AoC is always interesting, and doing LeetCode which is supposed to be similar is always very depressing. Wishing everyone a fun challenge. This year I will be practicing F# and hope some of you will give it a try too :) https://github.com/neon-sunset/AOC24/blob/master/day1.fsx

That's actually a very important question I think, and sorely neglected by most educators! (and book authors, etc)

Re: Advent of Code 2024

#80
> You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far.

The use of “pretty far” gives them a bit of an out, but I think this statement is a little disingenuous. Last year, at least, a bunch of the problems needed fairly sophisticated algorithms to find the solution in a reasonable amount of time.

To me, a little programming knowledge is what somebody who is six weeks into their introduction to programming class has. They know variables, loops, lists, and maybe associative arrays.

Post reply on HN