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

  • @TVDaJa
    @TVDaJa7 ай бұрын

    Nice to see a veteran programmer still get caught up in git struggles sometimes. Makes me feel better

  • @noomade

    @noomade

    7 ай бұрын

    I actually find it depressing to know that the pain never stops 🤣

  • @cas1652
    @cas16527 ай бұрын

    honestly I am very happy to see him struggle creating an empty folder like this. Stuff like this NEVER happens to me. (never)

  • @dylanmeeks54
    @dylanmeeks547 ай бұрын

    Tree bucket. This is what I’m going to call a trebuchet

  • @TankorSmash
    @TankorSmash7 ай бұрын

    Appreciate the focus on coding on this one, looking forward to more!

  • @Burgo361
    @Burgo3617 ай бұрын

    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.

  • @narutosimas
    @narutosimas7 ай бұрын

    Isn't it beautiful that I watched more than an hour of the video without understanding a single line of code?

  • @bentleysayer5812
    @bentleysayer58127 ай бұрын

    “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

    @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

    @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.

  • @necuz
    @necuz7 ай бұрын

    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

    @noomade

    7 ай бұрын

    I think using tails is a "neater" option.

  • @peterfarrell66
    @peterfarrell667 ай бұрын

    At this rate he should finish Day 25 by the year 3000

  • @Yotanido
    @Yotanido5 ай бұрын

    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.

  • @explosivecl
    @explosivecl7 ай бұрын

    I love this.

  • @The1RandomFool
    @The1RandomFool7 ай бұрын

    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

    @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.

  • @potomskazhu
    @potomskazhu7 ай бұрын

    The legend

  • @poggybitz513
    @poggybitz5137 ай бұрын

    I am doing Aoc this year in c, which was more painful and stupid than ocaml.

  • @baseballMMAgames

    @baseballMMAgames

    7 ай бұрын

    same and I'm a little stuck on day 1, part two already haha

  • @pdgiddie
    @pdgiddie5 ай бұрын

    Serious question: does OCaml not have regular expressions, or did he just want to avoid them?

  • @Jabberwockybird

    @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.

  • @kartikayluthra2937
    @kartikayluthra29376 ай бұрын

    how to solve this in zero seconds?

  • @SuperHeroINTJ
    @SuperHeroINTJ7 ай бұрын

    Love OCaml

  • @noomade
    @noomade7 ай бұрын

    It's a real shame that you went for OCaml instead of Haskell. It has to be said :(

  • @timschannel247
    @timschannel2477 ай бұрын

    ok I am sry thats cool

  • @RoboticusMusic
    @RoboticusMusic7 ай бұрын

    Wut

  • @cheebadigga4092
    @cheebadigga40927 ай бұрын

    ah crap I liked the video and now it counts 421...

  • @timschannel247
    @timschannel2477 ай бұрын

    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

  • @timschannel247
    @timschannel2477 ай бұрын

    hui oi oi oi? Do you honestly not feeling ashamed wasting valuable energy for this?

  • @AnantKumar-xf2pw

    @AnantKumar-xf2pw

    6 ай бұрын

    bold of u to assume i had valuable energy

  • @nikolaoslibero

    @nikolaoslibero

    4 ай бұрын

    What?

  • @RoboticusMusic
    @RoboticusMusic7 ай бұрын

    Man I hope GPT can make all this gibberish obsolete yesterday so I don't need to learn to code.

  • @guinea_horn

    @guinea_horn

    6 ай бұрын

    You don't need to learn to code whether gpt makes it obsolete or not. Go outside or something

Келесі