Code Guild
Code Guild
  • Видео 5
  • Просмотров 26 631
ZIG | Ep3.2 | Compile Time and Overflow
Welcome to the second part of episode three in our Zig programming language course! In this video, we dive deeper into data types in Zig, exploring how integers (signed and unsigned) are stored and managed in RAM. We also introduce compile-time (comptime) integers and examine the advantages of compile-time optimization for performance. You'll learn about handling data overflow, using Zig’s IntelliSense for smarter coding, and creating custom data types by controlling bit size. Through hands-on coding examples, we illustrate how to avoid common pitfalls like overflow, how memory allocation works, and tips for efficient programming.
✨ Don’t forget to subscribe to the channel and turn on noti...
Просмотров: 2 692

Видео

ZIG | Ep3.1 | Exploring Data Types and RAM
Просмотров 3,7 тыс.2 месяца назад
Welcome to the third episode of our Zig programming series! In this video, we will explore data types and their relationship with RAM. We'll start by understanding the different data types and how they are stored in memory. You will learn how to use variables and handle various types of data in your Zig programs. We'll also discuss how to measure the size of variables and explain how RAM functi...
ZIG | Ep2 | Empty Program
Просмотров 3,5 тыс.3 месяца назад
Welcome to the second lesson of our Zig programming language course! In this lesson, we will cover the Life Cycle of the progam concept and answer some questions about the main function, public keyword, start file, root file and more ! Support Me :) : - paypal [ www.paypal.me/MaysaraElshewehy ] - ko-fi [ ko-fi.com/codeguild ] Social Media : - Discord (discord.gg/pZpNmnJWBm) - Facebook (facebook...
ZIG | Ep1 | Introduction
Просмотров 16 тыс.5 месяцев назад
Welcome to the first lesson of our Zig programming language course! In this lesson, we will cover the basics of Zig, including its history, reasons for its development, and a comparison with other programming languages like C and Rust. We’ll also set up our development environment and write our first "Hello World" program in Zig. Support Me :) : - paypal [ www.paypal.me/MaysaraElshewehy ] - ko-...

