Paid Zig Stream

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

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

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

    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 ปีที่แล้ว +13

      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 ปีที่แล้ว +12

      @@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.

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

    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 11 หลายเดือนก่อน

      the thing is, HES RUSSIAN

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

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

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

      When are you donating to Palestine? No? 🤡

    • @gercius
      @gercius 6 หลายเดือนก่อน +11

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

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

      ​@@KushLemon no dono for pigs 💩

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

    did not expect this shit to happen

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

    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?

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

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

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

    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

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

    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.

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

    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!

  • @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.

  • @gerooq
    @gerooq 9 หลายเดือนก่อน +2

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

  • @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.

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

    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)

  • @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.

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

    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 ปีที่แล้ว +12

      Did you even saw a C++ error message?

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

      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 ปีที่แล้ว +21

      ​@@katekyy7that's an incredibly low bar

  • @cagataykaydr3015
    @cagataykaydr3015 3 หลายเดือนก่อน +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 2 หลายเดือนก่อน

      More ideas to bounce of off in real time chat

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

      More ideas to bounce off of in real time chat

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

    Well, that's certainly a programming language.

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

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

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

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

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

    that compile time is crazy

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

    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 ปีที่แล้ว +11

      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 7 หลายเดือนก่อน +1

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

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

    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 ปีที่แล้ว +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 ปีที่แล้ว

      @@pietraderdetective8953 you can search the road of zig 1.0

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

      @@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 10 หลายเดือนก่อน

      @@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.

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

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

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

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

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

    Damn, kinda sad that there's no more porth, but there's more troublesome thing out there
    Also press F to views

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

      What happened w porth?

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

      Yes what happened to porth? Are you guessing or did he say something?

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

      @@bradywb98 it's predictable, he burned out, it got boring now he wants to work on a new and more exciting projects.
      He probably achieved the main goal, the reason of making porth and now .. well it just lays in the back. Probably until the better times

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

      @@monsieuralexandergulbu3678 has he actually decided to just leave Porth entirely now? Last thing I had heard he had stopped streaming, but wanted to work on it offline. Wouldn't surprise me if he did drop the project though.

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

      @@monsieuralexandergulbu3678 it ended on such a cliffhanger, with the typed pointers/variables/structures-trilogy. in my personal lore/delusion tsoding s still going strong and drops a big update in a couple of months.

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

    Tsoding is such a chad

  • @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?

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

    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.

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

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

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

    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 8 หลายเดือนก่อน

      C# too

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

      nah, it's less noisy in Java

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

    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.

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

    Odin stream when

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

    What is your opinion about Odin lang?

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

    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?

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

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

  • @tpb2
    @tpb2 11 หลายเดือนก่อน +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 10 หลายเดือนก่อน +2

      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.

  • @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.

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

    rewrite it in zig am i right?

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

      Why? Just compile it with Zig.

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

    Damn, the Jai heist was a failure

  • @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 :)

  • @Byynx
    @Byynx 27 วันที่ผ่านมา

    That "hello world" syntax and semantics just shows these new languague developers have no vocation to create new programming languages, they may have the skills but that doesn't makes them the right people to do it.

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

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

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

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

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

    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 ปีที่แล้ว +1

      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.

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

    Web Dev Is possibile now with Ziglang??

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

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

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

    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.

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

    love this guy

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

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

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

    2:09 Minkowski sum should help to solve it easier

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

    can we use printf by importing stdio.h?

  • @heavymetalmixer91
    @heavymetalmixer91 11 วันที่ผ่านมา

    >Zig in it's home webpage "A simple language".
    >It's more complicated to use than C++
    Why is this language gaining so many users.

    • @Sparkillay
      @Sparkillay วันที่ผ่านมา

      It's an old video, a lot of things have changed.
      They have more funding now.

  • @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.

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

    Thank you!

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

    you are awesome, you learn language easily.

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

    3:31 funny joke

  • @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

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

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

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

    Based and poggers

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

    Please make a stream about Zig!

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

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

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

    padle is a racket game

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

    i think BreakZig is a better name ;)

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

    Дякую
    (thanks)

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

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

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

    haha this is fun :)

  • @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.

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

    Thank you 👍😄

  • @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

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

    1:11:44 u can use SDL_FRect

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

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

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

      $300

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

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

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

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

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

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

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

    2:16:16 2nd Stream

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

    Lets get zigggged

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

    !discord

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

    Nice SDL tutorial 😂

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

    Try Odin!

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

    What is that 9GB porn folder?

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

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

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

    btw Scala is still very used nowadays

  • @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 ปีที่แล้ว

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

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

    Scala still better.

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

    pog

  • @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.

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

    I love you sir

  • @tradingisthinking
    @tradingisthinking 9 วันที่ผ่านมา

    slava ukraini

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

    Move to India with your family

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

    i tried zig and it was so awful

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

    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.

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

    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

  • @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 ปีที่แล้ว +5

      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 6 หลายเดือนก่อน +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.