!advent_of_code@programming.dev
An unofficial home for the advent of code community on programming.dev!
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Solution Threads
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
!advent_of_code
@programming.devHey everyone! Thought I would do a post ahead of the event to cover the major topics that will probably come up
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Each day will have two different puzzles that must be solved in order (you get access to the second after solving the first). Each puzzle has the same backstory but each person has different input they get for that puzzle.
Puzzles are released every day at midnight ET and can be completed anytime after they are released (but people who solve them quicker after theyre been released get more points for the site leaderboard)
(Puzzles are on https://adventofcode.com)
Anything relating to the event! Whether that be a meme, asking for help, sharing solutions, etc.
Try to keep titles in this general format:
[help, etc. category if applicable] [YEAR Day # (Part X)] [programming language if applicable] Post Title
For example:
[2023 Day #5 (Part 3)] [Rust] My attempt at a solution
Another example:
[Help] [2023 Day #2] What does this sentence mean
This helps people avoid spoilers and lets people use it as an archive by searching if they find out about the event in the middle and are starting from the beginning then
If its just a solution try to keep it in the solution megathread so the community doesn't get spammed with solutions! If you add something onto that such as a doing a visualization, making it a meme, or etc. though feel free to post it separately
The top level comments in the solution megathread should be solutions to that day. If you want to write something that is not a solution feel free to make a new post about it.
Any replies to top level comments though can be whatever
I pushed an update to lemmy-ui that adds code block support that will be arriving to all instances in version 0.19. This is currently in release clients and I expect it to release in the middle of the event.
For now though feel free to mirror any code you post onto some other site such as pastebin. if you can try to do both code blocks and pastebin to future proof it for when 0.19 eventually drops
To make a code block make three backticks, make a new line and put the code on lines, then put a newline and do three backticks on that
e.g.
```
console.log('Hello World')
```
becomes
console.log('Hello World')
If your instance decided to beta test 0.19 you might be able to see code blocks already on the site, I put a code block above and in the sidebar so if one of those renders for you you have code block support
If youre using an app instead of the site though this section does not apply to you and depends on whether the developer of your app has added code block support or not
Hey everyone! I set up a private leaderboard for the programming.dev community so we can have one for the community in addition to the global one
The leaderboard code is 3316962-6587d422
Looking forward to seeing you guys there! Ill make a post at the end with the top people on the leaderboard and the version on the site will auto update as people complete challenges
leaderboard
section in the navbarprivate leaderboard
button on the page3316962-6587d422
into the text box for entering a leaderboard join codejoin
Update: Ive made a new leaderboard so that I could rename it to something that isnt just my username, the code there is updated to the new one that should be joined
https://www.youtube.com/watch?v=vb7JcjZs_GM
50 visualizations for the Advent of Code 2023, one for each part of each day. Enjoy!