[Part 1] Tic-tac-toe Game in C with SDL -- Procedural vs Functional

Поділитися
Вставка
  • Опубліковано 23 вер 2024

КОМЕНТАРІ • 45

  • @leonlysak4927
    @leonlysak4927 4 роки тому +60

    I know the video was about procedural vs functional but this was the best introduction to SDL2 I've seen so far. Your teaching and pacing was awesome dude.

  • @theReal1618
    @theReal1618 6 років тому +17

    man, your videos are absolutely amazing.
    the pacing is perfect, the explanations are concise and it's all very fun to watch. please don't stop!

  • @raingermedia
    @raingermedia 3 роки тому +4

    You might be the best tutorial giver for programmers that I've ever watched. Thanks so much!

  • @xXmahriXx
    @xXmahriXx 3 роки тому

    ahh we meet again! last semester you saved my ass for the haskell exam, now I wanted to look into sdl development and this was by far the best tutorial ive seen, speed, clarity and quality wise
    thanks!!

  • @taishar81
    @taishar81 7 років тому +32

    Your game over states were begging for an enum type rather than preprocessor defines.

  • @florianfromm3265
    @florianfromm3265 7 років тому +15

    Great idea ! I'm curious about the haskell version, expect it to be much shorter (and much more beautiful) :)

    • @Tsoding
      @Tsoding  7 років тому +3

      Surprisingly enough, it didn't come out shorter. But much more beautiful indeed. And most of the beautifulness actually comes from the Gloss library that I used. I really recommend to check it out. hackage.haskell.org/package/gloss

    • @florianfromm3265
      @florianfromm3265 7 років тому

      Is this library more like SDL or more like OpenGl (kind of low level) ? Will look at it, never used such a library with haskell.

  • @grkuntzmd
    @grkuntzmd Рік тому

    Excellent job! Very nice intro to SDL programming in C.

  • @torarinvik4920
    @torarinvik4920 2 роки тому

    I have the upmost respect for this channel and I know the title is made for simplicity. But I just have to say for those that don't know Procedural is not the opposite of Functional. The opposite of Functional is Imperative. The opposite of Procedural is Object Oriented. So the Haskell version would be Procedural as well I guess, but Declarative rather than Imperative. The Scala language favors a mix of OOP and Functional. It is actually possible afaik to be 100% Functional and 100% OOP at the same time. A language where all functions are objects, then theoretically all your code are both functions and objects at the same time. If we think about it, object constructors are actually just functions returning objects. Just my opinion, I may be wrong.

  • @erezjacob6804
    @erezjacob6804 Рік тому

    Hi, thanks for giving such a good explanation comparing 2 different types of languages (procedural vs functional), it makes more sense to me (newbie coder)

  • @jacobscrackers98
    @jacobscrackers98 4 роки тому +2

    Your check_player_won logic (16:07) is very neat, it looks like it's checking rows and columns at the same time by using one pair of nested for loops that can be interpreted as either column-by-column or row-by-row by different inner code. Very clever.
    (when I wrote this I thought I understood it but now I'm not so sure)

  • @greob
    @greob 7 років тому +3

    This is great, nicely edited as always. Very interesting, eager to see the next part! :)

  • @shakif3460
    @shakif3460 4 роки тому +3

    Why can't I call this SDL2_gfxPrimitives function? urgently help me.. :;(

  • @darronvanaria2952
    @darronvanaria2952 3 роки тому

    Great video. What type of dev work do you do professionally?

  • @beyondcatastrophe_
    @beyondcatastrophe_ 4 роки тому +1

    I know this is old but at 2:43 you forgot to provide the file handle for `fprintf`

  • @mikedev5263
    @mikedev5263 Рік тому +1

    What an improvement gg brother 🎉 you where ***fat*** and now in good shape !

  • @timonpasslick
    @timonpasslick 6 років тому +1

    Can you also make a comparison with C++/SDL? Or any other OOP language?

  • @preethamnk
    @preethamnk 6 років тому

    I like his programming style.
    Anyone interested in more of his content should check his twitch www.twitch.tv/tsoding and GitHub profile (mentioned in the video description)

  • @aghaam2404
    @aghaam2404 2 роки тому

    How are you creating this presentation?

  • @thyandyr7369
    @thyandyr7369 5 років тому

    This is a good quality tutorial, thanks

  • @AnneONym
    @AnneONym 7 років тому +1

    When is the part 2 gonna be available ?

    • @Tsoding
      @Tsoding  7 років тому +1

      The footage is already recorded. It only remains to edit it. Since I do all of that in my spare time the ETA is around 2 weeks.

    • @jony1710
      @jony1710 7 років тому

      Ahhh but it's been 3 weeks! I hope it's the functional circle jerk I've been waiting for. ;)

    • @Tsoding
      @Tsoding  7 років тому

      It's a lazily evaluating video.

    • @Tsoding
      @Tsoding  6 років тому

      Sorry I mistyped word "months" :) ua-cam.com/video/VxLvaHpAK-U/v-deo.html

  • @canikeni3329
    @canikeni3329 3 роки тому

    which theme is this?

  • @kvbc5425
    @kvbc5425 3 роки тому +1

    my favourite moment 11:11

  • @ozkaa
    @ozkaa 4 роки тому

    subscribed. great content

  • @user-qh9xl9ry7d
    @user-qh9xl9ry7d Рік тому

    wow interesting topic. i will start this tutorial

    • @user-qh9xl9ry7d
      @user-qh9xl9ry7d Рік тому

      I faced a CS2143 issue in Rendering.h. Coded into Visual Studio. Does anyone have a solution to this problem? Also, I'd like to ask you to introduce how to install SDL separately. A video that's too unkind to beginners like me

  • @mrchuvyzgalov
    @mrchuvyzgalov 4 роки тому

    Where're you from? Are you from Russia?)

    • @andor1904
      @andor1904 4 роки тому

      Нет, он вроде из Словакии, или что то такое. У него на твиче написано. Я сам сначала подумал, что русский, так как акцент похож)

  • @echoanatolia5721
    @echoanatolia5721 5 років тому

    Which IDE are you using ?

    • @qymb4991
      @qymb4991 5 років тому +1

      Emacs - text editor

    • @josueteodoromoreira8921
      @josueteodoromoreira8921 3 роки тому +1

      @@qymb4991 no, it's not emacs. It's an emacs fork called spacemacs. It's a mashup between emacs and vim.

  • @PeperMintification
    @PeperMintification 7 років тому +1

    +1 subscriber

  • @markpolesznyak7756
    @markpolesznyak7756 5 років тому +1

    Please source code of the SDL2/SDL.h file!

    • @alexeykutepov3767
      @alexeykutepov3767 5 років тому +1

      github.com/spurious/SDL-mirror/blob/master/include/SDL.h

  • @xingcdayo
    @xingcdayo 2 роки тому

    hello, how to fix the library SDL2_gfxPrimitives.h cannot work?

  • @aleksy920
    @aleksy920 9 місяців тому

    what else i need to do to use sdl2, sdl.h, sdlgfxprimitives.h

  • @zakariahamedoun4448
    @zakariahamedoun4448 4 роки тому

    Why can't I call this SDL2_gfxPrimitives function? urgently help me.. :;(