It's the most Wonderful Time Of The Year. Time to spend with Family and Friends spend on Swift coding challenge fun!
Every December, Eric Wastl publishes Advent of Code, a fun set of coding exercises. One challenge is posted each day from December 1st to December 12th . The challenges start out easy and increase in difficulty. Here’s the first exercise from last year for example.
You can use whatever programming language and techniques you like to complete the exercises, but of course, we use Swift! Participating is a great way to sharpen your Swift skills and have a little fun with the community.
Create an Xcode project (Command Line Tool is fine), Swift Package or clone the starter project
a. if your repo is public, make sure to exclude the input data from version control
Create an account at Advent of Code (required to use the leaderboard)
Every day (or as often as you prefer), attempt the challenge using Swift!
The leaderboard will automatically update to show who has completed the challenge and provide a score based on how long it took you. You can always ignore the score of course - it’s just for fun!
We'd encourage you to include a link to your GitHub account where you can post your solution. It’s really neat to see how everyone attempts each day’s challenge: we learn new things about how others use the Swift language, and you can pick up some great tips and techniques from studying others' work.
Look forward to seeing you online!
Previous years
If you want to see a bit more about the discussions of last years, here are some forum threads:
Thanks for putting this together. The starter template and shared leaderboard make it easy to join in, and I like that the early puzzles are a gentle way into daily Swift practice.
Ha, what is or isn’t considered cheating is a bit of a thorny topic. Using AI to solve these puzzles can be an interesting exercise too, and I certainly wouldn’t call it cheating if that’s your goal.
That said, Eric Wastl has been very clear about what he thinks about using AI for AoC, and given it’s his challenge I’d say it’s impolite to ignore him.
I’d say, the fun of AoC is to solve the puzzles yourself or perhaps together with other people. Having them be solved for you by a machine defeats the purpose.
Also, if you get stuck there’s no harm in asking for a hint or two here in the forums. Sometimes just getting pointed in the right direction helps you get unstuck and you learned something as well.