Paid Zig Stream

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • References:
    Website: ziglang.org/
    Example of SDL2 application: github.com/and...
    Source Code: github.com/tso...
    my dotfiles: github.com/rex...

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

  • @batlin
    @batlin 2 ปีที่แล้ว +196

    I was lucky to work with one or two people like Tsoding in the past who learned super quick by just jumping in and trying stuff. That's what I used to do as a kid when I learned Basic and assembly on 8 and 16 bit computers, but somehow lost my way after going to college and becoming a professional dev. Watching people learn like this is helping me to recover that healthy and practical mindset.

    • @homelessrobot
      @homelessrobot ปีที่แล้ว +11

      yeah i think the tendency is for it to get HARDER for us to see simple direct solutions the more time we spend looking at and reasoning about the 'professional' (pathologically indirect) versions. Abstractions in your head, preventing you from accessing less abstract pictures of the system at hand.

    • @batlin
      @batlin ปีที่แล้ว +9

      @@homelessrobot exactly! It doesn't help that a lot of people we meet on the job tend to obsessively add extra layers of abstraction and indirection, to the point where it can be hard to get promoted if you don't go along with it. I left my last job because I was tired of simple PRs taking weeks to get merged because one or two "architecture astronauts" would keep asking for more interfaces and factories etc.

  • @mjkpolo7313
    @mjkpolo7313 ปีที่แล้ว +33

    seeing you struggling with something and having the same learning method as me makes me feel like I'm not insane thank you!

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

      maybe you both are just the same kind of insane?

  • @ISKLEMMI
    @ISKLEMMI 2 ปีที่แล้ว +18

    I really appreciate the way you approach things. It's especially helpful when you show yourself figuring things out live on stream, because I feel it gives us a more thorough understanding of the tools you try out and the problems you aim to solve. Thank you!
    Edit: I like that Zig lets you include a C file effortlessly without polluting the global namespace. Very cool

  • @TheLopsidedobject
    @TheLopsidedobject 2 ปีที่แล้ว +115

    did not expect this shit to happen

  • @jordanmcconnon6214
    @jordanmcconnon6214 2 ปีที่แล้ว +20

    Haven't watched in months, coming back it seems you're much more comfortable on stream and have generally become more entertaining. Keep up the good work!
    subbing.

  • @fart_m0nster_420
    @fart_m0nster_420 2 ปีที่แล้ว +188

    I love your way of learning. I sometimes get stuck in documentation for days without writing anything and your style of coding really motivates me.

    • @stevenspring9889
      @stevenspring9889 2 ปีที่แล้ว +15

      Same, being a system administrator python and bash scripting have become a thing I used once a month then once a week and now daily, I'm not a programmer but I get caught in docs for hours I need to be more like tscoding... Just go for it haha

    • @tralphstreet
      @tralphstreet 2 ปีที่แล้ว +9

      Write as you read! Try to do something, when you get stuck, read documentation, fix it, rinse and repeat.

    • @sebastiangudino9377
      @sebastiangudino9377 ปีที่แล้ว +6

      Same! Tho he should have read a little bit more documentation in the case. A lot of the things we struggled to do during the video were literally explained on the screen ate various points and he simply skimmed over them. Writing as you read is absoluely one thing, but he sometimes goes a little "Writing before you read" lol

    • @dromedda6810
      @dromedda6810 ปีที่แล้ว +4

      Instead of reading docs for 30mins you yolo it, spend 20 minutes fixing it and bam saved 10 minutes and you learned and tried how it works

    • @0netom
      @0netom ปีที่แล้ว +4

      it's a loooooot more efficient on the longer term, if you spend time on reading documentation.
      and by longer term, i mean already on the 1-2 day time scale, if you spend 1-2 hours on reading documentation (in 1-10 minutes chunks), you are likely to have already saved yourself more than 1-2 hours.
      but i understand how hard is it to achieve, if you have ADHD, which i do have and Mr Tsoding has an even stronger case of ADHD for sure.

  • @kaksisve4012
    @kaksisve4012 2 ปีที่แล้ว +34

    [1:50:00] Tsoding does some Mongolian singing. This should be a stream notification. XD

  • @Roundlay
    @Roundlay 2 ปีที่แล้ว +180

    We knew it all along, but the fact that you received a $300 donation and donated it to Ukraine given the current situation with payments and donations to Russia just highlights what a genuinely great guy you are. I appreciate the effort you put into streaming and learn a lot watching you code. I hope the situation over there is okay for you.

    • @AndrieMC
      @AndrieMC 9 หลายเดือนก่อน

      the thing is, HES RUSSIAN

    • @r2com641
      @r2com641 7 หลายเดือนก่อน

      I also donated to Ukraine but regretted it, stupid ass western propaganda and I’m not even pro Russian

    • @KushLemon
      @KushLemon 4 หลายเดือนก่อน +3

      When are you donating to Palestine? No? 🤡

    • @gercius
      @gercius 4 หลายเดือนก่อน +3

      @@KushLemon I love how you are self aware that you are clown, wholesome 3000.

  • @Tabongadoo
    @Tabongadoo 2 ปีที่แล้ว +6

    Cosplaying as Tom Scott lol. Keep up the good work man, you inspire me to be better and learn more. Always fascinating to watch your process in action.

  • @an_imminence
    @an_imminence ปีที่แล้ว +4

    I just smile when the info you seek is in second half of the first sentence you started to read but didn't finish. I try my hardest to at least read the part before the code snippet, because for some reason people don't put the important info in the snippet but above where it won't be copied over into your code... But I can totally see why you'd want to jump every 2 seconds, it's hard not to!

  • @superscatboy
    @superscatboy 2 ปีที่แล้ว +19

    Well, that's certainly a programming language.

  • @wouterr6063
    @wouterr6063 2 ปีที่แล้ว +12

    I think the simplest solution to the bar collision problem is to just set the dy of the projectile to -1 when they collide to make the projectile always go up.

  • @Diamonddrake
    @Diamonddrake ปีที่แล้ว +4

    Amazing thing about zig is it’s a c compiler (bundles clang) and cross platform c built system and can cross compile c to any platform zig supports.

  • @wawamake6627
    @wawamake6627 2 ปีที่แล้ว +26

    i think at some point he kinda checked out and stopped reading error messages, there was couple where he just ignored output) that line from "paint.zig" was totally usable, he just needed to change target file for compilation. but yeah, onboarding could be a little better.
    thing with arbitrary error names i believe is good, errors in zig are just values, and declaring them at the same place where you use them eliminates a lot of boilerplate (for people who want to be explicit with errors there is a mechanism too)

  • @gerooq
    @gerooq 7 หลายเดือนก่อน +1

    Every team needs someone like Tsoding to keep the code quality in check

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

    You found the solutions in less than 30 minutes (which I couldn't for a week) and you call yourself stupid. Man, you're one of the most efficient programmer I've seen. Don't underestimate yourself

    • @element1111
      @element1111 หลายเดือนก่อน

      More ideas to bounce of off in real time chat

    • @element1111
      @element1111 หลายเดือนก่อน

      More ideas to bounce off of in real time chat

  • @guillaumecollin9510
    @guillaumecollin9510 2 ปีที่แล้ว +17

    The compiler errors are one of my biggest complaints with Zig. They are often time very obtuse and not pointing at the right thing. Makes learning the language harder I agree. Thankfully it's on the roadmap and will be improved.

    • @katekyy7
      @katekyy7 ปีที่แล้ว +11

      Did you even saw a C++ error message?

    • @pierreollivier1
      @pierreollivier1 ปีที่แล้ว +3

      true but one good thing is that error propagate and you get a precise stack trace of where it went wrong. Which is better than "program aborted with error code ##"

    • @jawad9757
      @jawad9757 ปีที่แล้ว +17

      ​@@katekyy7that's an incredibly low bar

  • @dromedda6810
    @dromedda6810 ปีที่แล้ว +2

    might be the first time i watched a 3 hour video from start to finish

  • @ot44eto
    @ot44eto 2 ปีที่แล้ว +5

    Hey man! Cheers from Bulgaria!

    • @ot44eto
      @ot44eto 2 ปีที่แล้ว +1

      Just out of curiosity, why the hate for Rust? Or was it a joke? I was thinking of giving it more attention after I played with it for a couple of weeks a year ago. Should I waste my time?

  • @Radgerayden-ist
    @Radgerayden-ist 2 ปีที่แล้ว +17

    The reason it took 2 seconds to start up is most likely the llvm JIT engine waking up. Especially if you're already using the CPU for encoding 1+ seconds is pretty normal.

  • @exciting-burp
    @exciting-burp 2 ปีที่แล้ว +19

    Elm is supposed to have the best error messages there are. Rust was inspired by the project.

  • @ecosta
    @ecosta 2 ปีที่แล้ว +9

    I'm glad I'm not the only one to: 1. learn by trying; 2. complaining about how unintuitive things are; 3. feeling dumb that I can't do it as intuitively as I thought; 4. feeling dumber with everybody expecting me to read thousands of pages or millions of lines of code to get past "hello world"

    • @etodemerzel2627
      @etodemerzel2627 2 ปีที่แล้ว +9

      Some things are "intuitive" to you only because you got used to them in other languages.

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

      @@etodemerzel2627 exactly, for example I really prefer the semantics of |type | identifier | assignment operator | value | semicolon | but there is objectively no intuitiveness to it one could argue that | identifier | type | assignment operator | value | no semicolon | is more intuitive and that would be equally correct.

    • @Eugensson
      @Eugensson 6 หลายเดือนก่อน +1

      ​@@pierreollivier1 people say the second one is just easier to parse

  • @spitfire792
    @spitfire792 10 หลายเดือนก่อน +3

    that compile time is crazy

  • @IvanNovitskii
    @IvanNovitskii 11 หลายเดือนก่อน +2

    Tsoding is such a chad

  • @mike2ykme
    @mike2ykme 2 ปีที่แล้ว +21

    Noisiest hello world ever? Sir let me talk to you about Java lol

    • @TheInspctrcat
      @TheInspctrcat ปีที่แล้ว

      He is already a java dev😂

    • @chri-k
      @chri-k 6 หลายเดือนก่อน

      C# too

    • @Kokurorokuko
      @Kokurorokuko 17 วันที่ผ่านมา

      nah, it's less noisy in Java

  • @mickyyang6652
    @mickyyang6652 2 ปีที่แล้ว +13

    Actually I think the problem is not reading the document first. Since this language is still growing, there's no very friendly compile message like Rust.
    IMO, however, this language is strong. You can do many things at compiletime with `comptime`, which is more powerful than Rust's `const fn` and macros, and more readable than C++'s metaprogramming skills. It also has strict type system like Rust.
    Maybe I'll use it if Zig was not longer beta.

    • @pietraderdetective8953
      @pietraderdetective8953 10 หลายเดือนก่อน +1

      My thoughts exactly..it has great potential. But it needs to leave beta for me to use it.
      Do you know what's the timeframe for Zig to reach a stable release?

    • @mickyyang6652
      @mickyyang6652 10 หลายเดือนก่อน

      @@pietraderdetective8953 you can search the road of zig 1.0

    • @pierreollivier1
      @pierreollivier1 8 หลายเดือนก่อน

      @@pietraderdetective8953 I think now is already a good time to start tinkering with the language, even just learning build.zig for your C/C++ projects can be a cool start. But the language won't be ready before end of 2024 and even that I'm not sure yet, I'd say 2025 the language will really start to be "production grade". Right now they are focusing on stuff that not a lot of people immediately care about but in the long run it will be of great benefit for the developer experience. Currently they are working on a set of different custom backend to become the default in order to improve the compilation time. They are also working on solving bugs. They are also integrating a Zig based C compiler for the traduction of C code to Zig, They are also replacing the Async implementation but I'm not sure if it's already there or not. Loads of good stuff happening, Zls is also improving a lot, and they have plan to improve it a lot more, Right now Zls doesn't play well with comptime evaluation but they have plan for this, But those plans also depends on the custom backends to arrive, because otherwise the features will be too slow to be usable. I'd say if you want to start when it's in a better place, you should keep a tab on when ZLS add's comptime evaluation this will probably improve the learning experience quite a lot in my opinion.

    • @hikerwolfspaine8200
      @hikerwolfspaine8200 8 หลายเดือนก่อน

      @@pietraderdetective8953 I think 1.0 is projected to arrive in 2025-2026. If you end up experimenting with it, `zig fmt` can be used to automatically fix some breaking syntax changes that are added.

  • @fennecbesixdouze1794
    @fennecbesixdouze1794 2 หลายเดือนก่อน

    I love languages where they really insist variables must be initialized at literally the very line they are declared in but then they provide "undefined" to initialize them to.
    This is what happens to your brain when you think if only we wrote more keystrokes then we wouldn't have any null pointer dereferences.

  • @labsendeyshent
    @labsendeyshent 2 ปีที่แล้ว +3

    1:22:19 - "We made DVD logo!"

  • @fsouza
    @fsouza 2 ปีที่แล้ว +15

    Odin stream when

  • @alex_s168_p
    @alex_s168_p 10 หลายเดือนก่อน +3

    You could also do:
    const x = something();
    _ = x;
    instead of:
    _ = something();
    if you are going to use that later

  • @tpb2
    @tpb2 10 หลายเดือนก่อน +2

    Great fun! BTW - I tried to use your code with the latest version of Zig (0.11.0) but found a few breaking changes - presume this is what one would expect for a language which is evolving or maybe a language for maintaining software causes one to maintain software?

    • @hikerwolfspaine8200
      @hikerwolfspaine8200 8 หลายเดือนก่อน +1

      ZIg syntax is still in flux because it has not hit 1.0. `zig fmt` can be used to automatically fix some small syntax changes that have been made. It is a good reason to put off using it, though I hope you'll come back to check it out once they pin that 1.0 release. No breaking changes will be allowed in minor releases or revisions after that.

  • @employee9911
    @employee9911 11 หลายเดือนก่อน +1

    love this guy

  • @opgadget8544
    @opgadget8544 2 ปีที่แล้ว +4

    Brilliant job as always! Might I ask you, I see you use emacs instead of vim, any reason behind?
    Also I really like your desktop environment setup, minimal and highly efficient, what kind of distro is that and which desktop environment? Thanks a lot!
    Keep the good stuff happening :)

  • @lame_lexem
    @lame_lexem 2 ปีที่แล้ว +13

    rewrite it in zig am i right?

    • @etodemerzel2627
      @etodemerzel2627 2 ปีที่แล้ว +3

      Why? Just compile it with Zig.

  • @darkobul1
    @darkobul1 8 หลายเดือนก่อน

    I like compiler for ricv and does the thing you said. If you make a mistake like parameters it gives you suggestion which one to use. Compiler can know best and could be neat if it would give such suggestions. I think they added that for people who use arm so if you try to use arm registers and instruction it suggest you riscv ones.

  • @mystisification
    @mystisification 2 ปีที่แล้ว +3

    Thank you!

  • @Br4dButt0wski
    @Br4dButt0wski ปีที่แล้ว +3

    What is your opinion about Odin lang?

  • @mateusvmv
    @mateusvmv 2 หลายเดือนก่อน

    @29:12
    > Has an include error
    > Adds linker steps
    > Actually fixes the include error (????)
    So the link command is doing more than linking

  • @ethanevans8909
    @ethanevans8909 2 ปีที่แล้ว +1

    Damn, the Jai heist was a failure

  • @haxidenti6001
    @haxidenti6001 10 หลายเดือนก่อน +1

    Good job. As a Ukrainian guy i appreciate you for your help to Ukrainians. Your job will not be forgotten. Thanks.

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

    57:59 wouldn't a function that returns an array with those values work? I'm pretty sure there's also some way to make Zig execute the function at compile time.

  • @konstantinatwork3105
    @konstantinatwork3105 8 หลายเดือนก่อน

    3:06:25 "ez! this game is ez!" :D
    Great content!

  • @GarrethandPipa
    @GarrethandPipa 2 ปีที่แล้ว +1

    what no pixel perfect collision with a ball? Say it isn't so

  • @nabeelsherazi8860
    @nabeelsherazi8860 2 ปีที่แล้ว +5

    Based and poggers

  • @ulissesrosa1812
    @ulissesrosa1812 2 ปีที่แล้ว +16

    Hi Tsoding.
    As I Saw, you have implemented a Lot of interesting stuff in your Channel.
    I am creating a simple database (based on sqlite) in my own, as a personal project.
    That Said, I think that would be a great idea If you make a serie of making a serie of "implementing a database from scratch" in your Channel.

    • @anon_y_mousse
      @anon_y_mousse 2 ปีที่แล้ว +2

      What language are you implementing it in and what data structure are you using?

    • @sebastiangudino9377
      @sebastiangudino9377 ปีที่แล้ว +4

      So you really just want a Russian guy to do your job and upload it to TH-cam for free huh?

  • @flleaf
    @flleaf 2 ปีที่แล้ว +1

    3:31 funny joke

  • @pietraderdetective8953
    @pietraderdetective8953 10 หลายเดือนก่อน +2

    At current state it's unfortunately unstable, last night I spent hours trying to get Zig to accept input from user, only to find out the method from available tutorials have been deprecated.
    Maybe i'll revisit Zig next year when it has become much more stable.

    • @pietraderdetective8953
      @pietraderdetective8953 10 หลายเดือนก่อน

      Just finished the video, very interesting how Tsoding's experience with Zig is similar to mine!
      It would be interesting when Zig has reached a stable release.

  • @lame_lexem
    @lame_lexem 2 ปีที่แล้ว +1

    18:44 it's actually 2022 now so update the phrase when?

  • @ibendiben
    @ibendiben ปีที่แล้ว

    Just before you started killing them all, I heard those blocks shout: wait, we are all equals!!

  • @john.dough.
    @john.dough. 2 ปีที่แล้ว +4

    haha this is fun :)

  • @dnkreative
    @dnkreative ปีที่แล้ว

    2:09 Minkowski sum should help to solve it easier

  • @osogrande4999
    @osogrande4999 ปีที่แล้ว

    so in order to not write tests and get away with it I just need my company to have a spare half a million dollars a month, got it.

  • @ajov6638
    @ajov6638 2 ปีที่แล้ว

    you are awesome, you learn language easily.

  • @hytryi_huy
    @hytryi_huy 6 หลายเดือนก่อน +1

    Дякую
    (thanks)

  • @ME-dg5np
    @ME-dg5np ปีที่แล้ว +1

    Web Dev Is possibile now with Ziglang??

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

    can we use printf by importing stdio.h?

  • @GlobalYoung7
    @GlobalYoung7 2 ปีที่แล้ว

    Thank you 👍😄

  • @thaddaeusmarkle1665
    @thaddaeusmarkle1665 2 ปีที่แล้ว +4

    If it's frames fps per second, shouldn't the variable be named FFPS? 😜

  • @HuntingKingYT
    @HuntingKingYT ปีที่แล้ว +2

    Please make a stream about Zig!

  • @0netom
    @0netom ปีที่แล้ว

    how are you so fresh, if u couldn't sleep?

  • @nathanfranck5822
    @nathanfranck5822 2 ปีที่แล้ว

    Lets get zigggged

  • @Marshblocker
    @Marshblocker ปีที่แล้ว

    6:43 'love-minor-mode' 🤨🤨

  • @MarcoAurelio-sv2tk
    @MarcoAurelio-sv2tk 2 หลายเดือนก่อน

    What is that 9GB porn folder?

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

    In my opinion the best way to learn zig is with ziglings. Its actually entertaining and you learn almost everything you need to know

  • @fleaspoon
    @fleaspoon 2 ปีที่แล้ว

    padle is a racket game

  • @coolaj86
    @coolaj86 5 หลายเดือนก่อน

    1:14:13 The inference goes from the right side to the left side on assignment. ex: `const i = @floatToInt(i32, 1.0)`. In later versions it's fixed as suggested such that `const i: i32 = @intFromFloat(1.0)` now works.

  • @diegoj4382
    @diegoj4382 6 หลายเดือนก่อน

    Nice SDL tutorial 😂

  • @arnabsarkar8511
    @arnabsarkar8511 2 ปีที่แล้ว +6

    porth?

    • @SamualN
      @SamualN 2 ปีที่แล้ว +29

      zig

    • @youtubehandlesux
      @youtubehandlesux 2 ปีที่แล้ว +1

      rewrite porth compiler in zig so it can be called pog

  • @hkhademian
    @hkhademian 2 ปีที่แล้ว

    i think BreakZig is a better name ;)

  • @blackbeard3449
    @blackbeard3449 3 หลายเดือนก่อน

    2:16:16 2nd Stream

  • @sumitpandey9712
    @sumitpandey9712 ปีที่แล้ว

    1:11:44 u can use SDL_FRect

  • @MaxCoplan
    @MaxCoplan 2 ปีที่แล้ว

    btw Scala is still very used nowadays

  • @ylluminate
    @ylluminate 9 หลายเดือนก่อน

    How much does it cost to have you do a paid stream like this?

    • @chri-k
      @chri-k 6 หลายเดือนก่อน

      $300

    • @ylluminate
      @ylluminate 6 หลายเดือนก่อน

      @@chri-k thanks - where is this documented?

    • @chri-k
      @chri-k 6 หลายเดือนก่อน

      @@ylluminate in the beginning of the stream...
      also you do know that this is a joke, right?

  • @shubhampawar7921
    @shubhampawar7921 2 ปีที่แล้ว +11

    I was thinking of trying zig since it made a lot of promises. After watching this don't want to go anywhere near zig

    • @etodemerzel2627
      @etodemerzel2627 2 ปีที่แล้ว +6

      That's a shame. I'm really enjoying for hobby projects. It's way better than dealing with C's bullshit.

    • @noname-sj1hi
      @noname-sj1hi 2 ปีที่แล้ว +1

      Check out Odin.

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

    Look ma, somebody have no switch flipped. No test take is hilarious. Good luck driving a car with testless code. Modern gamedev seems taking booking's approach seriously and what a kind of a mess we have.

  • @sanjaux
    @sanjaux 9 หลายเดือนก่อน

    Would have been easier on the DOM ( ͡° ͜ʖ ͡° )

  • @MaxCoplan
    @MaxCoplan 2 ปีที่แล้ว

    !discord

  • @correabuscar
    @correabuscar 2 ปีที่แล้ว +1

    Don't take this wrong, but if you look up asmrmassage channel you might think that you look like the male version of her...

    • @youtubeviewer7077
      @youtubeviewer7077 10 หลายเดือนก่อน

      Not sure what's funnier, how true what you said is, or that videos like that exist.

  • @mishikookropiridze5079
    @mishikookropiridze5079 ปีที่แล้ว

    Scala still better.

  • @ParadisePixel
    @ParadisePixel 2 ปีที่แล้ว

    I love you sir

  • @jew1671
    @jew1671 2 ปีที่แล้ว +2

    pog

  • @spetsnaz5
    @spetsnaz5 2 ปีที่แล้ว

    Try Odin!

  • @cheebadigga4092
    @cheebadigga4092 ปีที่แล้ว

    I LOVE the error.UrMom thing. I guess that's the "anyerror" type. Very cool!

  • @SeshachalamMalisetti
    @SeshachalamMalisetti 2 ปีที่แล้ว +1

    Move to India with your family

  • @defini7
    @defini7 ปีที่แล้ว +2

    i tried zig and it was so awful

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

      True and Rust keeps winning.

  • @michaelshapoval1725
    @michaelshapoval1725 2 ปีที่แล้ว +3

    dislike. Compiler doesn't know what crap is in your head. Tests are important for testing what you did. Programming is not only about one-liners and simple one-file games.
    Maybe you're good videoblogger, but you're newbie at programming. You lost me at 18:52

    • @etodemerzel2627
      @etodemerzel2627 2 ปีที่แล้ว +11

      I don't understand why people cannot have reasonable opinions. It's either "cover everything with tests! 100% coverage!" or "you don't need to have tests at all!". Where's the damn middle ground?

    • @michaelshapoval1725
      @michaelshapoval1725 2 ปีที่แล้ว +2

      @@etodemerzel2627 well the reason behind those two opposite sides of the same scale is the dumb managers. First are those who want to reduce cost while developing something new (go-go-go, we need to release MVP next friday or we're dead!), second are those who want to reduce dependency on developers (I want to fire that ugly guy and replace him with this new cheap guy, we have no risks here, we have 100% test coverage, right?).
      As a developer I use tests for mainly two cases, out from the tip of my head. One, if I don't know how to do it yet, but I know what the system should look like, the API, the behavior, maybe known values for the given parameters - I can create a bunch of tests before actual coding, and then it's usual TDD, test-driven development. Other, when I don't want to visit THAT part of the code often, I can cover it with tests and forget THAT part. If something goes wrong, the tests will tell you that it's time to look into that part again. Or tweak your new shiny changes..

    • @jawad9757
      @jawad9757 ปีที่แล้ว +10

      That's a roundabout way to say you're insecure and don't understand humour

  • @fennecbesixdouze1794
    @fennecbesixdouze1794 2 หลายเดือนก่อน +1

    The more normal hello world would be
    const std = @import("std");
    pub fn main() !void {
    std.debug.print("Hello, World!
    ", .{});
    }
    I think the version you saw was intentionally noisy just to illustrate more language features.

  • @simonfarre4907
    @simonfarre4907 ปีที่แล้ว +4

    It's a little funny that a lot of the hype around Zig, speedy builds, intuitive design, etc are almost all debunked within the first 5 minutes 😅

    • @pierreollivier1
      @pierreollivier1 ปีที่แล้ว +4

      some parts aren't really intuitive I'll give you that one, but the project seems to be on track to be a potential real C replacement. But in the long run I think it's going to be a very solid language.

    • @chrboesch
      @chrboesch ปีที่แล้ว +2

      @simonfarre4907 The video is a year and a half old. Take a look at how Zig has developed before you make unqualified comments.

    • @pierreollivier1
      @pierreollivier1 ปีที่แล้ว +3

      @@chrboesch I use zig, it's amazing, but it's isn't as simple and intuitive as C, not that it's a big deal once you get past it, but that's still a real issue of the language, It's on the roadmap to improve, but the compiler is still very much unhelpful, the compilation speed is ok, but the llvm backend is super slow (not really a zig thing tho) So no it's not an unqualified comment, I've used it enough to understand it's state, and It's not production ready, nor does it claim to be. There is still a lot to be done, but if the project maintains it's objective of replacing C while not becoming as bloated and horrendous as Cpp than It's surely going to be the next C, and that's why I'm using it already.

    • @chrboesch
      @chrboesch ปีที่แล้ว

      @@pierreollivier1 Sorry, my reply was not for you but for @simonfarre4907. I gave you a thumbs up for your reply to him.

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

      Wdym "intuitive design", were the actual, explicitly stated goals of the project debunked?

  • @OLApplin
    @OLApplin 2 ปีที่แล้ว +5

    `std.io.getStdfOut().writer().print(...)`
    and they say java is verbose 😤

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

      Have you considered why it's "verbose" for more than 5 seconds

    • @OLApplin
      @OLApplin ปีที่แล้ว

      @@jawad9757 chill, it's just sarcasm. I understand the need for namespaces and common interface, it's fine.

    • @AloisMahdal
      @AloisMahdal 4 หลายเดือนก่อน +1

      think of it as "explicit" rather than "verbose".
      the idea is that as a programming language, Zig can be useful in contexts where you don't even have stdout, or certainly don't want to have it by default.