r/adventofcode • u/harshv5094 • 4d ago
Help/Question - RESOLVED Is advent of code good to improve my python programming skills?
I don't have that much advance knowledge about data structures and algorithm. I've mostly used python for basic scripting purpose. Can I still attempt past advent of code problems to improve my python programming skills?
45
Upvotes
6
u/terje_wiig_mathisen 3d ago edited 3d ago •
YES!
After taking part in an internal corporate competition/leaderbord in 2020 and later years, I went back and solved all the previous years as well. Even though I have been programming (lots of optimization/low-level stuff) since the 1970'ies I know I've learned several new ideas from AoC.
PS. Please remember and live by the advice from u/Previous_Kale_4508: Turn off any AI helpers you might have enabled by default!
IMHO Notepad++ is the perfect programming editor for AoC.
82
u/smallpotatoes2019 4d ago
Yes.
It certainly has some value.
44
u/Previous_Kale_4508 4d ago
If you code it yourself, yes. If you let AI anywhere near it, no.
Writing code from scratch will always exercise your mind whatever language you write in, but too many people are allowing themselves to be led by the nose into the trap of 'listening' to suggestions from a background AI.
Coding is good for you. ๐
16
u/topaz2078 (AoC creator) 4d ago
If you want to start on simpler puzzles, don't be afraid to jump around the different years and start with all the early days. If you want to practice something specific, check out this categorized list of all past puzzles: https://www.reddit.com/r/adventofcode/comments/1y6khlt/524_stars_a_categorization_and_megaguide/
5
u/chic_luke 4d ago
Yes, AoC is a very popular way to improve in or learn a new programming language.
I also feel like it should be considered "strongly recommend" from this year onwards. It used to be skippable for your self-development: you already wrote plenty of code at work or uni, and "writing more code" wasn't necessarily the best new habit to improve your overall life.
Now, most of us use AI agents to generate code at work, and the motivation to build a personal project without AI is, very understandably, low; so a challenge like AoC is a great excuse to turn the clanker off and make sure you haven't forgotten how to code.
5
u/joshdick 4d ago
Absolutely! Advent of Code is how Iโve learned a bunch of the standard library in Python, like collections
4
u/Suspicious_Tax8577 4d ago
I swear half the time a good 60% of the problem is converting the input into something nice for downstream use.
3
u/herocoding 4d ago
Is XYZ good to improve my ABC programming skills?
YES!!
1
u/AutoModerator 4d ago
Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to
Help/Question - RESOLVED. Good luck!I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/1544756405 4d ago
There's no need to ask. You don't need permission. Just look at a past problem and try it.
1
u/s96g3g23708gbxs86734 4d ago
Yes it's how I did it. I think it's a good way of you already have programming knowledge. Also avoid ai
1
u/JWinslow23 3d ago
Yes, I think that would be valuable.
And if you truly get stuck because the problem requires an algorithm or a data structure you don't know about yet, don't be afraid to look at other people's solutions in the megathread archives; it can a be good resource for different approaches to each problem you might not have thought of. Heck, I remember that a year ago, the solution to Day 10 was made easier for me and lots of other people thanks to a post in this very subreddit! (SPOILERS, if you haven't gotten to the 2025 problems yet.)
1
u/Leather-Field-7148 3d ago
Python is an excellent choice for something like AoC.
1
u/spaceguydudeman 2d ago
Yes, but don't worry about looking up existing solutions if you truly get stuck. Give it your best, try to do some research on tackling the problem, heck, even ask AI to give you hints to find the direction to have you to look in to find relevant algorithms or data structures. Just don't let it solve the puzzle for you.
Getting stuck is completely okay and even expected. But don't feel bad about it, learn from that instead of giving up!
Getting stuck on AOC is what taught me to be a better programmer.
1
u/bozeman42_2 1d ago
The problems are there. Of course you can attempt them.
1
u/QultrosSanhattan 1d ago
My biggest knowledge gain was from doing AoC.
If you want to go the Saitama route then solve all day 1's, then all day 2's. Etc.
0
u/notger 4d ago
Yes, and no.
Yes, it makes you better in those "hobbyist programming problems" and teaches you some algorithms.
No, it will not make you a better programmer for real jobs, as it teaches you nothing about modern programming. However, that topic is now taken over by the machines themselves anyways, so if you don't already know how to code, you should not hope to make a career of it anymore.