this post was submitted on 30 Nov 2023
156 points (100.0% liked)

Programming

423 readers
13 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

For anyone interested, advent of code is about to start! (first puzzles dropping at midnight ET which is in around 11 hours)

We have a community in the instance at !advent_of_code@programming.dev for discussion about the event and that will have solution threads where you can post and compare against other people


Advent of code is a programming puzzle advent calendar where new puzzles drop every day until the 25th. They can be done in any language and puzzles are released on the AoC site

https://adventofcode.com/

top 24 comments
sorted by: hot top controversial new old
[–] gerryflap@feddit.nl 29 points 11 months ago (1 children)

Last year I decided to do it in Rust, in order to learn Rust. I found out pretty quickly that you can't just jump from Java/Python/Haskell into Rust and expect to understand what's going on. This year I feel more prepared, so if time permits I'll make it right this time.

[–] Anders429@programming.dev 5 points 11 months ago (1 children)
[–] gerryflap@feddit.nl 4 points 11 months ago

Yep, I feel a bit more prepared now. I haven't had the time yet today, but from what I saw the first one shouldn't be too hard

[–] KseniyaK@lemmy.ca 12 points 11 months ago (2 children)

Is it ok if I skip some challenges or do them later? University final exams are comming up soon for me.

[–] ericjmorey@programming.dev 11 points 11 months ago

The first Advent of Code was in 2015 and the puzzles can still be accessed.

https://adventofcode.com/2015

[–] Ategon@programming.dev 9 points 11 months ago* (last edited 11 months ago)

yep, you can do them anytime after theyre unlocked and you dont have to do all of them

[–] ace@lemmy.ananace.dev 12 points 11 months ago (2 children)

My favourite advent calendar.
Got a private leaderboard with the other sysadmins from work - as well as a few people from our application/development team.

[–] Kialdadial@iusearchlinux.fyi 3 points 11 months ago (1 children)

Is your leaderboard just who solves it first, or is there more to it?

[–] ace@lemmy.ananace.dev 3 points 11 months ago

It's basically just a copy of the main leaderboard, but the scores are given based on the size of the group.

[–] abbadon420@lemm.ee 2 points 11 months ago

Private leaderboards are the best

[–] jeremyparker@programming.dev 10 points 11 months ago (1 children)

How hard are the puzzles? I've been coding for a while but I'm self taught and I have no idea whether I'm any good or not. I'd love to give them a shot but I have no idea whether they're totally out of reach or doable. What level of developer are they intended for?

[–] Ategon@programming.dev 17 points 11 months ago* (last edited 11 months ago) (1 children)

they start out easy and get harder as time goes on. Theyre intended for all levels due to that and theres two different difficulties per day (the harder one being unlocked when you do the easy one). Basically anyone can do day 1

Heres stats for how many people completed each day last year https://adventofcode.com/2022/stats

[–] jeremyparker@programming.dev 3 points 11 months ago

Ok cool, thank you! I'll see how it goes.

[–] hazelnoot 10 points 11 months ago (2 children)

Thanks for the reminder! I almost forgot to set up my repo. 🤦‍♀️ I'll be publishing my solutions on GitHub for anyone interested. This year I finally got around to restructuring things to keep the input files out of git, so I won't have to feel guilty about leaking the problem inputs.

[–] Anders429@programming.dev 5 points 11 months ago (1 children)

I thought problem inputs were randomized for each user?

[–] hazelnoot 7 points 11 months ago

There's a limited pool of random inputs, so it's possible to collect them all with enough input samples. In the past, the creator has asked people not to upload their input file because there are bots that scrape GitHub looking for the inputs.

[–] Faresh@lemmy.ml 2 points 11 months ago (1 children)

I'm sorry, I think I'm missing something. What's wrong about sharing the inputs? I thought the only thing problematic was to release a solution before the leader-board is full.

[–] hazelnoot 2 points 11 months ago

In the past, people have stolen the problems to use in their own challenges, coding tutorials, and even commercial projects. The author has asked people to keep their inputs out of git or anywhere publicly searchable.

[–] clot27@lemm.ee 6 points 11 months ago

Rust this time

[–] dukk@programming.dev 4 points 11 months ago (1 children)

I’m going to try it in Haskell.

~~Might~~ Probably will regret this.

[–] nikoof@feddit.ro 1 points 11 months ago (1 children)

So, are you regretting it?

[–] dukk@programming.dev 4 points 11 months ago (1 children)

My code is beautiful.

My process wasn’t.

I already regret it, but I won’t stop.

[–] zagaberoo 1 points 11 months ago

It's good exercise.

[–] Nighed@sffa.community 3 points 11 months ago

Thank you for this! I always find out/remember about it half way through...

First day done and work leaderboard link shared!