My 2 Year Journey of Learning C, in 9 minutes

Поділитися
Вставка
  • Опубліковано 24 бер 2023
  • This is a short video about my journey from not understanding C in the least to being able to make a relatively large codebase.
    Discord: / discord
    Links to Projects/Resources mentioned in the video:
    Crafting Interpreters
    craftinginterpreters.com/
    My Custom Programming Language Transpiler (Rift) - V1 branch:
    github.com/PixelRifts/Rift/tr...
    Tool Installer:
    github.com/Indie-Toolbox/Indi...
    Solid State visualizer:
    [ Not Open Source ]
    (Check the Wheel Reinvention Jam Project since that has the same features)
    SoME2 Game:
    voxelrifts.itch.io/graphit
    Base Layer Series and more!
    / @mr4thprogramming
    Wheel Reinvention Jam Project:
    handmade.network/p/292/multie...
    (Current Project)
    My C-Codebase:
    github.com/PixelRifts/c-codebase
    Music:
    ---
    Kevin MacLeod is a Legend
    It Came Upon a Midnight Clear by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
    Source: incompetech.com/music/royalty-...
    Artist: incompetech.com/

КОМЕНТАРІ • 518

  • @stickguy9109
    @stickguy9109 Рік тому +463

    Segfault is like learning any other thing. People exaggerate it too much. "Centering a div", "deleting the default cube", "dark souls is hard". There are many examples

    • @voxelrifts
      @voxelrifts  Рік тому +50

      That's DEFINITELY what's happening here

    • @adrianlowery7175
      @adrianlowery7175 Рік тому +4

      You’re spot on

    • @drygordspellweaver8761
      @drygordspellweaver8761 Рік тому +32

      Centering a div is the sole exception 😂😂😂

    • @TheMasabaa
      @TheMasabaa Рік тому +8

      The amount of times I've realized I still don't know how to center a div😅

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

      @@TheMasabaa bruh these guys :D

  • @bishopoftroy
    @bishopoftroy Рік тому +632

    I`m not a big C programmer but i`m very grateful i started programming with it. It is actually fun and a beautiful language.

    • @bishop6903
      @bishop6903 Рік тому +7

      LOL Segv make it beautiful of course

    • @collincampbell7689
      @collincampbell7689 Рік тому +10

      Until you are wondering why you have to override the buffer overflow...

    • @bishopoftroy
      @bishopoftroy Рік тому +37

      @@collincampbell7689 you wonder why do you have to stuff in any programming language.

    • @josephputra2987
      @josephputra2987 Рік тому +5

      i want to get back to my first love "C" and functional programming, my mind felt clear when only thing about the functional or process thing from the beginning till end , but when it comes to object, MVC and others it just like making something one thing at a time.

    • @b.wallet5295
      @b.wallet5295 Рік тому +1

      There is nothing beautiful or fun about it

  • @nald-dev
    @nald-dev Рік тому +10

    Love this journey storytelling, hope you gaining more and more experience ahead and enjoy!

  • @danidotexe_
    @danidotexe_ 8 місяців тому +81

    respect for your decision to stick to C for a while. it's not always the most fun when you're learning, but what you learn from C lasts the rest of your programming life

  • @Hassan-lv9di
    @Hassan-lv9di 2 місяці тому +1

    Your approch and projects are wonderful! I really enjoyed the video

  • @tomaspavan4042
    @tomaspavan4042 Рік тому +2

    Amazing and very inspirational for my coding journey. Thank you for making the video, just subscribed the channel, looking forward to learning more,

  • @g0w1h4m
    @g0w1h4m 11 місяців тому +24

    Thank you for sharing your experience. As a software engineer by profession, I have forgotten the beauty of programming solely for the purposes of enjoyment and learning. I miss those days.

  • @BboyKeny
    @BboyKeny 11 місяців тому +25

    C is a really good way to learn programming. It's really easy to understand how many other languages work under the hood.

  • @victortruong1524
    @victortruong1524 6 місяців тому +1

    Wow ! Be courage and show experience to the world ! Lot of people need your story ! Have fun friend ! ❤

  • @dereklewis5192
    @dereklewis5192 Рік тому +2

    just started getting familiar with C. Thanks for keeping me motivated :)

  • @LiterateProgramming
    @LiterateProgramming 3 місяці тому

    Much enjoyed and shared this with my students. I actually started out many years ago with C++ but I'm enjoying C more and more, especially teaching it. Cheers

  • @Selbstzensur
    @Selbstzensur Рік тому +2

    your journey is awesome ❤

  • @dvxv4016
    @dvxv4016 8 місяців тому +6

    I learned C relatively recently and I can not imagine coding without pointers and references

  • @drygordspellweaver8761
    @drygordspellweaver8761 Рік тому +160

    I actually had to take a “C vacation” after programming in Java/kotlin for 3 months. Seriously the OOP paradigm weighs on the soul.

    • @mrmaniac9905
      @mrmaniac9905 10 місяців тому +12

      You're crazy. I have to use C and rust on a daily basis for my job. I ONLY program in kotlin and the occasional javscript/python at home. I don't think there is a legitimate use case for c at all anymore outside of highly specialized programs like compilers, game engines, and anything else that ACTUALLY needs the performance boost. With technology where it's at now java is right on par with c in terms of performance. Hell, I finished the initial release of my game engine (written entirely in kotlin) and can rival the performance of godot. There is very little benefit to c these days, other than what I mentioned above and embedded programming.

    • @mrmaniac9905
      @mrmaniac9905 10 місяців тому +8

      as a general rule of thumb, I keep languages without a package manager the hell away. Cmake, premake and what have you are just DISGUESTING after coming from gradle, npm, and other first class package managers.

    • @drygordspellweaver8761
      @drygordspellweaver8761 10 місяців тому

      @@mrmaniac9905 ....this is either the ultimate troll and deliverance of satire or you legitimately need to be locked up in an insane asylum.
      Gradle. You have got to be fking kidding me. Gradle, a first class package manager 🤣
      If you are using Cmake as a "package manager" then you have no clue what you're doing to begin with. C doesn't need a "package manager". You include the source code you will be using. Nothing could be simpler. Meanwhile, absolute trash like gradle gives you stack traces 250 calls deep...
      Yeah, nice troll 👍 almost had me for a second!

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

      ​​​​​​@@mrmaniac9905maybe thats because you cannot fix a single system error by yourself? Or even dont know how to compile a tarball from commandline? Like wtf did you even realize how you sound. Dont misunderstand me when i say you are probably the type of a very oppurtunistic software Engineer, it is solely possible that you are a very good programmer but that what you are saying just sounds a bit to uninterested in how the things are going under the hood

    • @_Jayanky_
      @_Jayanky_ 8 місяців тому +26

      ​@@mrmaniac9905Someone's a little pissy, I like C because it's simple and easy to work with. Java needs too much boilerplate

  • @krunkle5136
    @krunkle5136 Рік тому +81

    It is great because it forces you to be systematic and careful, and will just let you make linked lists without complaining.
    The more new languages restrict you and make more things automatic, the more you're less encouraged to think carefully, and the more processing power is stolen.

  • @vitalyl1327
    @vitalyl1327 Рік тому +247

    The "Crafting Interpreters" book failed to mention the coolest way of implementing bytecode interpreters in C - using the computed goto extension to do an indirect threaded code execution (supported by gcc and clang, which is pretty much all everyone should care about these days). It's significantly faster than the mere case approach described in the book.

    • @voxelrifts
      @voxelrifts  Рік тому +40

      That's a very interesting technique indeed! Thanks for sharing it. (I do care about MSVC though :P)

    • @vitalyl1327
      @vitalyl1327 Рік тому +17

      @@voxelrifts there is always a way to fall back to case if your compiler does not support computed goto, see how it's done in OCaml bytecode interpreter for example (look for the file 'interp.c')

    • @voxelrifts
      @voxelrifts  Рік тому +18

      @@vitalyl1327 Yup. I looked up "computed goto" and the first article came up with a 25% speedup which is quite insane. So having this as a fastpath would make a lot of sense. I'll look into the OCaml interpreter when I can for sure!

    • @ingenuity1394
      @ingenuity1394 Рік тому +6

      @@voxelrifts you guys tqlking seems like very pro , i also want to be pro in programming 😓

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

      Look into Duff’s Device

  • @Mr4thProgramming
    @Mr4thProgramming Рік тому +13

    Wow, thanks for the shoutout! I look forward to seeing what you do with your codebase, and what videos you're making next!

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

      Thanks again for your fantastic series :D

  • @thats-no-moon
    @thats-no-moon Рік тому +55

    I too am starting out with C (as a computer engineer coming from Java and Python) and your video helps a lot. I can also recommend the "C Programming for Everybody (CC4E)" course, especially if you are already a programmer. It basically goes through the first edition of the K&R book and introduces C as a convenience layer for assembler. To see it this way helped me a bunch.
    Anywho, thanks for the video :)

  • @ndaheroson7941
    @ndaheroson7941 Місяць тому

    beautiful, not boring video. Thanks for sharing.

  • @namehere5165
    @namehere5165 Рік тому +13

    I can so agree with this video! When I initially started learning C for a class, I was also surprised with the general productivity increase, contrary to the actual amount of 'work' seeming to go up. I'm seeing why a lot of people much prefer the agility of a functional programming approach to the general 'much-ado-about-nothing' class hierarchies and file structures of object-oriented programming.

    • @MI08SK
      @MI08SK 8 місяців тому +4

      C is procedural not functional, an example of a functional programming language is haskell

    • @Muskar2
      @Muskar2 6 місяців тому

      I was confused about functional vs. procedural vs. OOP as well. Functional is where every function is immutable (i.e. doesn't change anything outside the function). Procedural supports mutable functions. And OOP _typically_ leans into making everything mental model "objects", including functionality (except those that support "static" functions and/or "Singletons"). Another "recent" (2014) synonym for procedural is "data-oriented". C is indeed procedural.

  • @aligharaibeh3761
    @aligharaibeh3761 3 місяці тому

    Your videos are calm and nice💐

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

    You're awesome dude 😎

  • @gabrieltiossi
    @gabrieltiossi 8 місяців тому

    this video is really valuable

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

    Wow, what a gem of a channel I've been recommended

  • @JonitoFischer
    @JonitoFischer 7 місяців тому +1

    The end is epic, a piece of advice to us: C you next time!

  • @maxplayerone9565
    @maxplayerone9565 Рік тому +185

    Cool video! I remember that when I used C I've never had any seg faults so I thought those memes come from more experience guys but it turns C isn't as bad as people say😅

    • @voxelrifts
      @voxelrifts  Рік тому +33

      Yeah it really isn't! I don't even know where the memes about segfaults originally came from :P

    • @lolcat69
      @lolcat69 Рік тому +46

      ​@@voxelrifts from bad coders...

    • @voxelrifts
      @voxelrifts  Рік тому +21

      @@lolcat69 I was informed it might be due to C being primarily used in programming for embedded systems. I really think that should be clarified in said memes though

    • @emmanueljerry2032
      @emmanueljerry2032 Рік тому +11

      It mostly revolves around what you are using C for
      If it does a lot of memory manipulation you are most likely to run into a segfault

    • @lolcat69
      @lolcat69 Рік тому +11

      @@voxelrifts i can tell you, the only times i seg fault is cuz my code was shit, and i made some bad allocation of memory or used a std function wrong

  • @sphamandlamtambo4624
    @sphamandlamtambo4624 9 місяців тому +3

    Great stuff...I recently started learning C++ after about two years of python. I'm really enjoying myself with C++.

  • @kevin.malone
    @kevin.malone Рік тому +1096

    It took you two years just to learn C in the span of 9 minutes?

    • @voxelrifts
      @voxelrifts  Рік тому +217

      Now that would've been epic

    • @nitilpoddar
      @nitilpoddar Рік тому +109

      This comment is hurting my brain

    • @whannabi
      @whannabi Рік тому +5

      ​@@nitilpoddar yeah, do the math now

    • @Manas-co8wl
      @Manas-co8wl Рік тому +24

      Accurate representation of my learning pattern and time management

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

      Imagine the preparation for that haha

  • @ajayspatil
    @ajayspatil Рік тому +2

    This video gave me back the confidence to learn C again which I had lost 🙂

  • @NOPerative
    @NOPerative 11 місяців тому +11

    C takes a good bit of commitment, but the event (regardless of time spent) will reward the journeyman with deeper insight not only to systems but self.
    I became more familiar with assembler prior to C and C was still a bit of a learning curve due to pointer management but the fundamentals carry over that neither language is difficult for any other reason than you are the creator and security officer. Both disciplines offer a great deal of control and with that power comes great responsibility while the more you know and understand your data the more easy the definition of your code will emerge allowing you to develop in the languages at an almost second nature level of "Dev Ops". Familiarity & passion = performance but more importantly lets one know where they should be rather than used as scales determining whether they "suck" compared to other devs. Self imposed critique is not an ally - find that language that intrigues you and try to work with data that also intrigues and you will eventually find your rhythm & rhyme with stanza being more relevant to that performance level that previously staggered your mind.
    Totally agree with everything you pointed out in the video - absolutely nailed the essence of transgress into C and the importance of such an event. This observation is a mantle (believe it or not) and says a great deal about your intellect. Old school developers would be very pleased to see your progression. Good stuff.
    Awesome video. Checks the affirmation box. Wish you many happy journeys.

  • @rammrras9683
    @rammrras9683 Рік тому +5

    A started witch C after visual basic and I love it.
    It's been a while that I haven't written something in C though 😢

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

    love the conclusion!

  • @benw6117
    @benw6117 Рік тому +6

    Cool stuff! I learned the pain of the all ceremony, state encapsulation, and other “clean code” after I switched to using Clojure. While it’s surely not the tool for the jobs that have to “go fast” it is certainly a joy to work on the problem at hand and not the problem of what we usually think of as code structure.

    • @b213videoz
      @b213videoz 10 місяців тому

      Enjoy your header files hell

  • @cathalogrady2331
    @cathalogrady2331 Рік тому +5

    I have too been using C for the past 2 years, funny :). I tried many other languages javascript, java, python3, rust, etc (actually used python and javascript extensively) but for all of my personal projects I kept coming back to C. It is so comfortable in the low overhead. I can *really* program, I am not bogged down by verbosity, having to look up syntax or libraries, its all there. All you need to write C is a c compiler, vi and the man pages. C is also very flexible, and is the first language I turn to when trying to understand DSA or programming paradigms. Just today I have been learning about more functional languages (following using prolog in uni ) and finally understand monads ! woop, I implemented them in C to re-enforce them.

  • @psibarpsi
    @psibarpsi Місяць тому +1

    I love you!
    because I love low-level schtuff and so do you!

  • @nikbivation
    @nikbivation Рік тому +2

    thank you for this! Valuable and inspiring ^_^

  • @BrainFuck._
    @BrainFuck._ Рік тому +7

    I'm studying C, I'm loving it so much

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

    Very nice, I'll give your code a lookthrough. Thanks for the GS plug.

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

      It was a great resource for me for figuring graphics out so thanks for making it!

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

    I really hope that you keep adding videos! Hi subscribe with that tiny bit of hope that you continue making videos!

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

      That is the plan! Exams cause a lot of delays though 😅

  • @PureAsbestos
    @PureAsbestos 7 місяців тому +4

    I agree about bringing that C procedural mindset to OOP languages. It is very easy to over-architect things in Java, C#, and even C++.

  • @georgesadler7830
    @georgesadler7830 5 місяців тому

    Thank you for the video.

  • @IsaacChickenWong
    @IsaacChickenWong 9 місяців тому +5

    You are amazing! Yes it’s time to try some functional languages and then you can view C and it’s struct/union from a new perspective.

  • @MegaSimsie
    @MegaSimsie Рік тому +6

    I also came from Java and after I finished my postgrad, I decided that I never wanted to look at the language again.
    I picked up C and it is without a doubt my favourite language.

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

    nice video man!

  • @DenisTruong
    @DenisTruong Рік тому +3

    coming from web dev and learning C for work that I do now thanks for sharing,

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

      what do you use c for at work ?

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

    I fell in love with C as well. ❤

  • @sammy_007
    @sammy_007 2 місяці тому

    I just saw PrimeTime's video where he reacts on this exact video
    And I got this on my yt feed now

  • @polecat3
    @polecat3 Рік тому +26

    I do get a lot of seg faults, but it's true that they usually aren't bad to debug. Mostly I'm misspelling a filename or forgetting to initialize a variable

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

      the thing is; obviously mistakes are quick to fix, but first you must find the mistake; and when the error core is "program's dead, screw you ♪"... hope you aren't getting tired staring at your code-base for hours...
      Have fun finding the l amongst the I
      IIIIIIIIIIIIIIlIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII

    • @voxelrifts
      @voxelrifts  Рік тому +3

      ​​@@something3194 but that's not what happens with segfaults if you're using the address sanitizer or a debugger.. the only thing it tells you is that there was an access violation which is the same as a nullpointer exception in other languages. So debugging c code isn't too different from debugging any other language.

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

    My journey was interrupted a year ago. I started it seeking precisely the benefits you got from it. Time to make time for C.

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

    Damn! It will took me 5 years just to be able to write all your project.❤❤❤

  • @BlueCodesYep
    @BlueCodesYep Рік тому +3

    Currently started to work with C++, coming from python, and JS. Was a fun watch, good luck in everyone else’s journey!

  • @rodrigo-tj1gf
    @rodrigo-tj1gf Рік тому +1

    "I ve got some experience with c++ but i still got confused on why pointers are usefull" damn that speaks to my soul

  • @MarcosOliveira-us4wf
    @MarcosOliveira-us4wf Рік тому +1

    That video comes in the right moment of my life, studded C in university two years ago, this year I'm back to this language for get more knowledge about programming, I finish the basis, but I don't know how I can advance...

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

      I suggest you the book (from 1999 I think) "Algorithms in C".

  • @ThatOpinionIsWrong
    @ThatOpinionIsWrong Рік тому +12

    Cool vid, just starting to learn C after learning Python for 1 year, to better understand how it's implemented under the hood. Like you said at the beginning of the vid, a lot of things have been taken for granted, it's hard to adapt to so much typing and boilerplate.
    Also, 4:00 we have the same last name :D

    • @whannabi
      @whannabi Рік тому +4

      I did the exact same... It was hell. Honestly, It would've been better to start with C and then go high level but this path works as well. Starting with python as a beginner makes it less overwhelming though.

  • @m.ahsanmalik9793
    @m.ahsanmalik9793 8 місяців тому

    from where you learn such topics in C? Can you guide me? Your projects are mindblowing!

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

    thanks for sharing

  • @TechnoSan09
    @TechnoSan09 Рік тому +25

    C is really great language,
    For a low to middle level language with much control over hardware it has one of the best elegant syntax
    C really taught me core principles of computation after learning basics of CS and programming with python as a absolute beginner

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

      C is a high-level language with the ability to do low-level interfacing through asm()
      You might be surprised how useful asm() is, it’s a life saver for graphics libraries

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

      ​@@Vexxel256 Is it really?

  • @theegg-viator4707
    @theegg-viator4707 11 місяців тому

    Very nice 👍🏻

  • @patrickchan2503
    @patrickchan2503 6 місяців тому

    a string is an array of characters, this got me excited

  • @MePeterNicholls
    @MePeterNicholls Рік тому +14

    Yes! The first time I tried C and I was following making a sort algorithm I was like - huh? What? It doesn’t have????? And it took sometime for it to sink in why. And realising C was almost as close to the metal as a programming language gets. And the power!

    • @skilz8098
      @skilz8098 Рік тому +2

      Yup C is 1 step above Assembly... And C++ is just a glorified C!

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

      @@skilz8098 and objective C….🙈

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

    Thanks for this informative video about C , it encouraged me to start this journy too! I'd like to ask you , what are the resources did you use to learn Java? Thanks in advance!

    • @voxelrifts
      @voxelrifts  Рік тому +2

      To be honest I don't think I learned the basics from anywhere in particular. But I followed along with a few series by youtube.com/@GamesWithGabe after I understood the syntax and stuff

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

    Nice job bro! Keep it up. 🫡

  • @cloudproblemssolved
    @cloudproblemssolved 2 місяці тому +2

    Thx for sharing free resources and channels rather than promoting paid content

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

    very peaceful video

  • @Ljosi
    @Ljosi 8 місяців тому

    If I could go back in time the first thing I would learn is how memory stores things at address:value and all you're doing with code is move those values around in memory by iterating through addresses

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

    Good Content, I subscribed you.

  • @user-hk7fz5yj8e
    @user-hk7fz5yj8e 8 місяців тому

    Побольше таких видео, хотя от куда взять столько времени

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

    Thank you.

  • @69k_gold
    @69k_gold 2 місяці тому +1

    While watching videos like this, I feel like I was the only one in the whole undergrad world who got into CS without a massive headstart

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

    I'm learning C too, to get easy the steps use org-mode with snipets of code and evaluate it on the same document, save a lot of time. Maybe you could try and comment about it your thoughts

  • @nadnet
    @nadnet Рік тому +3

    I like the advice you gave at the end.
    May I know how many years of experience you had in programming before you started learning C?

    • @voxelrifts
      @voxelrifts  Рік тому +3

      Before C, about 3 years. But I was using scratch before that.

  • @b_ks
    @b_ks 6 місяців тому

    Interesting, thanx.

  • @Ashwin_1198
    @Ashwin_1198 8 місяців тому

    Could you please recommend projects that I can work on using C? I've recently completed my learning of the language, including pointers and other concepts. These projects would help me reinforce my understanding.

    • @voxelrifts
      @voxelrifts  8 місяців тому +1

      Old game clone, chip8 emulator, are pretty good project ideas

  • @cursedfox4942
    @cursedfox4942 9 місяців тому +2

    ive been learning it for about a month and I love it Ive written a command line text based game which has some ascii animation using a C compiler app on iphone Ive also worked on coding moving ascii analog clocks and things quite fun so far my goal is to program drivers and maybe make small games

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

      All pf this in a month? How many hours did you spend?

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

      @@smallSphere69 hmm well I read c for dummies which is a few hundred pages, read almost all of c all in one desktop reference for dummies which is about 800 pages and im on page 700 so and read about half of kernigan and ritchies original book. so well say about 50 hours of reading which if you think of itt in terms of playing a video game or watching movies is nothing. Coding the actual stuff oh jeese not that much lets say another 30 or so basically whenever I get time. Its been very rewarding so far. Id say the ascii analog clock was the hardest because you need actual math.

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

      @@cursedfox4942 My reading speed for programming books is about 6 to 10 pages per hour, so in 50 hours (that means a full month, because I can devote around 12-13 hours of studying per week) it means I could read 300 to 500 pages. That means to actually try all the examples in the book.

  • @anon_y_mousse
    @anon_y_mousse Рік тому +39

    If you've never done low level programming, learning about pointers and how and when to use them can be daunting, but it sounds like you're going to stick with it. I would suggest that you learn to use the compiler to generate assembly and learn assembly while you're at it as it would make you a better C programmer. Also, read both the Intel and AMD optimization manuals as they will help you write better code in any language. Also also, get a copy of the C standard document and read it, maybe not all the way through in one sitting, but any parts that stick out in your mind. C11 added generics with the _Generic keyword, learn how to use it.

    • @voxelrifts
      @voxelrifts  Рік тому +18

      Assembly is precisely what im learning right now. It's super fun :D

    • @J-Random-Luser
      @J-Random-Luser Рік тому +4

      If I'm being honest, I would avoid the use of _Generic. To some degree, I can definitely appreciate the idea of being polymorphic over function arguments, but frankly I don't think this kind of behavior belongs in a language like C, even outside of the portability concerns. For what C is used for, not having the function you're calling be immediately clear is *begging* for issues.
      This kind of behavior is much more suited to higher level languages like C++ or Rust which are much, much more suited towards applications development than C is. In these cases you actually want these nice abstractions, while in C, having abstractions can honestly just lead to more problems.

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

      @@voxelrifts If you want to take it a step farther... and more than just learning assembly... You might want to look into CPU or ISA design! Ben Eater has an excellent video series here on Y.T. where he builds an 8-bit CPU on a breadboard. Now, it is a SAP model based on a Von Neumann architect... yet it is a theoretical turing complete system... From there, there's also course called From NAND to Tetris that's very good. And I also found a course from Bilkent Online Courses that's from about 10 years ago that is quite good as well. There are many others out there too!

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

      @@J-Random-Luser That could depend on the application at hand. If you're doing low level stuff such as operating systems or embedded systems I could definitely agree with your argument. However, if you are working with basic application side of things and you're focusing more on "Objective C". Then this could be a suitable operation, perhaps in "compiler or interpreter designs"? I wouldn't rule it out. I would however suggest learning about it's functionality, it's capabilities, it's intended uses, it's pros and cons and learn to understand when, where and how to use such a feature.

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

      Fuck paying 200€ for a fucking standard document

  • @mrshodz
    @mrshodz 11 місяців тому +1

    I have really enjoyed watching your video. It takes time learning anything worth while and you have proved it. However, when you start working in a company on an existing large and complex codebase that has little or no documentation, if that is the path you take, you will find out soon enough why C is difficult. When it is your own codebase and you know where everyhting is then all the C issues will not be there that much, but as soon as you work on a complex C project that is not your codebase all the misconception will turn out to be true. That is why C++ has smart pointers. There are alternatives that are trying to replace C such as Rust and Zig and they will probably become the new low level languages.

    • @voxelrifts
      @voxelrifts  11 місяців тому +2

      I'm gonna be honest I don't think smart pointers are required at all. There's almost always faster and nicer options. (Ofcourse nicer is just my opinion)

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

    great vid

  • @filoreykjavik
    @filoreykjavik 2 місяці тому

    What library did you use for implementing graphics in your chemistry projects? BTW thanks for this video, very informative, very inspiring

    • @voxelrifts
      @voxelrifts  2 місяці тому +1

      No library used there, I loaded opengl function pointers directly. Also, thanks :)

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

    Incredibly inspiring. Saved for as reference for my own journey.

  • @Ahmed-to9hi
    @Ahmed-to9hi Рік тому

    There is still multi threading, and fork(). Im currently doing a project in University, where we get a baseline OS and have to implement multi threading and fork() by scratch

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

    Would you mind making a video on the build systems you prefer when working with a decent sized C project. I in the same boat as you. Thanks for the video :)

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

      ATM I use bat and sh files which is far from ideal. I plan to make my own :)

    • @presauced
      @presauced 11 місяців тому +1

      ​@@voxelrifts not sure about you but.. they're good enough.

    • @voxelrifts
      @voxelrifts  11 місяців тому

      @@presauced At the start of a project, definitely.

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

    The fact I'm making a project called Graphit that does the exact same thing that yours did is a huuuge coincidence

  • @PrabhanjanSangam
    @PrabhanjanSangam 10 місяців тому

    I have started with c programming as my first language and it has been 4 months Can u suggest where to start finding projects so I could get more confidence and continue building my own.😊.And the video is very decent and good,it helped me.

    • @voxelrifts
      @voxelrifts  10 місяців тому +1

      This is something I still struggle with. I suggest maintaining a list of what you want to do and work through that. For me, I do get ideas, but I get them rarely enough that I forget

  • @JohnWilliams-gy5yc
    @JohnWilliams-gy5yc 9 місяців тому +1

    That C23 makes the new 'compound literal' an unnamed lvalue on the right hand of an assignment, is diverted from C++ lifetime. However this means with C23 you can construct by pointer semantics with one-liner from now on, eg. one-liner mktime( & (struct tm){ } ). I don't think this C23 feature can be adopted by C++ because the move semantics needs the existing of rvalue lifetime.

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

    What do you use for the brilliant animation?
    Seriously, I'm curious. It's at my level of drawing ability. :P

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

      It's far from brilliant lmao. I just spliced images in sync

  • @yogeshchauhan9401
    @yogeshchauhan9401 Рік тому +3

    4:20 damn dude how u made this project in c 😮

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

    I too started learning C since 2021 and now I'm into embedded systems lol.

  • @hbobenicio
    @hbobenicio 11 місяців тому

    I can see you love programming languages. I think you will also like learning Odin and Zig. At least those will make your C programming skills improve even more I hope

  • @juliajean6731
    @juliajean6731 Рік тому +10

    In my journey I started with C then did a bit of C++ but we had an haskell discovery class and it changed my life. I highly recommend you give it a try. It's going to be hard at first ngl but the concept your going to learn are incredible

  • @P-G-77
    @P-G-77 Рік тому +1

    Learning C in 9 minutes... good phrase, good to learn the very basic, not only.

  • @maxsurkov
    @maxsurkov 10 місяців тому

    Hi, the code for this visualization project(4:14) is in the open source? I've been studying C for several months and I'm very interested in how you did it. Anyway thanks for this video.

    • @voxelrifts
      @voxelrifts  10 місяців тому

      Technically yes, I haven't opensourced it as a standalone project but it does exist in the multieditor project. Link to that one is in the description

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

    wawaweewa, It's a very NICE!!!!!!

  • @woosukbyun2455
    @woosukbyun2455 Місяць тому

    Thank you for your video. Are you working as a C programmer now?

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

    8:13 "You should DEEPLY understand what you're using"
    I feel so called out lol

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

    next step, create a database and output html using only c. the graphics and low level asm coding can only go so far, unless you're interested in robotics, but creating c/c++ cms and improving web speed is on the horizon that you can put it to good use.

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

    Very insightful :)
    Also what's the background music in the video?

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

      "It Came upon a midnight clear" by Kevin Macleod. Links are in the description :)

  • @uuu12343
    @uuu12343 4 місяці тому

    WAIT
    You learned for 8 months and went to transpiling already?
    Impressive stuff

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

    Next up, a journey across the sea!

  • @256k_
    @256k_ Рік тому

    the joys of being a student. i wish i was this free.

  • @ethanbuttazzi2602
    @ethanbuttazzi2602 15 днів тому

    in the end there the "how can i write the best possible thing" vs "how do i make this thing first then make it better" relly depends on the project, with c its relly easy to do the second since you dont have as much potential spagetthi to deal with, but this mindset in something like java or c# could relly make it far harder to maintein in the long run, which are what OOP languages do best, they are by far the best paradigm when it comes to scalability.