I HAD to fix this immediately // Code Review

Sdílet
Vložit
  • čas přidán 11. 01. 2024
  • To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/TheCherno. The first 200 of you will get 20% off Brilliant’s annual premium subscription!
    Patreon ► / thecherno
    Instagram ► / thecherno
    Twitter ► / thecherno
    Discord ► / discord
    Hazel ► hazelengine.com
    🕹️ Play a game we made in Hazel for FREE ► studiocherno.itch.io/dichotomy
    🌏 Need web hosting? ► hostinger.com/cherno
    Code ► github.com/Eduard0110/Path-tr...
    💰 Links to stuff I use:
    ⌨ Keyboard ► geni.us/T2J7
    🐭 Mouse ► geni.us/BuY7
    💻 Monitors ► geni.us/wZFSwSK
    This video is sponsored by Brilliant.

Komentáře • 86

  • @TheCherno
    @TheCherno  Před 5 měsíci +16

    Thanks for watching! What did you think of me fixing stuff during code reviews?
    Also don’t forget you can try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/TheCherno. The first 200 of you will get 20% off Brilliant’s annual premium subscription!

    • @user-uw3mg9hn8z
      @user-uw3mg9hn8z Před 5 měsíci

      Ctrl+T opens VS "Code Search" window, there you can search over files or types using same fuzzy patterns as in VS Assist. Decent replacement for majority of use cases.

    • @nerdastics3987
      @nerdastics3987 Před 5 měsíci

      c++ is such a complex and incredible language that even people who've been doing it for 25+ years are still learning more every day (i have a friend like that). It's beautiful

    • @toolazytobeoriginal4587
      @toolazytobeoriginal4587 Před 5 měsíci +1

      I enjoyed this video. Very helpful. Btw can you add this to the code review playlist?

    • @sumikomei
      @sumikomei Před 4 měsíci

      I really liked seeing you fixing stuff that you felt necessary or important, there's quite a lot of insight to be had from that I feel.

    • @blakasmurf
      @blakasmurf Před 4 měsíci

      KER-ZUH

  • @denizberkinmis
    @denizberkinmis Před 5 měsíci +60

    I HAD to see this immediately! // Watching Code Review.

  • @jell0goeswiggle
    @jell0goeswiggle Před 5 měsíci +118

    Cherno: "You have to be patient and read the comments. You'll definitely learn something."
    Also Cherno: Completely missing the comments explaining the hover any window argument, followed by minutes of trial and error.

    • @TheCherno
      @TheCherno  Před 5 měsíci +46

      Was waiting for someone to notice! 😅

    • @itzdabbzz
      @itzdabbzz Před 5 měsíci +3

      @@TheCherno It truly happens to the best of us... We just get so side-tracked.

    • @user-nc6jh6vd9w
      @user-nc6jh6vd9w Před 4 měsíci

      @@TheCherno Good afternoon, I am a beginner programmer and didn’t know where to write questions.
      1) Please tell me, in order to get the source code of Hazel Engine and get the source code of the latest version of Hazel Engine, do I need to buy a Supporter III subscription for $10?
      2) In which Hazel Engine programming languages ​​can you program and create games?
      3) Does the engine have a drawing like in Unreal Engine?
      4) Is it possible to transfer a model from blender to Hazel Engine?

    • @TheCherno
      @TheCherno  Před 4 měsíci

      @@user-nc6jh6vd9w
      1) Yes
      2) C# to make games usually, though you can also use C++. Engine is written in C++
      3) What do you mean by "have a drawing"? It's got a UI and an editor similar to Unreal Engine if that's what you mean
      4) Yes

    • @gaagey
      @gaagey Před 4 měsíci

      Just 5 hours of debugging may save you 5 minutes of reading documentation.

  • @gabrielwhite9881
    @gabrielwhite9881 Před 4 měsíci +5

    its really nice to see u improving code, because it helps a lot to see the actual code about what u explain, what could be improved. :)

  • @bluesillybeard
    @bluesillybeard Před 4 měsíci +6

    Cherno: writes code to release the mouse, when the literal next line of code does exactly that when pressing E

    • @blakasmurf
      @blakasmurf Před 4 měsíci

      He had his KER-ZUH in the wrong place! 😉

  • @beefy___
    @beefy___ Před 4 měsíci +3

    24:15 Windows has that builtin. The keybind is WINKEY + V

  • @dct4890
    @dct4890 Před 5 měsíci +3

    Great job. Learned a lot about perspective as well as code. Thanks for jump starting my brain from holiday food coma back to project immersion.

  • @simonluner8093
    @simonluner8093 Před 5 měsíci +9

    Ctrl + Shift + V for clipboard history is MVP advise

    • @fuj1n
      @fuj1n Před 4 měsíci +2

      If you use a modern version of Windows (10 or 11), there's also the OS-wide Windows + V, it has to be enabled, but if you press it whilst it is disabled, it'll prompt you to enable it.

    • @kevinscales
      @kevinscales Před 16 dny

      @@fuj1n There are some things I would rather windows forgets I copied...

    • @fuj1n
      @fuj1n Před 16 dny

      @@kevinscales Lucky you, there's a clear button

  • @resongeo2743
    @resongeo2743 Před 5 měsíci +3

    Great video! And the engine programming series sounds great!

  • @arnedebeer
    @arnedebeer Před 5 měsíci +2

    Happy new year as well! Nice review. How's it going with the ray tracing series that you were making? 🙈

  • @SwedishviKingohnoes
    @SwedishviKingohnoes Před 4 měsíci +1

    Actually did like this format! It shows how you think about UX and how you learn about a codebase/library.

  • @Eduard_0110
    @Eduard_0110 Před 4 měsíci +3

    If you press E then you can lock the camera movement, press E again and you will unlock the camera movement

  • @miladhakimi3495
    @miladhakimi3495 Před 4 měsíci

    Great video Cherno. Thanks!

  • @px2059
    @px2059 Před 4 měsíci +1

    With Jetbrain products you can put breakpoints on different statements on the same line which is very useful in lambdas.
    I don't know why VS doesn't have it yet.

  • @mobslicer1529
    @mobslicer1529 Před 5 měsíci

    happy new year

  • @Beatsbasteln
    @Beatsbasteln Před 4 měsíci

    your skills at navigating someone else's code base are admiring

  • @HaydenLikeHey
    @HaydenLikeHey Před 4 měsíci +2

    Much prefer the videos with code editing portion, personally

  • @madeso
    @madeso Před 3 měsíci

    I'm pretty sure you can place a breakpoint on the break by placing your cursor there and hitting f9/"add breakpoint"

  • @ilmanti
    @ilmanti Před 5 měsíci +2

    ctrl+shift+v is going to change my life. thank you.

  • @velho6298
    @velho6298 Před 4 měsíci

    I suppose you don't have to necessarily copy the field of the structure because you have the option to list all references in Visual Studio.

  • @scottwalker4619
    @scottwalker4619 Před 5 měsíci +4

    Every Jetbrains IDE has the Visual Assist feature. As a C# developer, I could never go back to Visual Studio after using Rider 🙂

    • @gardian06_85
      @gardian06_85 Před 5 měsíci

      at some point the IDE is a crutch from knowing the code base, or how things function. Rider also has code generation included, sure it can speed things up, but can quickly hide the "why?"
      with all the functionality VS has added either from Rider/Visual Assist it just becomes paying an additional $100+ (technically an addition $50 at VS pro/enterprise) monthly sub for a auto fill copilot which also does some really stupid stuff at times that requires real knowledge to know when it is doing stupid stuff.

    • @fuj1n
      @fuj1n Před 4 měsíci

      @@gardian06_85 You can just not use that feature, I know I don't
      JetBrains products provide a streamlined, unified interface for each of the languages they support. You learn the IDE once and you can bounce around all of the supported languages. I've also found it much more performant than VS. They separate their IDEs for each language/problem domain, so you are not bogged down by the extra stuff if you only care about C++ or C# for example.

    • @scottwalker4619
      @scottwalker4619 Před 4 měsíci

      @@gardian06_85
      I disagree with it becoming a crutch on knowing the code base as well. Learning a code base takes time and being able to navigate around it effortlessly surely only helps that learning process?
      The rider pricing is only around 15 a month btw so I don’t know where you’re getting “100+” from (apologies if I misread that).
      The AI side is obviously a completely different discussion but I’ve found it has sped up my workflow. It’s still down to the developer to see if it’s done something stupid and test whatever it’s written.

    • @px2059
      @px2059 Před 4 měsíci

      ​@@gardian06_85 you are just wrong. Rider/Resharper and copilot are not comparable. The fact that you mention them in the same sentence shows you have no idea what you're talking about.

    • @gardian06_85
      @gardian06_85 Před 4 měsíci +1

      @@scottwalker4619 alright I give you the pricing for professional (when researching the pricing for personal use Jetbrain defaults to yearly, and Microsoft only 'shows' monthly), but then Jetbrain products only have a "free" price for education, so Visual Studio does have an option for nearly the entire product until you/your company actually needs it with the "Community"; which is effectively used as release candidates of the Pro-version.
      I call Rider a crutch as one of the only selling points it really has is the built-in co-pilot as everything else boils down to "loading times", "intellisense sometimes not knowing things", (these can be adjusted through patches/updates) and "navigation experience" (which is subjective and can be learned much like a persons first IDE experience would need to be learned)
      I have the most experience with JetBrain products on the C++ side (where they have 4 technically 5 products for C++ similar to how they have 3 different products targeting C# where the biggest differences are see above) and the number of times I have still had to go in and manually add an `#include` when that is one of the main selling points to auto add includes (these are `#include` meaning they are already in the Solution parser so it should be understood by their built-in co-pilot) and this is one of the only real selling points of their products, so as an independent that does not meat the yearly pricing threshold for VS Pro why even spend $15/month for something that doesn't even do the biggest selling point without babysitting.
      I focus on the co-pilot because it is the only real selling point of the products. These tools can help people that already know a lot about the code-base and the dependencies work faster, but to newer developers it is a crutch where "the system will just do it for me" and when it doesn't then that user has to figure out why it doesn't work because it was just supposed to be 'magically there'. these type tools are tricky because they are always talked about as "they will help everyone with the boiler-plate stuff of the stuff that doesn't really matter" when if the user gets accustomed to using the tool and having it do the things for them; they might be blind-sided when say during a physical stand-up they are called to a white-board, or during a code-interview they are asked to use a simple web-IDE that doesn't have some co-pilot and they expect you not necessarily to solve the problem but to work through it (when some of the co-pilots you start writing `class map {` and it will just suggest 50+ lines to accept, comments optional)

  • @unkgames-abdullahali4048
    @unkgames-abdullahali4048 Před 5 měsíci +2

    If he wants to expand this engine to multiplatform engine he should make a building system that includes all APIs then simply switch between them for each platform

  • @enriquebenedicto9429
    @enriquebenedicto9429 Před 4 měsíci

    I'm puzzled by a completely off-topic piece of code seen a few times in the video. It's about the "not equal" sign. Usually, in C++, they're written as "!=". However, I've noticed them being written as "=" with a bar across. How is that possible?? I wouldn't think the compiler would process that special character as being the same as "!=". Very puzzled by that.

  • @tmvkrpxl0135
    @tmvkrpxl0135 Před 5 měsíci

    Funny thing is mouse problem you mention at the beginning is the exact problem Minecraft has, it pauses the game to mitigate that but that often fails in debug mode

    • @Kaleidio
      @Kaleidio Před 4 měsíci

      this bug was patched ages ago in Java Edition.

    • @tmvkrpxl0135
      @tmvkrpxl0135 Před 4 měsíci

      @@Kaleidio It happened to me on 1.20.4 while developing mod. Break point in debug mode mess up their logic.

  • @whtvr1520
    @whtvr1520 Před 4 měsíci

    was cool

  • @DeepiMeows
    @DeepiMeows Před 4 měsíci +1

    I asked Chat GPT to give me a link to youtube tutorial that will teach me coding you poped up

  • @user-fg2qw3mc8y
    @user-fg2qw3mc8y Před 4 měsíci

    Is there a precompiled version of the engine that we can use ?

  • @furyzenblade3558
    @furyzenblade3558 Před 5 měsíci

    2:45 Which video is he referring to? I cant see it

  • @magnuswootton6181
    @magnuswootton6181 Před 4 měsíci

    theres how to do a path tracer, only runs on top level gpu. next well show shadow correction. (runs on xt!!!) hehe

  • @kotofyt
    @kotofyt Před 5 měsíci

    Watching this while waiting for goblins game jam

  • @ZephyrCheez
    @ZephyrCheez Před 4 měsíci

    Hey, what is your opinion on Rust in the future of game development?

  • @dj10schannel
    @dj10schannel Před 5 měsíci

    Lol chirno teaching main lesson everyone need to know "learn to read"

  • @hachimibouizegarene9544
    @hachimibouizegarene9544 Před 4 měsíci

    big boss

  • @Stroopwafe1
    @Stroopwafe1 Před 5 měsíci +4

    Cherno: "You have to be patient and read the comments. You'll definitely learn something."
    Also Cherno: Not reading the readme or the comments explaining the keybindings for disabling camera movement.
    I'm sorry but every time you mentioned something about it, it was just very frustrating

  • @smokinglife8980
    @smokinglife8980 Před 5 měsíci +5

    imguiio has a wantstocapture method

  • @Astralklinge
    @Astralklinge Před 5 měsíci +2

    im just learning c++ do you think its worth it?

  • @Spongman
    @Spongman Před 4 měsíci

    chatgpt "how to capture the mouse in opengl"

  • @Godot-Game-Dev
    @Godot-Game-Dev Před 5 měsíci

    no way I watched this 7 min after it was published XD

  • @sexy_koala_juice
    @sexy_koala_juice Před 5 měsíci +1

    First

  • @zoakz8347
    @zoakz8347 Před 5 měsíci

    its 3am....

  • @gsestream
    @gsestream Před 5 měsíci

    well use a mouse trap as usual >.> hmm no in productivity editors no capture, never. rtfm hurts my head. if you are making an editor for a game engine learn not to capture the mouse never. mouse drag while clicked is the simplest for productivity applications gui. chill you dont have to know your own code even. relax. ownership is hard burden work.

    • @gsestream
      @gsestream Před 4 měsíci

      I hate build systems! every one of them, especially gradle and its compatibility matrices. well if the build system is what prevents code from compiling, the enemy is clear.

  • @MrTehkaiser
    @MrTehkaiser Před 4 měsíci

    Chero is a true master baiter.