UE4 With Casey -Repeating Code (Bad Habit!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2019
  • Today I show why we shouldn't copy paste our code.

ความคิดเห็น • 5

  • @reeanimationgaming1034
    @reeanimationgaming1034 3 ปีที่แล้ว

    First of all, just found your channel not long ago, and is now going through all your videos I have put in the Watch Later :-) Thank you for making great videos, It's VERY useful!
    The thing with THIS video is this. I started on my game (The Adventures of Gorm) about 4 years ago, knowing absolutely ZERO about programming. I started by just following tutorials blindly while having NO clue what I was doing, some of these tutorials also made functions, but I didn't understand them. It's only within this last year or so, that I have been able to create something without following a tutorial, so I'm getting a lot better, but very slowly.
    The thing is, when you start out and not really understanding what's going on, I think the best way IS to just have you blueprint code as one long string, cause then it's very easy to see what's going on, and you are not getting confused by having code referenced in events and functions... Often when I got back to the code from those early tutorials, I could not figure out what was going on because of functions and so on.
    Point is, doing this wrong in the beginning is perfectly fine, it really does help you understand better what's going on, as everything is layed out in a line right in front of you.. And when you get better and begin to understand how things work, the need for functions will pop up automatically.
    It is first here within the last 2-3 months of my 4 year sprint, that I have started getting into functions and Events, out of need. I WAS simply copy pasting too much, so now I'm in the long boring process of converting all these copy paste codes into functions and events.. Which is a very important learning process, and I already know now, that everything I do from this point and forward, is making as much as possible into events and functions. But I started using events before functions, as they are a little more simple to understand and work with, as they only have inputs and can use delays.
    Sorry for the wall of text, I have tried spacing it out :-) But my point it, that I would still suggest not using events and functions when you are a beginner, the need for them will come naturally when you get better, and to begin with, they can really make things harder to learn and understand, it's another level you don't need when you start out.
    Oh, there's also things like. I see you are using select and for loop.. Well, I have never used for loop for anything, as I don't understand what it does, and the same goes for Select, and there's even more smart nodes out there, that I don't know anything about or even that they exist. So yes, there are many smart ways of working, but if you don't know they exists, then you can't really use them, right :-)
    Anyways, this is NOT a critique on your video, as I actually think this video is great, and I agree with everything being said :-)

  • @aryantzh2028
    @aryantzh2028 5 หลายเดือนก่อน +1

    Jan 16, 2019: Repeating Code = Bad Habbit
    Oct 8, 2019: Why We Reuse Code

  • @unknownprakrit2682
    @unknownprakrit2682 4 ปีที่แล้ว

    I did this and I am not proud I had to add so many more bool check later that I dropped the project beacuse of. The complexity

  • @chrisbushell3714
    @chrisbushell3714 5 ปีที่แล้ว

    Building System part 2? Lol

  • @azerr7129
    @azerr7129 5 ปีที่แล้ว +1

    PLEASE CAN YOU MAKE A TUTORIAL TO HOW MAKING MOBILE THOUCH BUTTONS TO CONTROL THE PLAYER LIKE RUNNING / CAMERA / AIMING AND SHOUTING PLEASE I NEED IT SO MUCH BECAUSE I MAKE AN HORROR GAME FOR ANDROID AND I DON'T KNOW HOW TO MAKE MOBILE THOUCH BUTTONS LIKE PUBG BY THE WAY MY PC HAVE INTEL HD 4000 / I3 /4GB RAM/ THIS GOOD FOR DEVELOPEMENT