My 2 Year Journey of Learning C, in 9 minutes

  Рет қаралды 653,139

VoxelRifts

VoxelRifts

Күн бұрын

Пікірлер: 557
@bishopoftroy
@bishopoftroy Жыл бұрын
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 Жыл бұрын
LOL Segv make it beautiful of course
@collincampbell7689
@collincampbell7689 Жыл бұрын
Until you are wondering why you have to override the buffer overflow...
@bishopoftroy
@bishopoftroy Жыл бұрын
@@collincampbell7689 you wonder why do you have to stuff in any programming language.
@josephputra2987
@josephputra2987 Жыл бұрын
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 Жыл бұрын
There is nothing beautiful or fun about it
@stickguy9109
@stickguy9109 Жыл бұрын
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 Жыл бұрын
That's DEFINITELY what's happening here
@adrianlowery7175
@adrianlowery7175 Жыл бұрын
You’re spot on
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
Centering a div is the sole exception 😂😂😂
@TheMasabaa
@TheMasabaa Жыл бұрын
The amount of times I've realized I still don't know how to center a div😅
@rationcode
@rationcode Жыл бұрын
@@TheMasabaa bruh these guys :D
@krunkle5136
@krunkle5136 Жыл бұрын
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.
@matyasmarkkovacs8336
@matyasmarkkovacs8336 Жыл бұрын
Well said
@BboyKeny
@BboyKeny Жыл бұрын
C is a really good way to learn programming. It's really easy to understand how many other languages work under the hood.
@linkpad6270
@linkpad6270 3 ай бұрын
Yeh so true! I learnt the basics of C and now coming into C# is so much easier and taken a few chunks off the learning curve.
@maxplayerone9565
@maxplayerone9565 Жыл бұрын
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 Жыл бұрын
Yeah it really isn't! I don't even know where the memes about segfaults originally came from :P
@lolcat69
@lolcat69 Жыл бұрын
​@@voxelrifts from bad coders...
@voxelrifts
@voxelrifts Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
@@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
@nald-dev
@nald-dev Жыл бұрын
Love this journey storytelling, hope you gaining more and more experience ahead and enjoy!
@cathalogrady2331
@cathalogrady2331 Жыл бұрын
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.
@namehere5165
@namehere5165 Жыл бұрын
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 Жыл бұрын
C is procedural not functional, an example of a functional programming language is haskell
@Muskar2
@Muskar2 Жыл бұрын
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.
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
​​​​​​@@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_ Жыл бұрын
​@@mrmaniac9905Someone's a little pissy, I like C because it's simple and easy to work with. Java needs too much boilerplate
@g0w1h4m
@g0w1h4m Жыл бұрын
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.
@thats-no-moon
@thats-no-moon Жыл бұрын
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 :)
@Hassan-lv9di
@Hassan-lv9di 8 ай бұрын
Your approch and projects are wonderful! I really enjoyed the video
@dvxv4016
@dvxv4016 Жыл бұрын
I learned C relatively recently and I can not imagine coding without pointers and references
@vitalyl1327
@vitalyl1327 Жыл бұрын
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 Жыл бұрын
That's a very interesting technique indeed! Thanks for sharing it. (I do care about MSVC though :P)
@vitalyl1327
@vitalyl1327 Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
@@voxelrifts you guys tqlking seems like very pro , i also want to be pro in programming 😓
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
Look into Duff’s Device
@Mr4thProgramming
@Mr4thProgramming Жыл бұрын
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 Жыл бұрын
Thanks again for your fantastic series :D
@danidotexe_
@danidotexe_ Жыл бұрын
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
@MegaSimsie
@MegaSimsie Жыл бұрын
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.
@sphamandlamtambo4624
@sphamandlamtambo4624 Жыл бұрын
Great stuff...I recently started learning C++ after about two years of python. I'm really enjoying myself with C++.
@polecat3
@polecat3 Жыл бұрын
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 Жыл бұрын
​​@@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.
@victortruong1524
@victortruong1524 Жыл бұрын
Wow ! Be courage and show experience to the world ! Lot of people need your story ! Have fun friend ! ❤
@DenisTruong
@DenisTruong Жыл бұрын
coming from web dev and learning C for work that I do now thanks for sharing,
@timalk2097
@timalk2097 Жыл бұрын
what do you use c for at work ?
@PureAsbestos
@PureAsbestos Жыл бұрын
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++.
@kevin.malone
@kevin.malone Жыл бұрын
It took you two years just to learn C in the span of 9 minutes?
@voxelrifts
@voxelrifts Жыл бұрын
Now that would've been epic
@nitilpoddar
@nitilpoddar Жыл бұрын
This comment is hurting my brain
@w花b
@w花b Жыл бұрын
​@@nitilpoddar yeah, do the math now
@Manas-co8wl
@Manas-co8wl Жыл бұрын
Accurate representation of my learning pattern and time management
@rodolfoxavierneto6667
@rodolfoxavierneto6667 Жыл бұрын
Imagine the preparation for that haha
@romzeek
@romzeek 10 ай бұрын
Hello, friend. Could you please add subtitles? I'm kind of deaf
@69k_gold
@69k_gold 9 ай бұрын
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
@TechnoSan09
@TechnoSan09 Жыл бұрын
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 Жыл бұрын
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?
@rammrras9683
@rammrras9683 Жыл бұрын
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 😢
@LiterateProgramming
@LiterateProgramming 10 ай бұрын
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
@IsaacChickenWong
@IsaacChickenWong Жыл бұрын
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.
@copzi
@copzi Жыл бұрын
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 Жыл бұрын
Enjoy your header files hell
@rodrigo-tj1gf
@rodrigo-tj1gf Жыл бұрын
"I ve got some experience with c++ but i still got confused on why pointers are usefull" damn that speaks to my soul
@tomaspavan4042
@tomaspavan4042 Жыл бұрын
Amazing and very inspirational for my coding journey. Thank you for making the video, just subscribed the channel, looking forward to learning more,
@MePeterNicholls
@MePeterNicholls Жыл бұрын
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 Жыл бұрын
Yup C is 1 step above Assembly... And C++ is just a glorified C!
@MePeterNicholls
@MePeterNicholls Жыл бұрын
@@skilz8098 and objective C….🙈
@NOPerative
@NOPerative Жыл бұрын
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.
@ndaheroson7941
@ndaheroson7941 8 ай бұрын
beautiful, not boring video. Thanks for sharing.
@psibarpsi
@psibarpsi 8 ай бұрын
I love you! because I love low-level schtuff and so do you!
@johnjackson9767
@johnjackson9767 Жыл бұрын
Very nice, I'll give your code a lookthrough. Thanks for the GS plug.
@voxelrifts
@voxelrifts Жыл бұрын
It was a great resource for me for figuring graphics out so thanks for making it!
@ajayspatil
@ajayspatil Жыл бұрын
This video gave me back the confidence to learn C again which I had lost 🙂
@MarcosOliveira-us4wf
@MarcosOliveira-us4wf Жыл бұрын
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 Жыл бұрын
I suggest you the book (from 1999 I think) "Algorithms in C".
@dereklewis5192
@dereklewis5192 Жыл бұрын
just started getting familiar with C. Thanks for keeping me motivated :)
@P-G-77
@P-G-77 Жыл бұрын
Learning C in 9 minutes... good phrase, good to learn the very basic, not only.
@BlueCodesYep
@BlueCodesYep Жыл бұрын
Currently started to work with C++, coming from python, and JS. Was a fun watch, good luck in everyone else’s journey!
@patrickchan2503
@patrickchan2503 Жыл бұрын
a string is an array of characters, this got me excited
@anon_y_mousse
@anon_y_mousse Жыл бұрын
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 Жыл бұрын
Assembly is precisely what im learning right now. It's super fun :D
@J-Random-Luser
@J-Random-Luser Жыл бұрын
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 Жыл бұрын
@@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
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS 2 ай бұрын
As a C hobbyist programmer, I can't imagine programming without pointers
@ZuvielDrama
@ZuvielDrama Жыл бұрын
your journey is awesome ❤
@pullrequest1481
@pullrequest1481 Жыл бұрын
Damn! It will took me 5 years just to be able to write all your project.❤❤❤
@JonitoFischer
@JonitoFischer Жыл бұрын
The end is epic, a piece of advice to us: C you next time!
@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 😅
@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.
@lunedefroid8817
@lunedefroid8817 Жыл бұрын
Wow, what a gem of a channel I've been recommended
@unbindallgaming7556
@unbindallgaming7556 Жыл бұрын
8:13 "You should DEEPLY understand what you're using" I feel so called out lol
@cursedfox4942
@cursedfox4942 Жыл бұрын
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 Жыл бұрын
All pf this in a month? How many hours did you spend?
@cursedfox4942
@cursedfox4942 Жыл бұрын
@@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 Жыл бұрын
@@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.
@sammy_007
@sammy_007 8 ай бұрын
I just saw PrimeTime's video where he reacts on this exact video And I got this on my yt feed now
@ThatOpinionIsWrong
@ThatOpinionIsWrong Жыл бұрын
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
@w花b
@w花b Жыл бұрын
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.
@cloudproblemssolved
@cloudproblemssolved 9 ай бұрын
Thx for sharing free resources and channels rather than promoting paid content
@Ferrolune
@Ferrolune Жыл бұрын
after years of using C++, I'm ready to stop blowing my leg off and just settle with a toe.
@bala-yb8lq
@bala-yb8lq 2 ай бұрын
video was useful in a way...keep the good work up
@Singlton
@Singlton 10 ай бұрын
Your videos are calm and nice💐
Жыл бұрын
Fun fact: I have run into significantly more segfaults writing PHP than C. Granted, I write PHP for a living, but it is actually hilarious how often I have crashed PHP-FPM.
@illegalsmirf
@illegalsmirf Жыл бұрын
Isn't PHP written in C?
@Vexxel256
@Vexxel256 Жыл бұрын
@@illegalsmirf yes
@matyasmarkkovacs8336
@matyasmarkkovacs8336 Жыл бұрын
A wise man once said: "Nothing better than C" /Linus Torvalds/
@smallSphere69
@smallSphere69 Жыл бұрын
"ASM and C is the most powerful combination in programing" - Dave Paul (Creator of Windows Task Manager)
@mrshodz
@mrshodz Жыл бұрын
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 Жыл бұрын
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)
@Ljosi
@Ljosi Жыл бұрын
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
@yogeshchauhan9401
@yogeshchauhan9401 Жыл бұрын
4:20 damn dude how u made this project in c 😮
@JohnWilliams-gy5yc
@JohnWilliams-gy5yc Жыл бұрын
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.
@amendoinjpr
@amendoinjpr Жыл бұрын
"It all started when I was looking into how a compiler is made..."
@spiderjuice9874
@spiderjuice9874 7 ай бұрын
Having studied both C (self-taught) and chemistry (at Uni) I totally approve of what I see here :)
@TozzaYT
@TozzaYT Жыл бұрын
The fact I'm making a project called Graphit that does the exact same thing that yours did is a huuuge coincidence
@juliajean6731
@juliajean6731 Жыл бұрын
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
@RobertLukvec
@RobertLukvec 3 ай бұрын
The point I learned and got the job DONE
@georgesadler7830
@georgesadler7830 Жыл бұрын
Thank you for the video.
@Codigger-br2rt
@Codigger-br2rt 8 ай бұрын
No matter what the language, this is a must to learn, it is said that the process control: sequence, cycle, selection, can solve all the problems in the world. Of course, only understanding the flow control can truly understand the program! 1. Sequence: Normal statement execution, from top to bottom. 2. select :if or select... 3. for while...
@Calypso694
@Calypso694 10 ай бұрын
I'm learning C now. Cant even fathom writing more complex things or how to even go about it.
@pineiden
@pineiden Жыл бұрын
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
@256k_
@256k_ Жыл бұрын
the joys of being a student. i wish i was this free.
@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
@gabrieltiossi
@gabrieltiossi Жыл бұрын
this video is really valuable
@ethanbuttazzi2602
@ethanbuttazzi2602 7 ай бұрын
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.
@skilz8098
@skilz8098 Жыл бұрын
I'm 100% self taught and I dove into C++ for working with 3D Graphics. Now when I first started to learn programming, I jumped into the C++ language, I was still using mostly C style functions such as printf instead of iostream, however, I was using new and delete as opposed to malloc and free conventions... Yet through my own studies and my own personal experiences I'd have to ask in a rhetorical sense and this is not meant to put anyone down as this is just a general observation that is related to the craft... Can one truly consider themselves a programmer or software engineer if they don't even know or understand what pointers are and how to properly use them? These are one of the most fundamental and basic concepts in how the CPU communicates with RAM either in terms of accessing memory to read its content, write data to it, or to fetch another instruction! Just saying! As I said, I'm 100% self taught with 0 college credits towards computer science. Yet I feel that if one doesn't understand pointers in general and how to use them... Then they truly don't know how to properly instruct a CPU! Again this isn't to put anyone down. It's just a general observation of the craft! A craft that I'm devoted to even to the point where I researched into CPU and ISA(Instruction Set Architecture) design right down to the Logic Gates themselves! I dove so deep into it that I stepped out of the realm of computer science - software engineering and dove into the realm of hardware engineering - electronic engineering. There's nothing wrong with higher level languages and higher levels of abstraction, yet if you don't know what's going on under the hood... for me it's just a recipe for major disasters much later on! Just food for thought! It's always better to know and not ever use it, than to not know anything about it when it's required.
@yashnarvariya4725
@yashnarvariya4725 Жыл бұрын
Hello sir electronics sophomore here, i want to make my basics strong in software development but also want to dove deep into how memory works, what would you recommend to your younger self.
@skilz8098
@skilz8098 Жыл бұрын
@@yashnarvariya4725 Back in the early to mid 2000s it was a bit different as there wasn't as much information or content available online back then as there is today. Back then when learning C/C++ it was a matter of trial and error, reading through forums, and going back and doing more trial and error. You have to learn to use the tools that you have such as your debugger, disassemblers, etc... Today it's quite a bit different because there is plenty of material out there. But for learning the basics of how hardware is built or works, Ben Eaters Breadboard series is a great introduction.
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
There are many times when I’m programming in other languages that I think “man, this would be trivially easy in C”. Pointers are THAT fundamental
@willtheoct
@willtheoct Жыл бұрын
a 'pointer' is just an 'offset', so if you call an offset a pointer, you fail as an engineer
@skilz8098
@skilz8098 Жыл бұрын
@@willtheoct Pretty much... The easiest way to know what pointers are is that in hardware they are the actual address lines that become active to a specific location in memory either it be a register, a location in ram, a location in the cache or even on some other device such as a hard drive or external storage, video memory, etc... It's basically the mailbox number to where the data is stored. They're not really all that complicated... Now getting a handle on doing pointer arithmetic can take a little getting use to it to be proficient at it. The main reason for this is knowing the size of the allocated block... you have to know how many bytes your data or data structure pointer type is. Some pointers are 4 bytes, others are 8 bytes, and some devices might even have their own implementation defined sized... and this can in some rare cases vary by either the language, compiler, operating system (platform) and or architect. For example many years ago even before my time back in the 60s maybe even in the 70s a byte wasn't even 8 bits... Some bytes back then were 6 and some were 7.... but that's a different topic altogether. Now regular pointers on the stack aren't too bad... but heap allocated memory has to be properly cleaned up and the pointer has to be freed otherwise many bad things are going to happen...
@tomatte99
@tomatte99 Жыл бұрын
I fell in love with C as well. ❤
@srele96
@srele96 Жыл бұрын
love the conclusion!
@andreas_tech
@andreas_tech 7 ай бұрын
C is the best for any beginning developer.
@programming4047
@programming4047 Жыл бұрын
I too started learning C since 2021 and now I'm into embedded systems lol.
@nskeip
@nskeip Жыл бұрын
+1000, C really makes you faster. You need to be so focused on the task while progamming in C, that it becomes a habit, so when you switch back to any other language, you just kill your tasks ^_^ in the fastest and most elegant way. If Bruce Lee was a coder, he would code in C, I guess)
@uuu12343
@uuu12343 11 ай бұрын
WAIT You learned for 8 months and went to transpiling already? Impressive stuff
@tosemusername
@tosemusername Жыл бұрын
Thumbnail had me like: is this a password: swordfish reference?
@d3mist0clesgee12
@d3mist0clesgee12 Жыл бұрын
just started to learn pogramming, C is my first language,
@xleage
@xleage Жыл бұрын
2:47 it's where I am right now but it's because I don't want to nest too much and my code is a mixture of stack overflow....
@BiyaPore
@BiyaPore Жыл бұрын
Побольше таких видео, хотя от куда взять столько времени
@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 Жыл бұрын
ATM I use bat and sh files which is far from ideal. I plan to make my own :)
@presauced
@presauced Жыл бұрын
​@@voxelrifts not sure about you but.. they're good enough.
@voxelrifts
@voxelrifts Жыл бұрын
@@presauced At the start of a project, definitely.
@raisi96
@raisi96 5 ай бұрын
We want your language's OS decorator to come to C
@helio6839
@helio6839 Жыл бұрын
My biggest annoyance with C and C++ is the header file system. It's such a frustrating overhead to have to deal with all the time.
@voxelrifts
@voxelrifts Жыл бұрын
Understandable criticism. But if you're doing a unity build, you don't even need them. Not recommendable for big projects but for small scale ones, unity builds are easy to setup.
@BinGanzLieb
@BinGanzLieb Жыл бұрын
​@@voxelrifts whats is a unity build system? 😮
@voxelrifts
@voxelrifts Жыл бұрын
@@BinGanzLieb It's the super smart system of literally including all c files into one lol
@johanngambolputty5351
@johanngambolputty5351 Жыл бұрын
Yep, basically just don't do that for small projects. Headers are only there to provide definitions for when you want to compile different bits of the program separately, so don't compile separately and you don't need them. You can still have separate c files, using #include "some_other_code.c" will just insert that file within the other at compile time essentially. Also, how about a no-file build system: >> echo '#include int main() { printf("Hello World\ "); }' | gcc -x c - && ./a.out tehehe
@boy_deploy
@boy_deploy Жыл бұрын
You're awesome dude 😎
@jesuschrist1501
@jesuschrist1501 Жыл бұрын
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.
@BobrLovr
@BobrLovr Ай бұрын
pointers are important because they let you do the things that java does for you.
@nikbivation
@nikbivation Жыл бұрын
thank you for this! Valuable and inspiring ^_^
@alplayzmc3034
@alplayzmc3034 Жыл бұрын
I just came out to my family of java programmers as a C developer. They kicked me out of the house. C pride!
@g.krishna4565
@g.krishna4565 4 ай бұрын
I only c homelessness
@dorianligthart3378
@dorianligthart3378 3 ай бұрын
you should've kept it a C cret
@nadnet
@nadnet Жыл бұрын
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 Жыл бұрын
Before C, about 3 years. But I was using scratch before that.
@tetraquark2402
@tetraquark2402 Жыл бұрын
C was my first love but I don't get to use it anymore.
@robinwang6399
@robinwang6399 Жыл бұрын
Me shivering in python trying to Lear C++ for a project.
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
All languages are basically C- like at this point. You’ll be fine
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 311 М.
you will never ask about pointers again after watching this video
8:03
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,1 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
CSS Illustration: Table Lamp using CSS
5:46
Sumod Panicker
Рет қаралды 3
I coded one project EVERY WEEK for a YEAR
13:13
Carter Semrad
Рет қаралды 728 М.
Creating a window - Software from Scratch
1:04:12
Muukid
Рет қаралды 138 М.
Hacking a C compiler #1: Open a source file
30:58
Sandcurves
Рет қаралды 2,8 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 221 М.
Top 4 Recommended books to learn C
15:33
ANTSHIV ROBOTICS
Рет қаралды 77 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1,4 МЛН
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 4,2 МЛН
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,4 МЛН
Why I like C programming more than Web Dev (rant)
3:57
NeetCodeIO
Рет қаралды 184 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,1 МЛН