Advent of Code Day 1
Ғылым және технология
LIVE ON TWITCH: / theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEKZread
This is also the best way to support me is to support yourself becoming a better backend engineer.
Get in on Discord: / discord
Get in on Twitter: / theprimeagen
Got Something For Me to Read or Watch??:
/ theprimeagenreact
Пікірлер: 37
Nice to see a veteran programmer still get caught up in git struggles sometimes. Makes me feel better
@noomade
7 ай бұрын
I actually find it depressing to know that the pain never stops 🤣
honestly I am very happy to see him struggle creating an empty folder like this. Stuff like this NEVER happens to me. (never)
Tree bucket. This is what I’m going to call a trebuchet
Appreciate the focus on coding on this one, looking forward to more!
Thanks for posting this on the youtube, I didn't want to watch the stream without working out the advent of code puzzle by myself first.
Isn't it beautiful that I watched more than an hour of the video without understanding a single line of code?
“Explore a little bit don’t just use js” …. Tunes in a few days later and sees prime has abandoned the camel toe and is back to speed running solutions in js KEKL
@masterflitzer
7 ай бұрын
took too long I guess, but yeah another non js language would've been nice, I'm doing aoc in kotlin cause I need it for my new job, a language like rust, kotlin, haskell etc. would've been cool
@twothreeoneoneseventwoonefour5
7 ай бұрын
@@masterflitzer Kotlin feels similar to Dart which feels similar to Typescript which feels similar to Javascript though. Rust and haskell don't feel similar enough to Javascript so I would rather prefer seeing them than Kotlin.
I'm doing 2023 in Go, but Prime is making me want to switch to Haskell. Turning the lines into numbers would be so neat as a fold.
@noomade
7 ай бұрын
I think using tails is a "neater" option.
At this rate he should finish Day 25 by the year 3000
If anyone is also confused what happened at the start: He did rm -rf .* which deleted all the dotfiles, including .git Then did rm -rf * which doesn't actually delete dotfiles, but they were already gone. Had this been done from the start, it would have had the intended effect. Prime then initialised a new repo in the empty directory, added the remove, and created a new branch. So far so good. Pushing to the remote didn't work, however, because there was no commit to push. It was a completely empty repo - you need to have at least one initial commit to be able to push.
I love this.
I did this problem in Zig, but it was frustrating. When I do more, I'll be doing them in C++. Regular expressions are so good.
@poggybitz513
7 ай бұрын
I am doing everything in just c this year. It was more painful and stupid fun. The way I solved part 2 was just pure stupid and more stupid that it worked.
The legend
I am doing Aoc this year in c, which was more painful and stupid than ocaml.
@baseballMMAgames
7 ай бұрын
same and I'm a little stuck on day 1, part two already haha
Serious question: does OCaml not have regular expressions, or did he just want to avoid them?
@Jabberwockybird
Ай бұрын
He probably wants to avoid them. Regex is like a sport motorcycle. Sure it's powerful, but you can also go very wrong if you're not careful.
how to solve this in zero seconds?
Love OCaml
It's a real shame that you went for OCaml instead of Haskell. It has to be said :(
ok I am sry thats cool
Wut
ah crap I liked the video and now it counts 421...
lets make a bet I get off my moustache with you and you and me donate for native american project if you dont I do and you lose lol
hui oi oi oi? Do you honestly not feeling ashamed wasting valuable energy for this?
@AnantKumar-xf2pw
6 ай бұрын
bold of u to assume i had valuable energy
@nikolaoslibero
4 ай бұрын
What?
Man I hope GPT can make all this gibberish obsolete yesterday so I don't need to learn to code.
@guinea_horn
6 ай бұрын
You don't need to learn to code whether gpt makes it obsolete or not. Go outside or something