« first day (4526 days earlier)      last day (524 days later) » 

12:50 AM
👀
 
1000 more questions, then stop forever
 
1:43 AM
once we reach 100k, we will create a new close vote reason

"Sorry, but the site is no longer accepting questions in order to maintain a perfect 100,000 question count".
 
2:01 AM
better yet, switch the site to read only
> This Site is no longer accepting question due to hitting it's lifetime supply of 100k question
then from NOPE.

Arqade 2.0, it's Arqade but without 100k questions
 
2:22 AM
Crap, i haven't been doing AoC this weekend
 
 
2 hours later…
4:12 AM
2
Q: Will a pokemon in an out of state gym come back?

Phoenix ChaseI live in Iowa and recently went out to Washington state for a wedding and left my Vaporeon in a gym there, it has been in the gym for 25 days which for me is an unusually long amount of time. Did I just screw myself out of a pokemon?

 
 
8 hours later…
12:13 PM
^ @Fredy31
Now I kinda wish that the character story quest started with Paimon and Nahida dragging him to the Inazuma kimono shop to change the "depressing outfit" with something "nicer" since now he has to be "a good kid"
 
 
4 hours later…
4:10 PM
Day 5 was not as bad as initially thought
 
I misread it and accidentally solved part 2 first
But it was mainly just an exercise of parsing the input
 
Yea part of me was just going to manually do the initial setup, but automating it was not bad
 
4:44 PM
Yeah I finally got mine cleaned up this morning
I initially wrote the stack population stuff manually
which is just a hell function
lifehack: write a hell function at midnight so you can feel satisfied when you get to delete it later github.com/evanc5/advent-of-code-2022/commit/…
 
 
2 hours later…
6:40 PM
@Ronan Yeah it was. The actual problem was easy. The annoying, tedious part was just parsing.
 
 
1 hour later…
8:07 PM
Also, speaking of parsing. My original solution was parsing them in some weird ass order initially, so I scrapped it all. Ended up rewriting the parser to just grab all the lines showing the initial layout, and then parse them from bottom up. Made it way easier.
 
 
1 hour later…
9:19 PM
@Wipqozn That's how I planned on doing it the entire time. Read until the first empty line, throwing each row on a stack, calculate the number of piles from the index row (top of the stack), throw that away, then fill the actual stacks.
Just waiting for the harder problems so that I can catch up to the QC guy in the work leaderboard.
 
@MBraedley Yeah I should've just did that approach from the start
 
My (non-optimized) solution is 100 lines, but I could probably easily cut half of that out. Pt1 and P2 are in 2 separate loops, I've got a small loop just to read in the instructions, and I don't need to be doing the regex matches twice.
 
I almost always make a second file for part 2, with changes added in. For today, I just added a new function for using the 9001 machine.
So I just updated my code to call the new function
 
Mine is usually just a single main function per day
 
I usually make classes because I'm an addict
 
I'll start making classes for some of the tougher problems
 
Day 3 input can apparently get messed up by a cryptocurrency theft virus
 
So, basically, ADvent of Code is a virus scanner now?
 
No it's just that some of the rows in the input can appear to be a cryptocurrency address
that a virus could manipulate
 
@MBraedley Yeah I just like using them. Plus AOC is the only time I really dive into PYthon anymore, so gives me a chance to warm up on the syntax again on the easier problems.
I am proud to say I didn't once toss in a semicolon this year though...at least, not yet.
 
9:36 PM
I made not one but TWO classes today
 
@Unionhawk :O
 
but I mean, a static class for extension methods doesn't really count
 
That reminds me, I made a3 classes, but then didn't use the third, ha.
 
also I didn't really need to make the one an extension method but it felt like the right thing to do
 
I made a class for a Crate, thinking that part 2 might wind up havin you do something more complex with the boxes... but then nope lol. So it was literally just a calss with a constructor and nothing else.
Did't even wind up calling it
I should delete that while I'm thinking of it
@MBraedley Also, I'm surprised my solution is less lines than yours, given I used classes.
I find classes can often result in it being a bit longer.
and I just realized I made another function I never used too...
riiiight. I made a Reverse function for my stack, which just called list.reverse... but then I didn't need to do it anymore.
Since I read them in from bottom to top.
So that's gone.
 
10:21 PM
I didn't make a reverse function because it it already provided to me by System.Linq
 
RIP SO
 
@fredley that'll break on Windows paths ;-)
 
I specified Unix paths!
 
But ChatGPT is a bit scary, it easily produces wrong answers. But if you just prompt it to write code it can be pretty impressive. And I find the way it reacts to clarifications really scary
 
@MadScientist You're telling me SO doesn't produce wrong answers?
One notable improvement: chatGPT won't close your question.
 
10:29 PM
@fredley The bad SO answers have usually worse presentation. ChatGPT will provide very confidently written and good looking answers that are entirely missing the point
 
@MadScientist This is true. It's pretty good at debugging itself though, you can give it a non-working code example and it can fix it.
But yeah, for now both tools are still in the toolbox. I wonder how well GPT would work on some really niche problems.
That sounds like a fun game actually
 
Prompting it manually, if you roughly know what you're doing was pretty impressive. Copying SO questions into it produced pretty terrible results
 
Yeah, I think the formulation of questions does need to be a bit different to get good results.
 
it didn't manage to write proper Typescript syntax in the one case I tried it
it fared much better with Javascript, so I suspect the amount of training data has a very major effect on it
 
Yeah, JS and python are its preferred languages.
 

« first day (4526 days earlier)      last day (524 days later) »