Комментарии

  • @SkyaTura
    @SkyaTura День назад

    I've been programming since I was 9yo, for 20 years now, and this is, by far, the most educational introduction to a programming language I've ever seen...

  • @mahmoud-abdelraouf
    @mahmoud-abdelraouf День назад

    Please don't stop 🙏

  • @CyperN077
    @CyperN077 2 дня назад

    Great video. I especially like the fact that the videos is viewable with my old eyes.

  • @MrPlaybook
    @MrPlaybook 3 дня назад

    Adamsın

  • @EightSixx
    @EightSixx 3 дня назад

    need more!!!

  • @Zero_Override1
    @Zero_Override1 4 дня назад

    Came for Zig, stayed for the refresher on the details of how machines work. Great stuff!

  • @ljtegmark
    @ljtegmark 6 дней назад

    Awesome

  • @krishgokul9914
    @krishgokul9914 7 дней назад

    Great video for an introductory session of a programming language. But I have a doubt, In 15:09 you mentioned about run time errors but the examples given seems to be compilation errors as the compiler itself will finds it and report it. I believe a run time error is one which happens when doing zig run like overflow error. I am little bit confused on this. Anyone help me with it please.

  • @senthilramalingam9500
    @senthilramalingam9500 7 дней назад

    What happen? Waiting for the entire series...

  • @shashankpandey570
    @shashankpandey570 8 дней назад

    bro im waiting for ep4

  • @DaminGamerMC
    @DaminGamerMC 12 дней назад

    Good Tutorial but is this made with AI voice?

  • @solomonogu1393
    @solomonogu1393 14 дней назад

    As senior that has struggled to learn zig over and over again, this is the best zig course i have every seen, i dont usually do this, but seeing the negative comments i said i must put one positive comment here so you could stay motivated and keep pushing this. Good work. Keep it up and keep explaining every single thing🎉

  • @Matsa59
    @Matsa59 18 дней назад

    could we stop like 20 sec and just appreciate the quality of those videos? awesome job

  • @frenchmarty7446
    @frenchmarty7446 19 дней назад

    I appreciate the effort that goes into these videos but the animations and sound effects are way over done.

  • @voltflake
    @voltflake 21 день назад

    that's a nice, shallow, introduction video for someone who's new to programming and decided to start with zig

  • @gearboxworks
    @gearboxworks 22 дня назад

    The value 1 is not a constant, it is a literal. Pedantic yes, but naming two different things the same name might cause confusion for learners.

    • @gearboxworks
      @gearboxworks 22 дня назад

      Also - since you seem to be open to constructive criticism - I'll give you the advice that the co-author of Elements of Style E.B. White's father told him when the co-author showed his father a term paper he wrote. First he said "This is good. Now cut (the number of words) in half." After E.B White did his father then said "This is much better. Now cut in half again." Your video would be *much* better if your script used about 1/4th as many words. Which words? You decide, but having to cut 3 of every 4 words will force you to decide which words are really necessary, and which are just unnecessary fluff. #jmtcw

  • @Takatou__Yogiri
    @Takatou__Yogiri 23 дня назад

    Zig is safe. But compared to rust zig is less safe. You shoud have mentioned that.

  • @UlaanBaatuur
    @UlaanBaatuur 24 дня назад

    a really nice intro video!

  • @susdud
    @susdud 25 дней назад

    This is a much needed tutorial series. Thanks a lot. Hope you complete the series for zig.

  • @anonymous-q2b5s
    @anonymous-q2b5s 27 дней назад

    Wait a second. I think this channel is emtirely AI generated and led. The video, the animations, the script, the voice, the comments. Everything screams AI to me. Maybe I'm tripping.

  • @VincePomagalski
    @VincePomagalski 28 дней назад

    Totally excellent introductory tutorial on getting started with the Zig programming language. The visuals and narration are so clear and well paced (captivating). They quickly take a novice to the point of making a confident start with Zig and the Visual Studio Code IDE. Looks like I'm not the only one amazed by this education master class. Well done Code Guild !

  • @alvarosilva7235
    @alvarosilva7235 28 дней назад

    This content is great!!

  • @lamspiteful2689
    @lamspiteful2689 Месяц назад

    the best learning tutorial not only for zig but for programming in general!

  • @stupidburp
    @stupidburp Месяц назад

    Overuse of the spin effect. Is the goal to educate or to make people sick? 🤢

  • @wolfgangsanyer3544
    @wolfgangsanyer3544 Месяц назад

    nice job on these videos so far. It may be helpful to mention (in a follow up video I suppose) that custom bit width integers are likely most useful when trying to carefully control the shape of a struct or something. I think if you just arbitrarily create a 7-bit int it will likely still get rounded or aligned to 8-bits, which would be wasteful

  • @ffred80
    @ffred80 Месяц назад

    Best intro lesson for a language

  • @ostadomid3355
    @ostadomid3355 Месяц назад

    This course is amazing. Hope new episodes be sooner available.

  • @gorilla-san
    @gorilla-san Месяц назад

    So I watched this course, then I tried to find another since this one is still not finished. There's no second best. You guys set a new standard for teaching. I even checked out paid courses. I've been spoiled, I don't want to watch a course anymore that's not of this quality 😮

  • @christerpherhunter930
    @christerpherhunter930 Месяц назад

    You are so an AI

  • @christerpherhunter930
    @christerpherhunter930 Месяц назад

    Just finished the video. You're still an AI.

  • @christerpherhunter930
    @christerpherhunter930 Месяц назад

    I think you're an AI and I don't care. Thank you AI.

  • @OneTrueBIue
    @OneTrueBIue Месяц назад

    i have never seen such a good tutorial series on yt

  • @hamedkmg42
    @hamedkmg42 Месяц назад

    Dear @code-guild We really thank you for this masterpiece, Video of ZIG lang. I love ZIG and I want to learn more, please continue doing those ZIG videos. in Future Videos can you do streams developing Games or applications using ZIG? Thanks

  • @adamweyrah8363
    @adamweyrah8363 Месяц назад

    Is there a way, we as a community can help you with these videos? It can't be easy doing all this o your own. I appreciate that you're sharing the knowledge for free. Education should be open to all.

  • @adamweyrah8363
    @adamweyrah8363 Месяц назад

    I'm blown away by how good this video is. I'm not dumb but I like things explained to me in simple terms and to be taught in a way where knowledge is slowly built up. I really wish I had someone to teach to me to program in this concept. Any advice on what it would take for me to build a simple 2D game engine? Assuming, I have 0 prior programming knowledge and I want to start by learning Zig.

  • @naveenkanuri9
    @naveenkanuri9 Месяц назад

    Thanks for the amazing content! Keep the videos coming. Subscribed!

  • @jazzyBit
    @jazzyBit Месяц назад

    thank u very much 🙏

  • @Gigasharik5
    @Gigasharik5 Месяц назад

    Damn, people want zig to become a popular language so badly that they even create computer science channels for beginners so that they end up staying on zig. And I'm absolutely happy about that, I'm rooting for you!

  • @Theo-xu3ir
    @Theo-xu3ir Месяц назад

    Hey I'm just learning zig, love the videos! Commenting for the algorithn!

  • @BeastGamesRW
    @BeastGamesRW Месяц назад

    This was the great entry point of a beginner to Zig programming languge. Well explained, great examples, hope on the last of the Lesson there are a great project also. This was great, man!

  • @SamuelTravnicek
    @SamuelTravnicek 2 месяца назад

    There is a mistake at 10:50, the range is split in two 7-bit values, not 4-bit values.

    • @Code-Guild
      @Code-Guild 2 месяца назад

      Thank you for pointing out the mistake at 10:14. You are absolutely correct! The error occurred because I didn't catch this detail during editing, possibly due to the pressure of completing the content in time. I really appreciate your keen attention to detail and thank you for bringing it to my attention. I'll make sure to be more careful in the future to avoid similar mistakes. Thanks again for your support and for helping to improve the quality of the content!

  • @ramos_4892
    @ramos_4892 2 месяца назад

    9:50, *8 Bits can represent 256 values, 0 to 255 for unsigned representation. I think you confused the amount of values with the upper bound. These videos are great btw, I was looking for Zig tutorials, this is something completely different from what I was expecting, but I appreciate the little Zig insights here and there. Edit: Just realized you said the right value, it's only the video that's wrong

    • @Code-Guild
      @Code-Guild 2 месяца назад

      Thank you for your comment and for pointing out the mistake at 9:50. You’re absolutely right! I truly appreciate your understanding and the fact that you noticed the error in the video, even after realizing I mentioned the correct value elsewhere. I’m glad you’re enjoying the content and the Zig insights! Your feedback is invaluable, and I'll make sure to be more precise in future videos. Thank you for your continued support and for helping to improve the quality of the tutorials!

  • @alexandraschuhmann9980
    @alexandraschuhmann9980 2 месяца назад

    Thanks...

  • @alexandraschuhmann9980
    @alexandraschuhmann9980 2 месяца назад

    Great, really thank you, please continue...

    • @Code-Guild
      @Code-Guild 2 месяца назад

      Thank you, I will

  • @alexandraschuhmann9980
    @alexandraschuhmann9980 2 месяца назад

    Great work, thank you...

  • @yoskokleng3658
    @yoskokleng3658 2 месяца назад

    is it best than rust?

  • @Lidarix
    @Lidarix 2 месяца назад

    Clearly the best programming course video I have ever seen. The video editing is perfect (insane) and the course itself is really great! If you go to the end for a full Zig course, you will be my new hero :D

  • @jasdfpasdfakdsjhfa
    @jasdfpasdfakdsjhfa 2 месяца назад

    The arrow that flew in from the left at 0:14 looks like a cock by the way

  • @koss04
    @koss04 2 месяца назад

    Great stuff! I just started learning C a few months ago, but Zig looks really interesting. Think I'll stick to C for now, but I'm still watching these since its so similar and I'll eventually check zig out. Maybe Odin too, lol.

  • @ninoarieldiocampo3939
    @ninoarieldiocampo3939 2 месяца назад

    Sir. Can you explain it to a dumbass like me. Why use u8-u64 when it come to strings when but i8 and u8 is integer? why i8-i64 doesnt work on storing string?