Пікірлер

  • @abdullahajeebi
    @abdullahajeebi13 сағат бұрын

    Bad Code: The Game.

  • @ketaminepoptarts
    @ketaminepoptarts20 сағат бұрын

    honestly it feels like you made this video just to insult people who thought switch statements wouldve been better, focus on the code and not on being condescending to people for daring to not be perfect.

  • @mustafasofy2568
    @mustafasofy2568Күн бұрын

    14:03

  • @JimbobG.A.D
    @JimbobG.A.DКүн бұрын

    Nice video

  • @UfoLoche
    @UfoLocheКүн бұрын

    I'mma say it's kinda weird to go 'no bullying' when the person in question is a con artist, an awful person, and an actual predator. (And before someone tries to screech at me about the latter: Accusations were thrown around 4 years ago at least, you can find this very easily with a 5 second google search. Sit down. Besides, even if you had a point, the dude was a massive piece of shit even before that.)

  • @scrung
    @scrungКүн бұрын

    zamn, you’ve been thinking about this nerd for four years? LOL

  • @epikbaconb9780
    @epikbaconb9780Күн бұрын

    Bro why this is in my feeds now I don't even watch yandere vids 😭

  • @ejrosenberger6735
    @ejrosenberger67352 күн бұрын

    I just found you and I'm glad to see that you're making videos again

  • @kjorndog
    @kjorndog2 күн бұрын

    can we get an update lol

  • @Arcin321
    @Arcin3213 күн бұрын

    Haven't kept up with yandere dev in years so looks like he finally gave up source code after all the years of his game being called shit?

  • @bagelisdead
    @bagelisdead3 күн бұрын

    Not a coder, but I've been interested in game dev for quite a while. This video was very informative, and I will always appreciate unbiased, good faith criticism. A lot of people struggle to seperate art from artist these days (in this case, game from game dev), so this was a breath of fresh air. I don't like YanDev for his attitude towards peers and his supporters, his lack of accountability, and oversensitivity to criticism. But his game should be fairly judged without being influenced by YanDev's drama or behavior, and this is exactly what that video does.

  • @DinaMarBoobs
    @DinaMarBoobs4 күн бұрын

    I hope you'll make a sequel after all those years

  • @Zzzzzz-eo5id
    @Zzzzzz-eo5id4 күн бұрын

    go bald it'll look good on you just get buffed a little

  • @Get.Pwned619
    @Get.Pwned6194 күн бұрын

    3:16 No? Alright thx for the codes anyways uwu

  • @Smouv
    @Smouv5 күн бұрын

    Am not a game dev, so cannot speak for how Unity handles Booleans specifically, but I've grown weary of only ever using `if(bool)` and `if(!bool)` over `if(bool == true)` and especially `if(bool == false)`. There are programming languages where Booleans can be tied to three states rather than two: true, false or null (again, I don't know how Unity handles this). `if(!bool)` would pose a different result than `if(bool == false)` if the Boolean has a value of null. Have had to unlearn this 'best practice' after learning the hard way that I couldn't just assume all booleans would always be instantiated with a true or false. Heck, there have been times where I've had to use `if(bool != false)` because `if(bool)` just didn't cover it. Since there are language that have this, making it explicit has become my best practice again, since that eliminates all ambiguity regardless of programming language-specific quirks.

  • @sally_buckley
    @sally_buckley5 күн бұрын

    I don't understand why you're helping a predator.

  • @ididsomeunspeakablethingsa4899
    @ididsomeunspeakablethingsa48994 күн бұрын

    This is before it got leaked

  • @UfoLoche
    @UfoLocheКүн бұрын

    ​@@ididsomeunspeakablethingsa4899 Accusations were out 4 years ago, this video came out 3 years ago. Doesn't work, chief.

  • @fcf8269
    @fcf82695 күн бұрын

    TBH there are some problems here. First, if you use the usual tools to reverse engineer a unity game, the code you get is garbage; as you are getting compiler optimized code that is reversed into human readable code, so what you get there is overly simplified data structures. Unless you read the assembly code, what you got there is mostly garbage if you look at the C# "reversed" code. Second problem is the assets, which once packed lose the optimizations, as they are packed with the meta files. Unity has no clue what an asset is once it is packed; so if you add instances of a game object as prefab, to optimize draw calls, that is all lost once you compile the game and you reverse the .asset files back into obj and FBX files. Same for the occlusion culling and LODs. So you are in fact looking again, at a bunch of garbage at best. Some things may be useful maybe, but the only good thing that these unity tools are good for are to retrieve the raw geometry and textures from games; animations maybe if you are lucky, and that's it. Considering that most of the game is made with UnityChan and you can get better models using something like Vroid studio, in 2024 it is just a waste of time to even spend time look at this thing, and makes even less sense to "read" the code to be honest

  • @SpellboundWolf
    @SpellboundWolf6 күн бұрын

    This is very well done.

  • @dewrow
    @dewrow7 күн бұрын

    I'm a failed programmer but even my knowledge is enough to understand that this code is trash. But as a 3d modeller I can say that I love toothbrush.

  • @whitestararmada103
    @whitestararmada1038 күн бұрын

    why dose everyone pronounce yandere wrong? XD

  • @kerfuffle764
    @kerfuffle7648 күн бұрын

    How do YOU pronounce it??

  • @ScaredHelmet
    @ScaredHelmet9 күн бұрын

    Pro tip: When recording your face, don't look at the video feed. Your eyes are constantly looking away from the camera. Maybe just turn off the video feed if it helps. Then again, most of the spergies here wouldn't notice, so why bother.

  • @Jordiz604
    @Jordiz6049 күн бұрын

    y-YEAH! I also am a programmer and I can also definitely tell How this code is messed up 😅

  • @RollerBaller
    @RollerBaller10 күн бұрын

    Do i know how to code? No. Do i understand what's going on? Also no. Am i going to watch someone drag yandev through mud? Yea.

  • @unadulterated
    @unadulterated10 күн бұрын

    53:56 the path interpolation should be using Path.Combine instead of hardcoding the slash

  • @chiki1010
    @chiki101010 күн бұрын

    Unrelated but if someone do analysis on my code like this I would never recovers 😂

  • @HalfAsleepSam
    @HalfAsleepSam12 күн бұрын

    I'm so tired I saw the arch linux logo in the background of the code at 17:27

  • @venerablewu8744
    @venerablewu874412 күн бұрын

    This tool said to not bully a pe dophile crazy

  • @Az3epic
    @Az3epic11 күн бұрын

    Imagine leaving this comment on a video made before that was public knowledge 🤔

  • @VolkStrokerMedia
    @VolkStrokerMedia12 күн бұрын

    57:01 "Fucking Pick One" The annoyance in his tone delivers so hard

  • @sirin4860
    @sirin486013 күн бұрын

    Does the hairstyle not fully render for anybody else? pls fix

  • @Weeb1367
    @Weeb136716 күн бұрын

    You're, like, incredibly based, wtf?

  • @ob4816
    @ob481619 күн бұрын

    Hearing you ramble about if vs switch was very boring and annoying. Also it's concerning how much time you spent decompiling a game with a boob slider... my code smell alarm goes off way harder than it already does for every game. Your advice on game optimization was very interesting and informative though.

  • @mori7423
    @mori742320 күн бұрын

    We missed you so much. Thank you for coming back, you're one of my favourite tech youtubers despite uploading so rarely. I wish you could make more videos but no decent person would dislike you for taking things as slowly as you need to <3

  • @BlissBee
    @BlissBee21 күн бұрын

    Nearly 4 years later I would like to say ignore the no bullying request

  • @SpooktubeDeluxe
    @SpooktubeDeluxe21 күн бұрын

    You know how you can't judge a person's mistakes, yeah this doesn't apply here, the entire thing is more than a mistake.

  • @karlsassie8403
    @karlsassie840322 күн бұрын

    sqrt is not one clock cycle, just because it‘s a single instruction

  • @Az3epic
    @Az3epic11 күн бұрын

    Check pinned comment

  • @Atzu0110
    @Atzu011022 күн бұрын

    Why do you look like Michael Stevens from Vsauce without a beard?

  • @codez35
    @codez3522 күн бұрын

    You clearly don't know anything about c#. switch statement can deal with float as good as if statements. unless your aren't up to date on your language version because it took your longer than cuphead to release it and fo no reason other than those if statements. one part of the code could be written in one line. public bool IsEven(int number) => number % 2 == 0; But no he goes and writes an infinite amount of if statements going number by number wasting time and be an incompetent fool of a programmer. Another point, decompile the game and you will not only see more or less the exact same code but if the compiler actually converted the if statements into a switch it would decomplie into a switch period. devs that he hired have also decided to change every single one into a switch and it ran better. then he decided not only to fire them but also revert all of those changes due to his own ego. This video is absolute garbage and lies. now to be fair I don't know what version of c# he is using but if I had to guess it would be 8 or 9 which going back to the code in this comment is completely valid and would work.

  • @marmaladetoast2431
    @marmaladetoast243123 күн бұрын

    17:00 code context exists for a reason

  • @MonkeyManJams165
    @MonkeyManJams16523 күн бұрын

    Terran player, very good.

  • @MonkeyManJams165
    @MonkeyManJams16523 күн бұрын

    It's going to depend, but the compiler is not always smarter than the programmer, it just depends on what its doing, always. Although in general, the compiler for higher level languages yes, they will usually know what to do better, unless you know exactly for sure what it's doing in order to achieve the desired outcome.

  • @tomiivaswort6921
    @tomiivaswort692124 күн бұрын

    idk C# but do you really have to typecast enums? In C++, each element in an enum is assigned a number. you can also assign a custom value with a simple ELEMENT = 4, for example.

  • @leandromorales3658
    @leandromorales365825 күн бұрын

    Else if

  • @papachipchip4007
    @papachipchip400725 күн бұрын

    I miss you

  • @ElioAurum
    @ElioAurum25 күн бұрын

    As a 3D modeller, there definitely should've been MUCH more optimization on the character models. LODs, removing the skin under clothes, and mip-maps would help with performance.

  • @MemoriesLP
    @MemoriesLP25 күн бұрын

    The commit at the end lol

  • @mashnik4798
    @mashnik479827 күн бұрын

    i don't know anything about about coding but will i watch it all at 01:24 AM? yes

  • @josephreynolds7395
    @josephreynolds739527 күн бұрын

    spaghetti

  • @L_Oeufmf
    @L_Oeufmf29 күн бұрын

    At least from a modeling perspective (The field I have most experince in,) I think with the models not being very optimized is a drawback/fail of the game being volunteer work, Personally I think yandev should've kickstarted the game first with a much smaller demo, Then hired professionals to make models that could quickly be optimized,

  • @sunofabeach9424
    @sunofabeach9424Ай бұрын

    >no bullying bruh it's YandereDev we're talking about. yes bullying.

  • @lofkii
    @lofkii25 күн бұрын

    this was made 3 years ago, his reputation was significantly better back then than it is now

  • @sunofabeach9424
    @sunofabeach942425 күн бұрын

    @@lofkii would've said the same 3 years ago

  • @ferociousmaliciousghost
    @ferociousmaliciousghost24 күн бұрын

    This was during the time when taking shots at his coding was pretty common. So, the bullying would mostly be just insults about the coding, assets stolen, and maybe a chalice here and there. Pretty boring stuff. He is now 100% a child groomer though. So, that makes a huge difference.

  • @teracraged320
    @teracraged320Ай бұрын

    Wow love the structure and even my gf understanding it and she doesn't has to do with programming

  • @ovi1326
    @ovi1326Ай бұрын

    Can't speak for dotnet (I assume the project's unity versionis from before the time of the burst compiler), but llvm and gcc spit out the same code for switches and if chains. If you lower both of of these cases to their respective IRs it's the same thing - a bunch of conditional jumps to basic blocks (and that's assuming you don't turn on optimizations, in very optimistic cases the code can be made branchless by the optimizer). Wonder why the JIT liked switches more.

  • @rollthedyc3
    @rollthedyc329 күн бұрын

    IIRC I think I mention this in the video, .net transforms applicable else if chains into switch statements at compile time. It's the only optimization that's done at compile time (that I'm aware of), everything else is JIT