Summary for those just joining us:
Advent of Code is an annual Christmas themed coding challenge that runs from December 1st until christmas. Each day the coding problems get progressively harder. We have a leaderboard and pretty good turnout, so feel free to hop in at any time and show your stuff!
Whether you have a single line monstrosity or a beautiful phone book sized stack of OOP code, you can export it in a nice little image for sharing at https://carbon.vercel.app
What did you think about today's problem?
Our Code is 2416137-393b284c (No need to share your profile, you have the option to join anonymously if you don't want us to see your github)
Jump in the discussion.
No email address required.
By the way I have an exam all day tomorrow so someone else make the thread thanks
Jump in the discussion.
No email address required.
k lol
Jump in the discussion.
No email address required.
Yeah... Yeah...![:marseyrope: :marseyrope:](https://i.rdrama.net/e/marseyrope.webp)
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
good morning I hate parsing problems
Jump in the discussion.
No email address required.
I'd probably get fired if I started coding in wingdings at work![:marseydisagree: :marseydisagree:](https://i.rdrama.net/e/marseydisagree.webp)
Jump in the discussion.
No email address required.
More options
Context
I think something went wrong when you pasted the code.
Do you find golf languages like these are easier in some ways or is every problem always more of a challenge?
Jump in the discussion.
No email address required.
APL is unironically a great language. It was created as handwritten maths notation, it's not one of the meme langs designed around using as few characters as possible. Only part that sucks is parsing the input.
Jump in the discussion.
No email address required.
I'd rather KMS than use APL
Jump in the discussion.
No email address required.
More options
Context
BIPOC that's what maths notation is
Jump in the discussion.
No email address required.
I mean shit like 05AB1E, where programs look like:
APL is a practical/"real" language, it wasn't designed to metagame golf at the expense of readability.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
!codecels be amazed![:marseymesmerized: :marseymesmerized:](https://i.rdrama.net/e/marseymesmerized.webp)
Jump in the discussion.
No email address required.
Heh, nothing personel kid:
public static void main(String[] args) {
System.out.println("Hello dorks.");
}
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
whoa
Jump in the discussion.
No email address required.
More options
Context
More options
Context
I thought this would be more like interview questions where it's testing your brainpower instead of do you know how regex works
anyway here is my solution for part 2
Jump in the discussion.
No email address required.
From what I remember doing this a few years ago, the first few are just parsing, then it transitions into more interesting stuff.
Jump in the discussion.
No email address required.
It happens really fast too, they're all so easy you start getting a big head, then around day 10 shit gets real out of nowhere. I don't even know why I'm bothering with these right now when I'm almost positive I'll just rage quit again the first time I can't do it in half an hour.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
https://adventofcode.com/2022/day/19
Jump in the discussion.
No email address required.
When you realize the first few days are there to give the brainlets like me a sense of accomplishment before getting destroyed![:#marseycrygenocide:](https://i.rdrama.net/e/marseycry.webp)
Jump in the discussion.
No email address required.
More options
Context
Could these descriptions be any longer?
Jump in the discussion.
No email address required.
More options
Context
More options
Context
You're not using GDscript are you![:marseysquint: :marseysquint:](https://i.rdrama.net/e/marseysquint.webp)
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
I was sleeping when the new advent of code dropped so you'll look at my solution even if you missed it !codecels, I don't care that pinging the group will cost me a lot of coins.
Jump in the discussion.
No email address required.
More options
Context
I should probably learn regex someday this is clean af...
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Note that![:marseyokay: :marseyokay:](https://i.rdrama.net/e/marseyokay.webp)
games
isconst
this time; apparentlyreadLines
is available at compile time.Jump in the discussion.
No email address required.
Lmao it's about a third of the lines of mine...
Learning Nim's syntax and std is kicking my butt, I'm spending all my energy in the docs and coming up with awful constructions.
I probably should have made loadGame an iterator.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
If we ignore all the boilerplate it is almost small
Jump in the discussion.
No email address required.
More options
Context
Someday I will learn regex for real and leave the standard library behind, that's not today though.
Jump in the discussion.
No email address required.
More options
Context
Frick using c++ for this I'm going to sleep
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
one liner for part 1
before some smartass comments this is one line WITHOUT LINEBREAKS yes I know it wraps lol
part 2 is a genuine monstrosity
Jump in the discussion.
No email address required.
With modern Python the one liner question is not if you could, but if you should
Jump in the discussion.
No email address required.
True. If I didn't have lambdas it probably would've been impossible. Or, at least, impossible in the constraint of not producing an identical complex value more than once
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
not the worst one to reason about. parsing the strings was the hardest part and python makes that 2ez.
Jump in the discussion.
No email address required.
does everyone text editor look like that or is that a special way to screenshot
Jump in the discussion.
No email address required.
It's the link from the OP
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
I learned that newer versions of Python got
s.removeprefix('Game ')
btw, yesterday, just in time for this. Otherwise a pretty uneventful day.Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
There are those among us RIGHT NOW trying to write nice looking code (not me I just wanna go get lunch)
Jump in the discussion.
No email address required.
More options
Context
ngl I think last years were better
Jump in the discussion.
No email address required.
More options
Context
27 and 29 mins
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
way easier than yesterday![https://i.rdrama.net/images/1701497069318822.webp](https://i.rdrama.net/i/l.webp)
Jump in the discussion.
No email address required.
More options
Context
Snapshots:
https://carbon.vercel.app:
ghostarchive.org
archive.org
archive.ph (click to archive)
https://adventofcode.com/2023:
ghostarchive.org
archive.org
archive.ph (click to archive)
Jump in the discussion.
No email address required.
More options
Context
aw jeez
Jump in the discussion.
No email address required.
You're using nano for show right? Nobody would actually write code on that thing.
Jump in the discussion.
No email address required.
nano is like that friend you've known since you were a kid
like that rando you got along with almost immediately
doesn't try to do extra stuff for you, will occasionally help you out, and although they improve on themselves a lot they never stop being who they are
friendly with a lot of people even though most people would prefer something extra, more popular, more flashy
nano just be nano
i fw nano unironically till the end
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Foray into regex for me as a guy whose only experiencing importing files for coding is to work with very easily organized tabled data. I probably could have cleaned up the color finding into a function instead of dropping it under both the if and elif statement but oh well. I only had to add a single line to all of this multiplying the maxes for each game to get the answer for the second puzzle.
Python's documentation also really sucks for newbies, I think it's my biggest complaint with the language.
Jump in the discussion.
No email address required.
I'd be so much more open to python if I didn't have to give up whitespace and indent control
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Did it in Python. Too much string manipulation for me to waste time relearning it in C++. Might switch to Rust or something since it has better built-ins for that if more problems are like this.
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
This couldn't have come at a nicer time, I did these years ago and I haven't done any programming in so long
Going to brush up on some Kotlin because I've forgotten it entirely and I fell in love with it after dealing with Java
Jump in the discussion.
No email address required.
More options
Context
Part 2:
Jump in the discussion.
No email address required.
More options
Context
tl;dr
Jump in the discussion.
No email address required.
More options
Context
Not bad! Kind of wish I thought of a better way over iterating each of the colours every time but this works.
Also frick regex, I'm never learning it, it seems gay. String manipulation and parsing is the worst part of programming, anyone who thinks it's real programming should rope
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context