bruh look at dis dood

bruh look at dis dood

It's All Fucked Shirt $22.14

The Kind of Tired That Sleep Won’t Fix Shirt $21.68

It's All Fucked Shirt $22.14

  1. 2 years ago
    Anonymous

    look come on man, its either this or this

    • 2 years ago
      Anonymous

      Will, mom and dad are gonna kill us when they find out
      would you make me a sandwich?

      • 2 years ago
        Anonymous

        Nooo

        • 2 years ago
          Anonymous

          That's B E A E N E K E S.
          No E.

          • 2 years ago
            Anonymous

            E
            E
            E

  2. 2 years ago
    Anonymous

    What was this guy before he started programming this game? Just a coomer NEET or did he actually complete some 2 week programming course?

    • 2 years ago
      Anonymous

      >Just a coomer NEET
      yes, he spent most of his time posting images of his samus sex doll
      he's self taught

  3. 2 years ago
    Anonymous

    is this the thread where we pretend we know what's wrong with that picture

    • 2 years ago
      Anonymous

      go back to 9gag

    • 2 years ago
      Anonymous

      it probably "works" it's just not readable or the most efficient design.
      All that logic should be split into its own function or something

      • 2 years ago
        Anonymous

        >it probably "works" it's just not readable
        Why does that matter?

        • 2 years ago
          Anonymous

          Harder to bug test and optimize I guess.

        • 2 years ago
          Anonymous

          because a badly programmed game will run like shit and it's hard to make any changes and add new shit

          if it's a small, simple and light game then it doesnt really matter as long as it works

          • 2 years ago
            Anonymous

            He said readable but working.
            "Readable" means that it's easy for a person to understand what it does by looking at it.
            Code can be unreadable and work perfectly. There are contests about making working code that is as illegible as possible.

            • 2 years ago
              Anonymous

              It's not unreadable, it's just arguably not optimized. It's very clear what's happening in that code. It's checking for state changes in anything that's happening in the game quite obviously. It's probably just slow as shit.

              • 2 years ago
                Anonymous

                Black person if you call this readable I’d hate to see your unreadable code. “It just checks everything lol” isn’t a useful description when it comes to maintaining code.

              • 2 years ago
                Anonymous

                Are you a fricking moronic Black person? There's nothing unreadable about that code lmfao.

              • 2 years ago
                Anonymous

                Why is it a game over if the teacher spots you trespassing but only if he hasn't witnessed a corpse?

                I see where you're confused. "Unreadable" in code review terms means "too hard to understand"
                If you replace every variable with random letter combinations, the code is still technically readable. It's just that no one wants to

              • 2 years ago
                Anonymous

                It's not hard to understand, and the variables are named clearly. It's literally just ands and ors.

              • 2 years ago
                Anonymous

                Well, it should be easy to answer the question you ignored, then.
                Why is it a game over if the teacher spots you trespassing but only if he hasn't witnessed a corpse?

              • 2 years ago
                Anonymous

                Are you asking a hypothetical, or is that an actual bug in the game that you've experienced?

              • 2 years ago
                Anonymous

                Does it matter? I'm trying to understand this code that is easy to understand.
                Why is it a game over if the teacher spots you trespassing but only if he hasn't witnessed a corpse?

              • 2 years ago
                Anonymous

                Also, there's just not enough code for me to answer that question. I guess I'm assuming that if "bool continue" stays false that would be game over, but it looks like that statement might be somewhere beneath the code we see. There must be a condition below all that that fails to set bool continue back to true. I'm not even sure if that's what he's doing, but there's only one if statement in the pic really.

              • 2 years ago
                Anonymous

                >change something
                >condition suddenly doesn’t trigger when I know it should
                >look at the code
                Yes, this is very readable. Very helpful. Not a pain in the ass at all.

              • 2 years ago
                Anonymous

                Should be quick to figure out if you were the one who made it. Literally a string of a few ands or statements. If it was like 500 of them, I'd say it was unreadable.

              • 2 years ago
                Anonymous

                >If it was like 500 of them, I'd say it was unreadable
                Expect it kinda is since his whole code is like this. Stuff probably repeats a dozen times.

              • 2 years ago
                Anonymous

                > Should be quick to figure out if you were the one who made it.
                Now you exposed yourself.

              • 2 years ago
                Anonymous

                Does it matter? I'm trying to understand this code that is easy to understand.
                Why is it a game over if the teacher spots you trespassing but only if he hasn't witnessed a corpse?

                Nope. Just said there's not enough code in that pic to answer that question. Most likely if bool continue stays false, the game ends, but deducing that from this pic is a stretch. Everything in the pic is readable. All that code does is trigger an update to the game. Which happens somewhere else.

              • 2 years ago
                Anonymous

                >if you were the one who made it
                This is a common error
                "Oh I've written this code I'll be fine". Then you look at it 3 months later and have no fricking idea what anything is

              • 2 years ago
                Anonymous

                It's shit code for a 3d game. I don't know what the frick this game is.

              • 2 years ago
                Anonymous

                >Should be quick to figure out if you were the one who made it.

                You're admitting that it's unreadable.

              • 2 years ago
                Anonymous

                It's not. There's literally technically only 4 lines of code in that picture. I can't tell you how the whole program works from 4 lines of code.

              • 2 years ago
                Anonymous

                >only 4 lines
                >picture has a single if condition spread over 30+ lines
                You are so fricking dumb it’s borderline trolling at this point. Just stop commenting dude you very clearly are out of your depth, multiple people are explaining why this is shit code. Literal Reddit moment

              • 2 years ago
                Anonymous

                kek, he means actual lines of logic as the compiler will see it

              • 2 years ago
                Anonymous

                He's so fricking stupid. It's 4 lines of code. A line of code ends with a semicolon usually. Doesn't matter if it's 5 pages long. And if statement is a single line of code, no matter if it take 50 lines to fill it up

              • 2 years ago
                Anonymous

                i work as a software engineer and lines of code are lines of code.
                if you wrote some unholy bloated conditional statement like OP then it would still be considered dozens of lines of code.

                Just put stuff like "Armed && (EquippedWeapon.Suspicious || EquippedWeapon.Bloody)" into a function "isArmedAndSuspicious", same with "Dragging", "Carrying", "Pickpocketing" into "isPerformingSuspiciousAction".

                These conditions could probably be broken up into methods that aggregate a bunch of them in some kind of sensible way.

                if (this.Yandere.isBusy() || this.Yandere.isFighting())

                etc

                what these guys said is probably how i would go about trying to clean this up.

              • 2 years ago
                Anonymous

                >I work as a software engineer.
                No you don't lol.

              • 2 years ago
                Anonymous

                a line is a line, a statement is a statement you stupid pseud

              • 2 years ago
                Anonymous

                The compiler will break each individual evaluation into like 4 instructions

              • 2 years ago
                Anonymous

                30 lines of code you dumb Black person. A line of code is a single statement. There are 4 statements in this picture you dumb Black person. Shut the frick up you idiot.

              • 2 years ago
                Anonymous

                kek, he means actual lines of logic as the compiler will see it

                Frick you're moronic

                He's so fricking stupid. It's 4 lines of code. A line of code ends with a semicolon usually. Doesn't matter if it's 5 pages long. And if statement is a single line of code, no matter if it take 50 lines to fill it up

                Oh my god you fricking arm chair morons.

                Look at the left side. If he had lines or code enabled, they would be increasing.

                No one cares if this is actually one 5000 character line. Most IDEs break around 80 characters into a new line. It’s unreadable garbage and the fact that it’s “4 lines” and had to be split over 30+ makes that abundantly clear. If your code contains lines that god damn long you can’t reasonable parse out the logic mentally.

                You are all fricking braindead larpers. Go back to waging.

              • 2 years ago
                Anonymous

                No you're a fricking Black person and don't understand that that's 4 lines of code you idiot. You'd fail a fricking freshman level exam. Where the professor would tell you to evaluate this fricking boolean expression in your head, and asks you "how many lines of code is this?"

              • 2 years ago
                Anonymous

                Everyone else understood what he meant by "it's just 4 lines" even though we can all see the line count of the text editor
                Might wanna reflect on that

                I have a CS degree, write code everyday. Make a lot of money doing it. Cope n seethe.

                No reasonable person thinks from the perspective of a compiler when talking about readability. To a human trying to understand that code, it’s not “4 lines”. I understood its “technically” 4 lines but literally who fricking cares. You homosexuals are just out of your depth, arguing over semantics like what makes a line a line because you dug yourselves holes and want to save face. Again, if a single line has to split into 30 to be readable, it’s garbage code. Simple as.

              • 2 years ago
                Anonymous

                >I understood its “technically” 4 lines
                You did not, or you wouldn't be this mad about it

              • 2 years ago
                Anonymous

                Yes, I'm sure you do, anon.

              • 2 years ago
                Anonymous

                >I understood its “technically” 4 lines
                You did not, or you wouldn't be this mad about it

                >anon you’re wrong
                >people that actually code explain why you’re moronic
                > you’re mad haha also you don’t code or make money doing it
                Lol you losers on this board are so pathetic. Literally worse than redditors. Stay poor and moronic.

              • 2 years ago
                Anonymous

                >"it's just 4 lines of code"
                >fair enough, he's just talking about the statements
                >REEEEEEEEEEE IT'S MORE LIKE 30+ ARE YOU BLIND CAN YOU NOT SEE THE TEXT EDITOR????
                Thanks for conceding.

              • 2 years ago
                Anonymous

                See

                this.
                furthermore what the compiler executes is entirely irrelevant. compilers do all kinds of optimization & what might be dozens of lines of source code could be rearranged into just a few instructions by a compiler.

                when people say "lines of code" they're referring to the perspective of a programmer, or someone reading the code. not the compiler.

                It is not even 4 lines for the compiler either. It may be 4 lines in terms of syntax analysis, but when it has to actually translate that shit into machine code it has to go through each evaluation individually. Depending on the level of optimization it might even generate a branching instruction for each evaluation.

                Then promptly have a nice day.

              • 2 years ago
                Anonymous

                See

                kek, he means actual lines of logic as the compiler will see it

                But since you're too stupid to come up with new posts now, this discussion ends here. You made a mistake and got mad about it. Keep seething

              • 2 years ago
                Anonymous

                Nah, you're wrong. It's 4 lines of code. And this all started cuz that dumb Black person told me to answer a question about the game based off of 4 lines of code. In terms of game logic, only 4 things happen here, because there's only 4 lines of code

                a compiler would need way more than 4 instructions to compare all those conditions lol

                in some lanaguages you could just jam your entire program into a single line of code, but that doesn't really make it "one line of code". it's like taking a 1,000 page novel and printing it all out onto one giant single page and saying "look, moby dick is actually only 1 page long".

              • 2 years ago
                Anonymous

                Nah, you're wrong. It's 4 lines of code. And this all started cuz that dumb Black person told me to answer a question about the game based off of 4 lines of code. In terms of game logic, only 4 things happen here, because there's only 4 lines of code

              • 2 years ago
                Anonymous

                See
                [...]
                But since you're too stupid to come up with new posts now, this discussion ends here. You made a mistake and got mad about it. Keep seething

                >Literally STILL arguing about the semantics of what makes a line of code a line of code
                Peak midwittery

              • 2 years ago
                Anonymous

                It's not. It's just you (or whoever) was like "well tell me why this this and this happens then" and it's like, well there's only 4 lines of code so there's no way to know that without seeing the rest of the program lol.

              • 2 years ago
                Anonymous

                Keep bringing up reddit and go read a book

              • 2 years ago
                Anonymous

                Damn dude good one

              • 2 years ago
                Anonymous

                It is not even 4 lines for the compiler either. It may be 4 lines in terms of syntax analysis, but when it has to actually translate that shit into machine code it has to go through each evaluation individually. Depending on the level of optimization it might even generate a branching instruction for each evaluation.

              • 2 years ago
                Anonymous

                Boolean expression is still one line of code

              • 2 years ago
                Anonymous

                Do you have any idea of how compilers work?

              • 2 years ago
                Anonymous

                4 lines of code to the programmer. 4 things happen in this picture. I don't give a frick what the compiler does. This is supposed to be human readable, and it is. 4 things are happening.

              • 2 years ago
                Anonymous

                I am talking about the compiler in my post, you braindead Black person.
                have a nice day.

              • 2 years ago
                Anonymous

                I don't give a frick what you were talking about, I was talking about that picture being objectively 4 lines of code you dumb Black person. If you can't see that, you're moronic, and failed your first programming class.

              • 2 years ago
                Anonymous

                >I don't give a frick what you were talking about
                Then don't reply to me, shit eating Black person troony homosexual.

              • 2 years ago
                Anonymous

                You're a shit eating Black person homosexual and I don't even know what the frick you're talking about, because we're talking about actual lines of code. See my breakdown above if you are still a dumb Black person and want to know which 4 things are happening here, and why we can't deducde much from 4 lines of code you dumb Black person.

              • 2 years ago
                Anonymous

                have a nice day

              • 2 years ago
                Anonymous

                4 lines of code. moron.

                I see where the argument comes from
                Yes, technically you are correct

                >1. If statement (evaluate this boolean statement as either true or false)
                Explain this one in more detail though, when EXACTLY do we go into the if block

                If statements are always run no matter. This shit will run every loop.

              • 2 years ago
                Anonymous

                >If statements are always run no matter. This shit will run every loop.
                I'm not asking when it will be evaluated
                I'm asking when do we go into the if block? What the state of the game that we need to go into the if block? What exactly needs to happen in the game in order to set Continue = true ?

              • 2 years ago
                Anonymous

                That requires evaluating the boolean expression it's all their. They're paired by ands ors. The ands have both evaluate to 1 to count as a 1. Anything separated by an or can trigger this statement to run. It would be slightly more readable if he put parenthesis around the paired and statements, so we knew they were together. If he did that, it would be a really simple series of or statements. Any one can trigger this loop.

              • 2 years ago
                Anonymous

                You're literally just an autist and can't explain what game state triggers the if block

              • 2 years ago
                Anonymous

                Multiple different game states can trigger the block you dumb Black person, there are several "or" statements in there. It's all there. It's readable. I don't need to tell you because it's right there. Count the "ors", that's how many different game states can trigger that block.

              • 2 years ago
                Anonymous

                >It's readable.
                You can't even explain it, it is definitely not readable not even to you lmao
                You keep dodging the question because you just can't explain what game logic is happening there
                Granted neither can I because it's shitty code that I don't want to look at any longer

              • 2 years ago
                Anonymous

                Do you know what an or statement is? This symbol "||" is an or statement. It breaks the logic up. Everytime you see that symbol, it's a different statement that can trigger the block. Here, I'll do the first one. "If the yandere is armed, and the equipped weapon is suspicious" then the whole statement is true. Now repeat that for every statement broken up by an "or" (||)

              • 2 years ago
                Anonymous

                >4 things are happening.
                I'm curious, what are those 4 things?

              • 2 years ago
                Anonymous

                1. If statement (evaluate this boolean statement as either true or false)
                2. Set continue to false if last statement was true.
                3. Evaluate this boolean statement (looks like he's checking if the player moved a certain amount)
                4. Set continue to true. If last statement was true.

              • 2 years ago
                Anonymous

                that boolean expression could take the compiler dozens of instructions to actually make those comparisons.
                every single one of those conditions is a "thing happening".

              • 2 years ago
                Anonymous

                4 line of code.

              • 2 years ago
                Anonymous

                i'm a senior software engineer and if some jr dev asked me to review their merge request and said it's a "one line change" and i look at it and it's fricking 30 lines of conditions then i would consider that jr dev stupid

              • 2 years ago
                Anonymous

                kek this Black person thinks "senior software engineer" is gonna make him seem an authority
                For anyone who doesn't work in software engineering: You automatically become a senior if you've worked a few years. Senior positions require 3 years of experience and that's it

              • 2 years ago
                Anonymous

                >For anyone who doesn't work in software engineering: You automatically become a senior if you've worked a few years. Senior positions require 3 years of experience and that's it
                i'll give you that one, but i've been doing it much longer than 3 years.

              • 2 years ago
                Anonymous

                You would say "this statement is too complex", "why are we doing it this way?" , "Can you evaluate this differently or handle it another way?" Not. "It's too many lines of code REEEEEEEE"

              • 2 years ago
                Anonymous

                For 30 lines? I'd fire that guy lmao

              • 2 years ago
                Anonymous

                Yeah, "30 lines of conditional statements"

              • 2 years ago
                Anonymous

                Ah yes, the commonly accepted term "lines of code", which of course means "lines of code in the compiler-generated assembler code"
                Each move is a line of code!

              • 2 years ago
                Anonymous

                I see where the argument comes from
                Yes, technically you are correct

                >1. If statement (evaluate this boolean statement as either true or false)
                Explain this one in more detail though, when EXACTLY do we go into the if block

              • 2 years ago
                Anonymous

                >Depending on the level of optimization it might even generate a branching instruction for each evaluation.
                Actually it basically has to do that because of the way that && works in C#

              • 2 years ago
                Anonymous

                this.
                furthermore what the compiler executes is entirely irrelevant. compilers do all kinds of optimization & what might be dozens of lines of source code could be rearranged into just a few instructions by a compiler.

                when people say "lines of code" they're referring to the perspective of a programmer, or someone reading the code. not the compiler.

              • 2 years ago
                Anonymous

                Everyone else understood what he meant by "it's just 4 lines" even though we can all see the line count of the text editor
                Might wanna reflect on that

              • 2 years ago
                Anonymous

                Frick you're moronic

              • 2 years ago
                Anonymous

                Never fricking code.

              • 2 years ago
                Anonymous

                Variables names stated clearly. Single line for each boolean statement. Simple ands and ors. Yep you're moronic.

              • 2 years ago
                Anonymous

                It’s not about the fact that it’s “literally” readable. It’s disgusting and inefficient to read, that’s what unreadable is. No sane person wants to have to try and debug this, imagine there’s an issue in here somewhere and now you get to step through every single check just to see which broken variable is causing it.

                You are fricking braindead, do not ever code anything. Not that you’d be able to if you think this is okay code.

              • 2 years ago
                Anonymous

                Don't get mad, anon. You're right and anon is either a troll or someone who hasn't worked on a serious project in his life
                Either way, not worth your time

              • 2 years ago
                Anonymous

                It would be more complex if he used event handlers and other functions. The way he has it now is technically the most readable. It just so happens to also be the least efficient. Blowing this thing up into many different functions makes it harder for someone to understand, but it wouldn't matter if the game performance was great.

              • 2 years ago
                Anonymous

                More complex does not equal less readable.

              • 2 years ago
                Anonymous

                What? Are you trolling? Event handler may be more complex on paper, but they’re much more readable and understandable because THAT’S HOW HUMANS THINK.
                We don’t think “better update and check my entire environment to see if anything has changed every millisecond and I need to react to that” we think “action X has happened, time to react with Y “.

              • 2 years ago
                Anonymous

                Most game loops do still have some form of check every environment variable every frame. Most multiplayer games still use a tick rate, which is just the rate at which the game environment is updates. It's checking a bunch of shit like player locations, ammunition counts, health status, locations of items, who's alive and who's dead. You just don't see that code because it's not open source.

              • 2 years ago
                Anonymous

                Recalling a game state to draw a frame is not the same as conditionally comparing if events are happening every frame.

              • 2 years ago
                Anonymous

                It would be more complex but that doesn’t mean it’s less readable. This code would instead be nicely separated into event handlers, would which make it immediately clear what is happening and why it is firing, if done right. I disagree entirely that it would make it harder to understand, understanding what the application as a whole is doing would be far easier to grasp.

              • 2 years ago
                Anonymous

                Harder to understand for simpletons. I'm saying this is the easiest form to understand for someone that doesn't even know how to code. It's just a series of boolean statements. More complexity makes it easier overrall, but you would actually have to know code at that point.

              • 2 years ago
                Anonymous

                Nah, I've never written a conditional statement this big, but they can get complex, and you should still be able to evaluate them. There are troll classes in college where you evaluate long boolean statements like this

            • 2 years ago
              Anonymous

              The answer they won't give you is computer programmers are snobs about shit like this. It ultimately doesn't matter.

        • 2 years ago
          Anonymous

          Impossible to find bugs. Imagine this function isn't getting run because a single one of those variables is not what it should be. You would have to look at every single variable one by one and try to figure out the logic in your head to see where it isn't working. Literally a nightmare.

        • 2 years ago
          Anonymous

          because it's not finished, so things will change, causing it to stop working
          sure, a single floor building made out of cardboard "work", but the plan isn't for a single floor, the plan shows a skyscraper

      • 2 years ago
        Anonymous

        >it probably "works" it's just not readable or the most efficient design.
        It's the most runtime efficient solution and chances are it's just the compiler that optimized it like this. The other way would require Reflection, which adds a massive overhead in general, but is already present anyway since the game is probably made in unity.

        • 2 years ago
          Anonymous

          Compilers don't change the source code.

          • 2 years ago
            Anonymous

            Have you ever ran anything but O0?

          • 2 years ago
            Anonymous

            if the posted code was from a decompiler, than we could be seeing source code that had been optimized by the compiler.
            there's comments in it, though, so it doesn't look like its from a decompiler.

        • 2 years ago
          Anonymous

          no if fricking isn't you moron

      • 2 years ago
        Anonymous

        How is this not readable?

        • 2 years ago
          Anonymous

          >this.IgnoringPettyActions = true
          >this.Yandere.Rummaging = false
          >this.Yandere.SeenByAuthority = true
          do we go in the if or else branch? and make sure to set a timer how long it takes you to reason about it lmao

      • 2 years ago
        Anonymous

        The whole reason why BOTW's open world systems is so consistent is because it is coded very well. Everything is allowed to interact with each other. This code would essentially be like BOTW checking if fire touched wood, it burns; or if it touches grass, it burns,...., if water touches burning wood, it extinguishes, if water touches burning grass, it extinguishes... and so on.
        What BOTW instead does, is declare all material that are flammable, or not; and then simply codes if fire touched flammable material, it burns; if fire touches burning material it extinguishes; instead of making condition for every single object. This makes it both readable and allows it to do something, which otherwise would have taken an autistic amount of time.

        • 2 years ago
          Anonymous

          >What BOTW instead does, is declare all material that are flammable, or not; and then simply codes if fire touched flammable material, it burns; if fire touches burning material it extinguishes; instead of making condition for every single object. This makes it both readable and allows it to do something, which otherwise would have taken an autistic amount of time.
          Is this real? I'm stealing this.

        • 2 years ago
          Anonymous

          Bro, we don't know what the frick they did, because that shit is not open source.

    • 2 years ago
      Anonymous

      I am just an intermediate programmer who mostly does scripts, but from what I can tell yandere dev has made an if statement and in this if statement there is a chain of at least 30 "if previous thing fails, try this instead". Imagine if yanderedev wants to add something new to this. Where in the list should he put it? If he puts it too far up, the ones below might become superflous, if he puts it too low, there might be double work overlap.

      • 2 years ago
        Anonymous

        It literally doesn't matter because the conditions will stop being evaluated at the first true.

      • 2 years ago
        Anonymous

        >intermediate programmer
        the world truly is doomed.

    • 2 years ago
      Anonymous

      You only need to read like five lines to understand this is an absurdly convoluted, unreadable clause. Nightmare to maintain, fix or expand. There has to be a better way, first instinct would be to export those conditions into functions and (hopefully applicable) group them sensibly together.

      • 2 years ago
        Anonymous

        I am just an intermediate programmer who mostly does scripts, but from what I can tell yandere dev has made an if statement and in this if statement there is a chain of at least 30 "if previous thing fails, try this instead". Imagine if yanderedev wants to add something new to this. Where in the list should he put it? If he puts it too far up, the ones below might become superflous, if he puts it too low, there might be double work overlap.

        it probably "works" it's just not readable or the most efficient design.
        All that logic should be split into its own function or something

        If you spent atleast 5 minutes reading the logic axioms, you'd find that there are tons of redundant statements there. And no, compiler could not have produced this.

        • 2 years ago
          Anonymous

          >implying and anyone remembers Boolean algebra past college
          if clause goes brrrrr

          • 2 years ago
            Anonymous

            I kind of remember them, or at least remember that they exist, and can look them up if I need to white a complex condition. I used that for the settings of my RimWorld mod. I'm scared to look back at its code because I might find out that it's not that great.

        • 2 years ago
          Anonymous

          why worry about it though? the compiler will fix it

        • 2 years ago
          Anonymous

          >I found a random page from a textbook so I'm smart
          No, it's not redundant if he needs to check multiple things every frame. Game loops can be very complex as game complexity rises. You can sum that entire if statement into "if literally anything in the game has changed. Aka the user did something or something happened, then run this code to update everything accordingly."

          • 2 years ago
            Anonymous

            >NO SERIOUSLY WHAT ARE EVENT HANDLERS????????

            • 2 years ago
              Anonymous

              It's still technically already an event handler. Just a shitty one.

              • 2 years ago
                Anonymous

                Not really, obviously I don’t know when this function is called, but that other anon describes it as a function that updates the game, like every game. That’s not an event handler at all because there is no event, it’s checking everything all the time whether an event happened or not.

              • 2 years ago
                Anonymous

                Well, that could make things go slower in a big game, but I don't even know what the frick this game is. It's just a game loop, but it looks like he is checking if shit happened in other functions every frame, which works, but is maybe slow. It handles the events if they happened. But if shit didn't happen, it's wasteful.

              • 2 years ago
                Anonymous

                no it isn't, an event handler is pull this is push

          • 2 years ago
            Anonymous

            Your argument is moronic. For that reason we use event handlers. This is unnecessary condition checking.

    • 2 years ago
      Anonymous

      You don't program.

      • 2 years ago
        Anonymous

        No, I don't and you're a fricking nerd if you do

    • 2 years ago
      Anonymous

      sure, eva. sure.

    • 2 years ago
      Anonymous

      you can compartmentalize a lot of the stuff. for example conditions can be all put into an array as part of the general char conditions wich are part of the char object. then you iterate over all the conditions and return true or false depending on what the case is. a lot of stuff like this that has the same outcome can be bunched up into an array.

    • 2 years ago
      Anonymous

      What he needs is a state machine. What he made is waaay to declarative.

    • 2 years ago
      Anonymous

      I'd say I'd want to pretend what is right with that image but I really can't. Creating this gigantic fricking mess of logical links is a pain in the ass to test, debug, edit or fix. The easiest way to unfrick this would just be to, at the very least, compartmentalize some of that shit into different methods that essentially do the same but that way it would be much easier to make smaller edits without fricking up EVERYTHING.

    • 2 years ago
      Anonymous

      No, this is the thread where people with basic or above understanding of coding laugh at YandereDev.

    • 2 years ago
      Anonymous

      >it probably "works" it's just not readable
      Why does that matter?

      How is this not readable?

      He said readable but working.
      "Readable" means that it's easy for a person to understand what it does by looking at it.
      Code can be unreadable and work perfectly. There are contests about making working code that is as illegible as possible.

      >Why does that matter?
      >He said readable but working.
      Notice how it's been almost ten years and
      >He's still isn't done
      >He's been stuck on the same few problems for 3+ years
      >He still can't implement basic functionality

      >MULTIPLE clones have been announced in this time period, and have completed and released
      >Most of them having more features than what his game is going to have on launch

      What he has created, if that code snippet is any indication, is a giant house of cards that topples over every time he breathes on it. So adding features, fixing problems, or even renovating his code is akin to playing russian roulette with five bullets. Which it wouldn't have to be if it was done right in the first place.
      Don't strawman and say something like "Pajeets make code like this all of the time". They're used to the chaos, they do it professionally. Yandev is just one guy. Before anyone says one guy can't make a game as big as his in ten years, pic is a guy who made a VR FPS game with more features than any FPS made in the last ten years and he updates it weekly with new features. Yandev is struggling to make a few features for three years.

    • 2 years ago
      Anonymous

      Not really but in prrviois threads the guys eho do know basically described it as his game all checking all this bullshit all the time with excessive if/and shit which dumpsters the performance

    • 2 years ago
      Anonymous

      Why wouldn't some of us know whats wrong with this picture?

      • 2 years ago
        Anonymous
    • 2 years ago
      Anonymous

      I have been a backend developer for 3 years, have an IT bachelor, been a pc technician for 2 years, and gave programming lessons to some people who wanted to switch careers. Yes, I know what is wrong with this fricking filth you see on the screen.

      • 2 years ago
        Anonymous

        It's a clean statement. It's no different than one of these meme calculus problems that take forever to evaluate, but is actually really simple.

    • 2 years ago
      Anonymous

      With so many states he could just whats NOT

    • 2 years ago
      Anonymous

      It's fun to see what other anons have in mind to make this more elegant I think.

    • 2 years ago
      Anonymous

      Just don't be a brainlet

      Imagine that instead of saying "Tell me what happened" and reacting accordingly
      This guy would instead say "Did X happen? And if not did Y happen? And if not did Z happen? And if not..." hundred times over

    • 2 years ago
      Anonymous

      Even if you don't know shit about coding something in your brain still tells you that there has to be a better way to do whatever YanDev was trying to do.

    • 2 years ago
      Anonymous

      This. I'm not a pajeet or a troony so I can't read programming "languages"

    • 2 years ago
      Anonymous

      When I was younger I installed a mod for Morrowind that would remove mushrooms from the game after you had harvested them instead of them just becoming unusable props.
      It gradually ground the game to a halt with every mushroom I picked because the game was checking to see which ones I had removed every frame to make sure they shouldn't exist.

    • 2 years ago
      Anonymous

      I'm not a codemonkey but even as an amateur video game modder I can see how thats just badly written.

      • 2 years ago
        Anonymous

        no you can't you should put out the fire on those pants

    • 2 years ago
      Anonymous

      yeah Ganker likes to laugh at things to fit in

    • 2 years ago
      Anonymous

      person with zero programming experience here but even simply reading my friend's code and trying to comprehend makes me see theres something wrong
      >extremely convoluted
      >repeating some shit over and over that could be far more compact
      >'' hey try x and if it fails try y and if it fails try z '' over and over and over and
      the fact its so hard to read by itself is a giveaway its very stupid, i can usually instantly tell what things to even if i cant write them myself

      though it probably works fine, if anything it should be painful to add more to it or maybe it isnt performance friendly
      did i get it right bros?

      • 2 years ago
        Anonymous

        >did i get it right bros?
        Kind of. Just because something is hard to understand doesn't mean that it's bad; there's plenty of stuff that's a nightmare to figure out simply because the language requires a lot of boilerplate (e.g. Java) or the code has been reduced down enough where it can be a struggle to make sense of even one line (e.g. https://norvig.com/sudoku.html).

        There's also programming languages where they're intentionally difficult or weird to read (e.g. Piet), but you aren't going to run into those unless you're enthusiast for programming in itself.

        That said, if something is difficult to understand because it's a series of if statements and conditions, then it likely is a mark of the code being poorly written.

    • 2 years ago
      Anonymous

      I think all this needs to be put in a list or something and then called for the if statement, right? Would that run better?

    • 2 years ago
      Anonymous

      The entire game's logic is in one file, in one function. Every new entity in the game has to have its own tree of conditionals added to this single megafile. Every conditional for every object and every possible state of an object in the game gets checked every frame. This is fricking horrendous on levels I cannot even begin to express in words.
      If you ran GitHub Copilot on this code it would just output
      >AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

    • 2 years ago
      Anonymous

      It looks like someone will chase the yandere if she does certain suspicious actions, with some exceptions added in.

  4. 2 years ago
    Anonymous

    Why not just split up the If statements?

    • 2 years ago
      Anonymous

      What would that achieve other than increasing code duplication?

  5. 2 years ago
    Anonymous

    tbh at least yanderedev can code even if poorly. I was never able to understand this shit.

    • 2 years ago
      Anonymous

      it's not that hard once you understand that it's just objects and properties

      • 2 years ago
        Anonymous

        t. C# baby
        Even Javababies know better than that.

    • 2 years ago
      Anonymous

      study python, it's moronicly simple.

  6. 2 years ago
    Anonymous

    everyone makes fun of him but can they explain exactly how they'd code those if statements otherwise

    • 2 years ago
      Anonymous

      if your code starts to look like this, you refactor

    • 2 years ago
      Anonymous

      a state machine

  7. 2 years ago
    Anonymous

    yanderedevsan continues to live rent free in Gankers head

  8. 2 years ago
    Anonymous

    If else is bad because... IT JUST IS OK??

    • 2 years ago
      Anonymous

      if else is bad because if else we if else were if else coding if else
      if else

  9. 2 years ago
    Anonymous

    Imagine the CPU times.

    • 2 years ago
      Anonymous

      >oh my god a bunch of bool comparisons bros I can hear my cpu physically straining itself

      • 2 years ago
        Anonymous

        Yeah Yandere Simulator runs amazingly well. There is no need to criticize the code!

        • 2 years ago
          Anonymous

          >it runs bad != it runs bad because of this piece of code right here

      • 2 years ago
        Anonymous

        >a bunch
        >literally 50 lines of code all for one if statement condition
        Shut the frick up

      • 2 years ago
        Anonymous

        yes, branches are expensive

    • 2 years ago
      Anonymous

      Let's Imagine the GPU times too

      • 2 years ago
        Anonymous

        >C# + GARBAGE COLLECTOR + UNITY + SHITTY CODE + moronicLY DETAILED ASSETS
        HOLY BLOAT

      • 2 years ago
        Anonymous

        he could literally make a 20 triangle toothbrush in 10 minutes

        • 2 years ago
          Anonymous
          • 2 years ago
            Anonymous

            Are you the blender anon from the thread yesterday?

            • 2 years ago
              Anonymous

              im a blender anon

  10. 2 years ago
    Anonymous

    he's literally me

  11. 2 years ago
    Anonymous

    Still looks better than the codebase of some of our legacy apps
    >doing extremely critical work that could literally endager people's lives if done badly by appending to a string within a loop within a loop within a loop within a loop within a loop within a loop etc and the excuse they give when I ask why is "it's for performance"

  12. 2 years ago
    Anonymous

    If you're so smart show me how it should be done

    • 2 years ago
      Anonymous

      Instead of checking all that crap all the time have each of these actions or states change a suspicion level and if it's high enough trigger the chase mechanic.
      Or at least that's what I suppose the dev wanted to achieve.

    • 2 years ago
      Anonymous

      Design your AI or gameplay in state machine diagram, so you can remove redundant if statements or shrink the conditional expressions

      • 2 years ago
        Anonymous

        Damn, really shows you how far away I am from making my own vydea I can't read this at all.

        • 2 years ago
          Anonymous

          The nodes are state, i.e action that will be taken, the edges are conditions to trigger state changes, simple as.

      • 2 years ago
        Anonymous

        I HATE ABSTRACT MACHINES
        I HATE ABSTRACT MACHINES
        I HATE ABSTRACT MACHINES
        I HATE ABSTRACT MACHINES
        I HATE ABSTRACT MACHINES

    • 2 years ago
      Anonymous

      fire events when certain actions happen within the game
      react to these events by changing the state or triggering other actions
      use timers to change state when an action should only last a certain amount of time

      it's that fricking easy
      when you work as a corporate drone in the software industry, you have to do all of that shit with a network between different types of state / data

    • 2 years ago
      Anonymous

      Just make it so each of those things that are being checked set x to true when they meet their conditions, but do it in their own functions and such, rather than a block if if statements that checks if one of those conditions is true. So whatever code there is in line 955921359 that determines what happens when .Armed, .EquippedWeapon and such are executed, set something to true that is then checked by this function. It wouldn't be great because you would be talking about global variables but it's better than this.

    • 2 years ago
      Anonymous

      >Please do my coding for me for free
      No way gay

      • 2 years ago
        Anonymous

        people actually offered to fix his game for free, but he told them to frick off

    • 2 years ago
      Anonymous

      He's really just trying to make a system that checks if the Yandere is busy, you only really need 1 boolean for that, where you would set it at the different criteria.

      • 2 years ago
        Anonymous

        Checking the current running animation seems like a good start

    • 2 years ago
      Anonymous

      its doable using a single flag, would be really simple and clean but would be hard to debug if there is an error in the logic

    • 2 years ago
      Anonymous

      Have these seperate triggers in their own relevant categories set a new function "Chase Alert" to true if the case.

      Have chase relevant tasks simply check if chase alert is true.

      This would still cause a problem of how to make chase turn off but it's cleaner.
      Also he really needs more descriptions

  13. 2 years ago
    Anonymous

    I want to get into programming but I think I'm too stupid to do so. Feels like my attention span is that of a gold fish.

    • 2 years ago
      Anonymous

      Coding is for gays. Study something useful like medicine or engineering

      • 2 years ago
        Anonymous

        Coding is engineering you fricking mouth breather

    • 2 years ago
      Anonymous

      Try Python. It doesn't need to compile and most functions are as simple as one word. Then you can learn something more complex like C++.

  14. 2 years ago
    Anonymous

    How would you fix that?

    • 2 years ago
      Anonymous

      i have a feeling this is basically testing
      if "in at home" by testing any possible other location a human could be in the entire world.

      that shit also doesnt happen in a go, it generally starts at one condition and as development progresses more gets added since its easy.
      You simply have to realize at some point i should clean up and find a common expression instead of testing for all possible states.

    • 2 years ago
      Anonymous

      Learn fricking OOP and organise the code better than just checking 500 booleans every time your character does something anywhere in the game world.

      • 2 years ago
        Anonymous

        >Learn fricking OOP

        • 2 years ago
          Anonymous

          >One of the most successful and widely used programming standards is bad... just because it is, okay?

          • 2 years ago
            Anonymous

            >good cuz popular
            oh no no no

            • 2 years ago
              Anonymous

              Yes, this does apply in professional contexts

              • 2 years ago
                Anonymous

                literally wrong, there publications on the issue of operations going haywire because 1 expert suggest a dumb solution and everyone silently believe if noone else objected it must be right and im wrong thinking its stupid, better not say anything and embarrass myself.

              • 2 years ago
                Anonymous

                >there
                Stopped reading. Not interested in a brainlet's opinion

              • 2 years ago
                Anonymous

                >grammar is my sole retort
                idiot

              • 2 years ago
                Anonymous

                OOP is used literally everywhere. I can easily believe something like this happening in isolated cases in different institutions, but the entire field? You better provide some some damn good arguments to convince me.

              • 2 years ago
                Anonymous

                you're not talking to a professional coder
                first you have to realize that there is a massive disconnect between a professional coder and a "hobbyist"/expert.
                People like Linus Torvalds exemplify this divide.
                At the bottom of the divide you have code monkey pajeets and unemployable trannies coding emulators.

              • 2 years ago
                Anonymous

                >At the bottom of the divide you have code monkey pajeets and unemployable trannies coding emulators.
                Bellow that you have Ganker neets who write daily fizzbuzz, but never worked on a single actual project or made anything productive in their entire lives.

              • 2 years ago
                Anonymous

                was only commenting on
                >"good cause everyone does it" is correct among professionals
                in the sphere of computers you could take databases as an example. Big data threw the entire sql doctrine build up over decades out because it didnt held up to the new demands and it worked better.

              • 2 years ago
                Anonymous

                >worked better
                For what it was supposed to do, yes. But it also introduced problems that didn't exist in sql databases. Which is why bigger databases use multiple paradigms.

              • 2 years ago
                Anonymous

                of course, was just saying generally circumstances void established best practices. There are also examples of hardware limitations where oop had no space because they want 0 overhead but i felt its too fringe to mention.

              • 2 years ago
                Anonymous

                OOP is a good thing for projects with multiple people working on it, and when it might need to be modified later.
                If your project is fairly basic and you do it on your own sticking to OOP principles will create more necessary work with little benefits.

              • 2 years ago
                Anonymous

                >OOP is used literally everywhere
                not in embedded or any high performance context like AAA games. There is a good reason why it has fallen out of favor since the 2000s.

              • 2 years ago
                Anonymous

                No way most modern engines aren't using oop now. Isn't unreal still c++?

              • 2 years ago
                Anonymous

                Unity is a great engine and it uses C#. Outer Wilds was made with it, so I will defend Unity no matter what.

              • 2 years ago
                Anonymous

                Unity is alright. The performance is kind of shit because it uses C# most likely though. I think Kerbal ran on unity and it ran really freaking slow when you started modding it. Like, really really slow lol.

              • 2 years ago
                Anonymous

                >I think Kerbal ran on unity
                While I like Unity, it is in no way universal. When you need make something does a lot of math, it just won't do. That's why Noita's engine was custom made in C++.

              • 2 years ago
                Anonymous

                Yeah, it worked for Kerbal until you turn the mods up to 10 and you're stiting on the load screen for an hour, getting 5 fps

              • 2 years ago
                Anonymous

                OOP is still used for like all game development. Outside of a few exceptions. You can easily confirm this by just checking out the engines commonly used in AAA game development.

              • 2 years ago
                Anonymous

                what's the alternative if not OOP?
                functional programming? lmao

                and don't try to come with ECS, it's literally OOP

              • 2 years ago
                Anonymous

                The huge issue with OOP is that when people learn it they apply it to everything. You don't need to use OOP for everything.

  15. 2 years ago
    Anonymous

    >don't check after years
    >wonder if he stopped adding pointless shit
    >check newest uploads
    Oh... Oh no

  16. 2 years ago
    Anonymous

    Can someone explain why/how you'd use a C# generic class in an RPG made in Unity? Wouldn't it be better to use Scriptable Objects for unit types, items and the like?

  17. 2 years ago
    Anonymous

    What the frick is this shit?
    He checks a million different things there.
    Timers, states, location, emotions, clothes? or the state of them, different activities

    What the frick??????

    • 2 years ago
      Anonymous

      he is moronic and it's an absolute miracle that his game ever took off

  18. 2 years ago
    Anonymous

    well, at least he isn't doing string-based comparisons anymore

  19. 2 years ago
    Anonymous

    What a debugging nightmare, there's even multiple redundant expressions.

  20. 2 years ago
    Anonymous
    • 2 years ago
      Anonymous

      >YanDev when he sees an "if" condition

      • 2 years ago
        Anonymous

        >YanDev listening to his favorite song

        • 2 years ago
          Anonymous

          lel

  21. 2 years ago
    Anonymous

    What ever happen to all those Yansim clones in development?

  22. 2 years ago
    Anonymous

    It's called a game loop u Black folk.

  23. 2 years ago
    Anonymous

    People posting a lot random shit in here that they have no idea about lmao. Sums up reddit

  24. 2 years ago
    Anonymous

    I've seen more elegant "code" written in RPG Maker 2003 eventing.

  25. 2 years ago
    Anonymous

    Itt: dumb Black folk that have never written code.

    • 2 years ago
      Anonymous

      t. codemonkey

      >implying and anyone remembers Boolean algebra past college
      if clause goes brrrrr

      Shame. The only thing im upset about is I can't remember for shit what the symbols mean, and every literature that I have about boolean algebra uses different symbols.

      • 2 years ago
        Anonymous

        Code monkey is good. Code monkey make thing work. Most dumb Black folk in this thread posting random shit and haven't written a line of code lmao.

  26. 2 years ago
    Anonymous

    At the end of the day he has a game and i don't, so that's an achievement for him.

  27. 2 years ago
    Anonymous

    Game loops have to check the state of very many instance variables every loop, deciding whether to update, or repeat the last frame. U dumb Black folk. The if statement is checking if any variables have changed in the game world, then updating accordingly .

    • 2 years ago
      Anonymous

      >what are event handlers???????

      • 2 years ago
        Anonymous

        Yeah, I was about to say that. He could have used handler. But it looks like any update to the game will flip some boolean statement that he can just quickly check with this big ass loop. It's moronic, but it works.

        • 2 years ago
          Anonymous

          >but it works.
          >game runs at 20 fps
          >takes the dev years to add a single npc to the game
          >game should be finished sometime around 2090 at this rate

          • 2 years ago
            Anonymous

            Probably why I said it was slow as shit though. It would work if this was like a visual novel that ran at 2 fps, but if it's 3d, it's probably shit.

    • 2 years ago
      Anonymous

      no they don't

  28. 2 years ago
    Anonymous

    You morons are the only reason I remember that this sad sack of shit exists

  29. 2 years ago
    Anonymous

    whatever you want to achieve, this cannot be the right way

  30. 2 years ago
    Anonymous

    And what is the solution of this conditional hell?

    • 2 years ago
      Anonymous

      state machine or a callbacks/events

  31. 2 years ago
    Anonymous

    If you use an if statement you are always wrong, conditional branching instructions should not exist

    • 2 years ago
      Anonymous

      Switch is equally bad

      • 2 years ago
        Anonymous

        Switch statements do not get translated into conditional branch instructions if use them right

  32. 2 years ago
    Anonymous

    I just don't get the appeal of this "game". You play as the girl? And you want to get with a boy? Or you can pick your crush? Does that really appeal to a lot of gamers?
    From what I've seen the gameplay is like hitman but you can only be in a school and have to kill people in the one setting? Seems pretty limited and boring. The end goal is that I get to have sex with a guy? How many times could you replay this scenario before it got boring?

  33. 2 years ago
    Anonymous

    It would be better to move this to a function that then checked variables matching certain conditions. Also break them down in subsets of things to see if they matched.
    I mean look at his this.Teacher stuff.
    There's no reason to write it like this except stupidity.

    • 2 years ago
      Anonymous

      He's got certain things repeating like this.Yandere.Pickpocketing lol
      At least put it in alphabetical order or something so you can follow what you've already added.

  34. 2 years ago
    Anonymous

    lines of code in single file
    As a lead developer with 8 years of experience, if I see this shit - yeah, you can go frick yourself

  35. 2 years ago
    Anonymous

    so that's why yandere dev fired tinyBuild

  36. 2 years ago
    Anonymous

    >Ganker discussing programming

    • 2 years ago
      Anonymous

      better than Ganker

      • 2 years ago
        Anonymous

        Ganker would tell you to rewrite the entire game in Haskell

        • 2 years ago
          Anonymous

          >Haskell
          >Not HolyC

      • 2 years ago
        Anonymous

        No.

  37. 2 years ago
    Anonymous

    Does this homie not know about a little thing called "functions"?

  38. 2 years ago
    Anonymous

    The real secret of programman is that unless you're in research or like developing new shit for Google, nothing you will do is gonna be algorithmically complicated
    In 5 years making B2B software, the most difficult things I've written are boolean statements

    • 2 years ago
      Anonymous

      >In 5 years making B2B software, the most difficult things I've written are boolean statements
      same, but that's because companies hire morons that don't know what a state machine is or how it works nor do they know what dynamic dispatch is or how to design control flow with event buses
      instead they'll add their beloved flags to every entity and spread the query for those flags across 20 lambda functions and then I get to work on a single bug ticket for 3 days with the excuse that "we have built up technical debt so it's difficult to debug" kek

      • 2 years ago
        Anonymous

        I've spent near month removing those moronic flags because the senile frick before me did not try to figure out the event bus.

        • 2 years ago
          Anonymous

          >because the senile frick before me
          jesus, same, is it all the fault of boomers?

          • 2 years ago
            Anonymous

            Depends on the boomer. Though in my case it might be that the project was conceived by contractor morons, which later ended up in my boomer's lap. But he was the sort of boomer to deploy everything by hand into windows server.

  39. 2 years ago
    Anonymous

    I genuinely doubt anyone can come up with something better.

    • 2 years ago
      Anonymous

      I'll be honest with you fren, trying to collapse the boolean logic to the smallest possible number of statements makes it LESS understandable

      • 2 years ago
        Anonymous

        Not really. A lot of those can be grouped, and a lot of them are repeating. See not teacher checks and not ignoring pretty actions checks.

    • 2 years ago
      Anonymous

      Without knowing what the actual content of the if does you obviously can't simplify it.

      • 2 years ago
        Anonymous

        You can by grouping the conditions by their common and conditions.

    • 2 years ago
      Anonymous

      Just put stuff like "Armed && (EquippedWeapon.Suspicious || EquippedWeapon.Bloody)" into a function "isArmedAndSuspicious", same with "Dragging", "Carrying", "Pickpocketing" into "isPerformingSuspiciousAction".

    • 2 years ago
      Anonymous

      Inconsistent bracketing, 0/10

      • 2 years ago
        Anonymous

        sumimasen senpai

    • 2 years ago
      Anonymous

      Make each state an enum, and give each enum a category. Then you can loop over the set of active states and check if any of them fit the criteria in ~4 lines, while also being much more understandable.

      • 2 years ago
        Anonymous

        Eh, considering I have a rageboner against enums, i'd rather have a 64bit flag variable and a dedicated function to assert if particular flag is active, like this.yandere.status & (MEDUSA | ATTACKING | etc) > 0

        • 2 years ago
          Anonymous

          Either way, we’d get out of that tangled jungle right quick.

    • 2 years ago
      Anonymous

      I would remove repeating this.Yandere.Pickpocketing check for starters.

      But your code is even less readable, not to mention 200-characters-long line.

  40. 2 years ago
    Anonymous

    holy shit that's the longest conditional statement i ever see

  41. 2 years ago
    Anonymous

    man this one seething guy really has a hard-on for event handlers

    • 2 years ago
      Anonymous

      t. moron

    • 2 years ago
      Anonymous

      Yeah, because they’re the backbone of real-time, interactive programs. You know, like video games.

    • 2 years ago
      Anonymous

      events are the #1 thing barely anyone does that make the best reactive software systems, so I gotta agree with the autist here

      literally
      >this guy is writing super decoupled software with this one weird trick

      • 2 years ago
        Anonymous

        >get tasked with making a product that literally has events as a business case
        >am not allowed to use service bus in Azure by the business
        I fricking hate my job sometimes.
        >we need to be cloud agnostic
        You need to suck my dick, William.

        • 2 years ago
          Anonymous

          Literally write a driver for your MQ, Black person.

          • 2 years ago
            Anonymous

            We don’t have one, and I sure as shit am not going to be the one responsible for self-hosting one on our shit ass fricking Kubernetes cluster.

            • 2 years ago
              Anonymous

              No, you dumb Black person. You write a driver that you would later change if your MQ changes without changing your kode.

              • 2 years ago
                Anonymous

                Oh, I see. However, we literally are not allowed to use an MQ for this. If I were to suggest using the cloud managed one, I would be told that we need to be cloud agnostic. If I suggested self-hosting one, I’d have to go through the fricking "council," and they literally say that using anything but Java is too difficult. Also our Kubernetes cluster is the most malformed creature I’ve ever seen, an absolute travesty, so I donMt feel comfortable even trying it. Somehow they managed to outright kill the cluster just trying to install Prometheus, so we aren’t allowed to use that either, even in the Java services, despite that being a completely different thing. These people are scared of anything but the 3 tools they self-taught 5 years ago, yet they get the final say. Shit.

              • 2 years ago
                Anonymous

                Same in my experience
                If I didn't dev on the side I'd go insane from all the shit I've seen at work

        • 2 years ago
          Anonymous

          >we need to be cloud agnostic
          this is the biggest fricking meme
          if any of the cloud providers die, it's going to be massive amounts of work to migrate regardless of whether you're cloud agnostic or not
          and setting up an event bus in say AWS is literally 10 minutes of work...

          I've seen shit like this in production where everyone is afraid to reorganize shit.

          and this is the only sensible thing to do
          don't fricking touch it, hope someone else will fix it and hope you get a new project soon

        • 2 years ago
          Anonymous

          write an adaptor

  42. 2 years ago
    Anonymous

    You're all dumb Black folk. Evaluating a boolean statement like this is some shit you would find on a freshman level exam. It's stupid, but the professor still expects you to be able to read it

    • 2 years ago
      Anonymous

      And why do I care about what's acceptable at uni?

  43. 2 years ago
    Anonymous

    These conditions could probably be broken up into methods that aggregate a bunch of them in some kind of sensible way.

    if (this.Yandere.isBusy() || this.Yandere.isFighting())

    etc

  44. 2 years ago
    Anonymous

    isnt this decompiled?

    • 2 years ago
      Anonymous

      No way.

  45. 2 years ago
    Anonymous

    It would be considered a bloated boolean expression, not several lines of code, you dumb Black person.

    • 2 years ago
      Anonymous

      no one uses the phrase "boolean expression".
      lines of code are lines of code.

      • 2 years ago
        Anonymous

        Boolean expression is something your average college freshman should understand

  46. 2 years ago
    Anonymous

    I've seen shit like this in production where everyone is afraid to reorganize shit.

    • 2 years ago
      Anonymous

      No one wants to have the job of potentially rewriting more than that line of code. The rabbit hole goes deep, and no one wants to fricking dive first into that for a good reason.

    • 2 years ago
      Anonymous

      If it's already in production people have every right to be afraid.
      You never know what else might break and lose the company thousands in revenue

  47. 2 years ago
    Anonymous

    If your function takes me more than 15 seconds to understand what's going on, you write shit code. End of story.
    Enjoy having your merge request denied and getting to join all the pajeets in weekly code review meetings.

    • 2 years ago
      Anonymous

      Well this dumb Black person doesn't need to merge request because he's making some shit game that only people on Ganker know about

      • 2 years ago
        Anonymous

        I'm sure he would prefer that instead of becoming a lolcow like he did lmao

  48. 2 years ago
    Anonymous

    Oh god now the "akchually it's 30+ lines" Black person is gonna claim the compiler literally rewrites your code text file

    • 2 years ago
      Anonymous

      There's no winning

  49. 2 years ago
    Anonymous

    Itt: programming students who have never built anything. Its literally fine.
    >muh performance
    That will execute in about a billionth of a second on a modern pc
    >muh readability
    Its perfectly readable
    >muh functions
    No. Your idiot lecturers were wrong. Having pointless functions where all you do is evaluate stuff in order to shorten a conditional is stupid and moronic.
    >muh expandability
    Anybody who has about 3 seconds of programming experience knows how this is executing and can add to it without a problem.
    Its absolutely fine.

    • 2 years ago
      Anonymous

      t. never wrote a line of code in life

      • 2 years ago
        Anonymous

        The projects I've headed collectively have surpassed over a hundred million dollars in revenue.
        Your student autistic bullshit doesn't fly in actual industry.
        >Does it work
        Yes
        >Is it understandable
        Yes
        >Is it maintainable
        Yes
        Then its fine.
        This pointless pre-optimisation to shave a billionth of a second off an app that will be ran on a quad core monster machine instead of actually writing functionality is why you never finish any projects and can't get a proper job.

        • 2 years ago
          Anonymous

          >>Is it understandable
          No
          >>Is it maintainable
          Absolutely fricking not

          • 2 years ago
            Anonymous

            If you cannot understand how that code is executing and make changes to it then you're a brainlet and I'd fire you for not understanding shit you learn on about day 3 of a basic level programming course

          • 2 years ago
            Anonymous

            Highly understandable, for sure, but not maintainable. It's a simple statement. Maintaninility is a pain in the ass because because each new feature of this requires adding to this statement.

        • 2 years ago
          Anonymous

          My software already runs at your workplace, and you're full of shit. The only statement thats true is "it works". It's neither understandable, nor maintainable.

          • 2 years ago
            Anonymous

            >My software runs at your workplace
            >I cant understand an if statement written in almost pseudo code
            X

            • 2 years ago
              Anonymous

              I've went out and rewrite the statement in

              I genuinely doubt anyone can come up with something better.

              to show you how complicated this pile of shit is. There's literally no need to check this many conditions in one go.

        • 2 years ago
          Anonymous

          You're the reason why updating a Win10 is so slow that wiping the drive and reinstalling it would be faster, there's no engineering in software engineering anymore

          • 2 years ago
            Anonymous

            >Muh no engineering any more
            >Its an if statement with conditionals that execute in a billionth of a second
            >No lets not focus on the raytracing algorithm that takes 6 minutes to render, this is the important thing
            As I say, this stupid pre optimisation is why students are shit and don't get anything done.

            • 2 years ago
              Anonymous

              >why are you talking about the code posted in the OP instead of this random other problem in the game that nobody in the thread even knows about
              brain damage

              • 2 years ago
                Anonymous

                Because the point is that its fine.
                Everybody here debating knows exactly what the code is doing
                Everybody knows what is being checked
                This is literally an argument about presentation so has no actual technical merit.
                Its fine.

        • 2 years ago
          Anonymous

          >is it understandable

          yeah if you let other people code, they would be confused

    • 2 years ago
      Anonymous

      low quality bait, here's your (You)

    • 2 years ago
      Anonymous

      >Itt: programming students
      I think you're overestimating.

    • 2 years ago
      Anonymous

      (You)

    • 2 years ago
      Anonymous

      >That will execute in about a billionth of a second on a modern pc
      true
      >everything else you said
      false

    • 2 years ago
      Anonymous

      Epic.

    • 2 years ago
      Anonymous

      that many conditionals even if not that complicated at first glance still hints at the underlying architecture being really bad. There are less readable codebases out there but that does not mean this is anywhere near ok

  50. 2 years ago
    Anonymous

    Also, since there are no function calls in that if statement, we can say with great certainty, that this is only 4 lines of code.

  51. 2 years ago
    Anonymous

    Why do Ganker programmers hate if statements? How else are you supposed to handle these situations?

    • 2 years ago
      Anonymous

      State machines.

    • 2 years ago
      Anonymous

      People in Ganker aren't programmers. Or people.

      • 2 years ago
        Anonymous

        >People in Ganker aren't programmers. Or people.
        Yes, but we certainly larp as them

    • 2 years ago
      Anonymous

      Write better systems so you don't need to rely on 30 line long if statements.

      You see, the code in OPs image is not the problem, it's a symptom of the problem. It indicates that whatever system this code is being used in is horribly written. You cannot just fix this if statement, you need to remake the entire system to fix it.

      There is nothing wrong with using if statements, but I cannot think of any legitimate case where your if statement needs to check something stupid like 30+ conditions all at once.

    • 2 years ago
      Anonymous

      Dynamic dispatch
      State machines
      Events

      It's literally all you need and you'll have almost no control flow statements

  52. 2 years ago
    Anonymous

    Even c is used with object oriented shit. People pretty much make it oop with all kinds of frickery and structs. C++ just makes it easier.

  53. 2 years ago
    Anonymous

    I want to see how badly the performance tanks when this code gets executed.
    Is this check run every frame?

    • 2 years ago
      Anonymous

      gta 5 is faster than yandere dev

  54. 2 years ago
    Anonymous

    i dont code but that looks like a huge mess is it a huge mess?

    • 2 years ago
      Anonymous

      It's memable, but it's really not that bad

  55. 2 years ago
    Anonymous

    >NOOOO YOU CAN'T DO NEEDFUL PROGRAMING LIKE THIS DO NO REDEEM THE CODE
    Only pajeets seethe about this

    • 2 years ago
      Anonymous

      >pajeets care about good code
      lmao
      also whats with the pathological need of an amerimutt to defend israelites?

  56. 2 years ago
    Anonymous

    YUUUUUUUUH MUH C++

  57. 2 years ago
    Anonymous

    Thank god for smartphones. Now zoomers are literally moronic and more computer illiterate than eldery people.

    • 2 years ago
      Anonymous

      What's a computer?

    • 2 years ago
      Anonymous

      This isn't an issue with computers, it's an issue with any piece of technology that becomes normal. Think about cars. Hundreds of millions of people own them, but I highly doubt that even 30% of them know how exactly cars work, or what could be causing that weird noise on startup. Same with computers. When PCs became a thing, you likely needed programming knowledge do get proper any use out of it, some even came with a manual for a programming language. But software has advanced a lot since then, and the experience of using an average PC is almost completely free of any technical knowledge. And when society is full of people who know little to nothing about a piece of widespread technology, and those who do are not guaranteed to have a moral compass, you get scammers.

  58. 2 years ago
    Anonymous

    Just look at the "||" or "or" statements, they are all that matters. It's makes the entire thing really simple.

  59. 2 years ago
    Anonymous

    You can evaluate this thing in your head pretty quickly if you knew the values for the booleans.

  60. 2 years ago
    Anonymous

    Just trying to explain to you how to break this up simply. The "||" makes it really simple to see which statements will trigger this thing.

  61. 2 years ago
    Anonymous

    Sigh.

  62. 2 years ago
    Anonymous

    Ok, Ganker, rewrite the code in OP's pic. Remove all the cruft and show us how elegant your code is.

    • 2 years ago
      Anonymous

      Can't be rewritten simply. It's already as simple as possible. Only way is to completely change the program.

    • 2 years ago
      Anonymous

      I'd need to look at the other 12000+ lines of code to see what could be reused

    • 2 years ago
      Anonymous

      you can't, this is like asking to rewrite a paragraph to improve a shit book
      this is a part of a larger whole and to fix it you need to fix the whole too, because the whole is how you arrived at this shit situation in the first place
      put abortion allegory here

    • 2 years ago
      Anonymous

      Can't really tell without seeing the entire function, but so far it looks like
      >if (ShouldContinue()) { ... }

    • 2 years ago
      Anonymous

      Judging by the debug log ShouldLookForYandereChan

  63. 2 years ago
    Anonymous

    I still dont know what OOP is and any time I ask people give me different answers.
    Frankly, im not even sure its real anymore

    • 2 years ago
      Anonymous

      Object-Oriented Programming

    • 2 years ago
      Anonymous

      It's just a concept of using "objects" in code. Giving things names, data, and functions, all in one container. It lets you program as if you acting on real world objects, and to think of things as real world objects, rather than a bunch of lines of code and functions, that can be hard to understand in big programs.

    • 2 years ago
      Anonymous

      im sure you know instancing in gaming.
      OOP is same idea at lowest level. You define a object and you can generate instances that have all their own states like bosses alive.
      It goes a bit further because there is also inheritance - you can say dungeon 2 is dungeon 1 + changes. Saves a lot of work if you need 20 different dungeons that all need only minimal changes. In other words its a way to copypaste

      • 2 years ago
        Anonymous

        Anyone that pretends like object oriented programming isn't present in gaming is moronic. Even older languages like C basically had to make up object oriented shit on the fly, or having multiple characters and instances just wouldn't work lmao.

        • 2 years ago
          Anonymous

          >Even older languages like C basically had to make up object oriented shit on the fly, or having multiple characters and instances just wouldn't work lmao.
          You could just store some structs in an array (or linked list) no?

          • 2 years ago
            Anonymous

            Yeah, but that's basically it. They were having to create oop concepts out of thin air, and now people are still shitting on oop even though c was reeling for it back then.

    • 2 years ago
      Anonymous

      tldr: is the abstraction of IRL stuff into a group of variables (wich are the represation of trangible atributes), and methods/functions (wich are like "the actions" that the stuff u are modeling can do)

    • 2 years ago
      Anonymous

      nothing has a hard definition in tech, see: functional languages that have mutable state
      modern OOP is the idea of tying data to behaviour, encapsulation, polymorphism and inheritance

  64. 2 years ago
    Anonymous

    The test for understandability is real simple. Imagine you wrote a function that simply encapsulates that whole piece of boolean logic and returns a bool, so you're left with if (func()) {}
    What do you name the function?

    • 2 years ago
      Anonymous

      HasEventOccurred(), basically.

      • 2 years ago
        Anonymous

        Which event?
        You'll probably have about 20 functions with the same name but different implementation. So which event occurred?

    • 2 years ago
      Anonymous

      isThisAnonAhomosexualQuestionMark()

  65. 2 years ago
    Anonymous

    my python program won't turn into an executable properly 🙁

    my project is using google credentials and I always have to manually add the cred file after

    • 2 years ago
      Anonymous

      You can probably do it automatically.

    • 2 years ago
      Anonymous

      >Python.

    • 2 years ago
      Anonymous

      i'm learning Python so i can use the experience to learn how to use C# and make some shitty Cataclysm-esque game

      • 2 years ago
        Anonymous

        C# will be a little different than Python so expect a bit of a hurdle there. Do your best anon.

        • 2 years ago
          Anonymous

          i figure that it will make learning C# easier, i am not that smart and this gives me a little bit of extra help.
          and it will look good on a resume.

          • 2 years ago
            Anonymous

            Python does make a lot of things easier but it should be a good foundation to go towards C#. Just keep in mind that C# is strongly typed whereas Python is loosely typed.

            • 2 years ago
              Anonymous

              but anon, Python is a strongly typed and dynamically typed language too.

              • 2 years ago
                Anonymous

                I feel like C# is something where you'll want to be aware of that more (You can just use var but that's no good). Python handles a lot of stuff for you which is nice.

              • 2 years ago
                Anonymous

                ahhhh i understand you now!
                thanks for the words of encouragement!

  66. 2 years ago
    Anonymous

    I've been getting good at shenzen i/o and started optimising. What language do I funnel this autism into?

    • 2 years ago
      Anonymous

      Is it assembly? It isnt much used but its a respectable skill if you really want to go low level. Might wanna check out C or C++ tutorials.

  67. 2 years ago
    Anonymous

    Writing tests for that would be a major pain

  68. 2 years ago
    Anonymous

    Some dedicated codegay should do like a 10 hour video going through every single line of YanDev's code and talking about how to fix it

  69. 2 years ago
    Anonymous

    Rewrite OP pic in the most sufficient way possible. Or your mother will die in her sleep tonight.

  70. 2 years ago
    Anonymous

    Reminder that Dragons Dogma II will release before Yandere Sim

  71. 2 years ago
    Anonymous

    I-is that a bunch of if statements?
    AAAAAAAAAAH I'M GOING INSANEEEEEEEEEEE, DIJKSTRA SAVE MEEEEEE

  72. 2 years ago
    Anonymous

    at this point I think this thread gets reposted just to make fun of how moronic Ganker is
    never stops being funny

  73. 2 years ago
    Anonymous

    I didn't even take him 3 lines for everything to go wrong...

  74. 2 years ago
    Anonymous

    >functions that return booleans should always start with "is"

    • 2 years ago
      Anonymous

      it is what it is

    • 2 years ago
      Anonymous

      The only reason not to do that would be because you noticed the pattern and want to break it for the sake of breaking it. In other words: being a contrarian moron.

  75. 2 years ago
    Anonymous

    I have such a love-hate relationship with visual studio code.
    As for the code itself, that many conditions are usually a sign of bad architecture.
    The code could probably be structured in such a way that there is no need to have so many conditions on a single if.
    The real problem with code like that isn't even performance necessarily, it's maintaining and adding to that.
    Frick, to the maintenance point, there are even repeated conditions for no reason.

    • 2 years ago
      Anonymous

      >visual studio code
      I think it's just Visual Studio, not VS Code

  76. 2 years ago
    Anonymous

    At least do a switch dude or something.
    If a function is more than 5 lines, most probably you can divide it.

    • 2 years ago
      Anonymous

      >If a function is more than 5 lines, most probably you can divide it.
      >Splitting a 6 line function cause you "supposed to"

    • 2 years ago
      Anonymous

      >If a function is more than 5 lines, most probably you can divide it.
      homie what???? post your github

  77. 2 years ago
    Anonymous

    not that it's their job to but most ppl on this board would be just as terrible

    • 2 years ago
      Anonymous

      No, I understand how to use event handlers, how to properly group attributes and functions and how to comment my code.

    • 2 years ago
      Anonymous

      I'd probably make a game this poorly coded while learning to code. I certainly wouldn't charge anybody money for that kind of an effort though, I'd feel like a thief.

      • 2 years ago
        Anonymous

        >I'd feel like a thief.
        If people will want to pay you for your trash, why stop them?

        • 2 years ago
          Anonymous

          I have integrity.

  78. 2 years ago
    Anonymous

    if you are checking shit every goddamn frame you are doing it wrong

    just use events and callbacks. an event is simply "when x condition happens do y". much better than "every frame check if y is possible, then do y if so"

  79. 2 years ago
    Anonymous

    This is a fricked up If check, but the worst thing about Yanderedev is that he would put something like this on a common Update.
    It could kind of work ok if you put something like that to check eventually and on an specific contidion, but he will just add it on an infinite loop fricking up performance.

  80. 2 years ago
    Anonymous

    This made me think of this quote a senior told me when I was just starting out.

Your email address will not be published. Required fields are marked *