The most beautiful/useful thing about the way these coding sessions are presented is the "thinking out loud" part. It is really helpful and interesting to see how he breaks down the problems into digestible pieces. This is probably the most important skill when writing code.
33:13 You missed the opportunity to use the (terrible) `-->` loop! as in `while (n --> 0)` the little arrow is cute, which is the most important factor in programming.
this is kinda beyond my current skills. But I watched it in the background simply because of how satisfying it is to see him coding and moving around the screen like mad WITHOUT using a mouse
@@nolanpestano1798 yeah, it’s rly nice. I’m am a chemical engineering major tho. I dont have much free time to dedicate to that as of right now. But I will defo learn programming deeper whenever I have the chance to
Wasn't expecting to watch an hour and a half of someone making a bouncing ball in console today but that's where we are. It was cool to see how you approached each part of the challenge and how you problem solved your way through it! I'm sure a lot went over my head but you did a good job explaining what you were doing.
The console is just a frame buffer on Linux. So you can go as fast as basically the bus and gpu blitter can go. Cool program, I really enjoyed the video.
my only criticism is that if were to see the ball after it goes off the screen, it would just stay on the ground while shifting right forever. you would need to add another dampener for the vel.x when it hits the ground. otherwise great vid!
59:00 you can skip defining the feature test macros by setting -std=gnu11 instead of c11 when you compile, that defines pretty much all of the relevant ones for you
this is probably one of the most entertaining videos in your channel. like i really enjoyed it lol. hope you can do more of small and simple stuff like this one.
tsoding gives me zizek vibes of who wouldn't love to hear this, but he's lowkey a real role model to me. keep up the great humor, content and curiosity!
@Tscoding Daily If we were simply trying to make the circle look better, instead of comparing rows, couldn't you just print 2x chars (estimating the char height is ~2x the width)? I'm sure there's also a way to find the exact ratio and print 1or2 chars based on a max total row width. I think it would be interesting to approach the problem this way, though your row comparison solution is more elegant and already works.
In your circle function: set rSqr = r*r beforre both for loops. set yWidth = y*Width and ySqr = y*y inside y loop, before x loop. Use these values within x loop instead of calculating them x times per y iteration. Also, check that y is in range outside x loop, save a bunch of x loops.
pretty sure this will be in everyone's recommended after a while, so just wanna garantee that everyone knows I was here btw good coding for you, mate :)
Well, you take what you've learned, and try to make stuff. Along the way you will run into things you're not sure how to do. When that happens, look up references, check Stack overflow, and generally try to find a solution. As you solve those sort of problems, you will learn a lot. I don't code in c, so I don't have any resources I could send you, but there are tons of them out there. If you haven't already, look for books about programming in c. There are probably a few free books online. The more resources you find, the better chance you have of finding something that really works well for you to learn from. But there is absolutely *no* substitute for just writing code.
@@not_herobrine3752 oh, and in terms of programming techniques, learning about algorithms and data structures, algorithmic complexity, and such can be helpful.
The most beautiful/useful thing about the way these coding sessions are presented is the "thinking out loud" part. It is really helpful and interesting to see how he breaks down the problems into digestible pieces. This is probably the most important skill when writing code.
33:13
You missed the opportunity to use the (terrible) `-->` loop!
as in `while (n --> 0)`
the little arrow is cute, which is the most important factor in programming.
You must love Haskell.
@@Bobbias Indeed I do. But I also love C.
@@Bobbias But, fuck haskell
that is actually very clever haha
always go for maximum cuteness in code, most valuable metrics ^^
this is kinda beyond my current skills. But I watched it in the background simply because of how satisfying it is to see him coding and moving around the screen like mad WITHOUT using a mouse
Same
learn vim man, the amount of time you’ll be able to save is so substantial now once you get pass the initial learning curve
@@nolanpestano1798 yeah, it’s rly nice. I’m am a chemical engineering major tho. I dont have much free time to dedicate to that as of right now. But I will defo learn programming deeper whenever I have the chance to
Wasn't expecting to watch an hour and a half of someone making a bouncing ball in console today but that's where we are. It was cool to see how you approached each part of the challenge and how you problem solved your way through it! I'm sure a lot went over my head but you did a good job explaining what you were doing.
ikr, I only noticed its that long half way
Best programming content on YT, dude. Love your stuff.
The console is just a frame buffer on Linux. So you can go as fast as basically the bus and gpu blitter can go.
Cool program, I really enjoyed the video.
Your videos are so extremely entertaining. Thank you, this is what I can really call recreational programming!
my only criticism is that if were to see the ball after it goes off the screen, it would just stay on the ground while shifting right forever. you would need to add another dampener for the vel.x when it hits the ground. otherwise great vid!
59:00 you can skip defining the feature test macros by setting -std=gnu11 instead of c11 when you compile, that defines pretty much all of the relevant ones for you
this is probably one of the most entertaining videos in your channel. like i really enjoyed it lol. hope you can do more of small and simple stuff like this one.
1:25:21 "let's keep 30 [fps] to make it CONSOLE friendly" AHAHHAHA aRolf
I love how you're just talking through high level thinking on the spot.
видос как АСМР "звуки обьяснения програмиста под стук клавиш"
you could iterate from max(0,b.x) to min(WIDTH, e.x) and yau would run les times the comparison after that, minute 16:00
Pretty cool, programming in C is pretty cool
tsoding gives me zizek vibes of who wouldn't love to hear this, but he's lowkey a real role model to me. keep up the great humor, content and curiosity!
@Tscoding Daily
If we were simply trying to make the circle look better, instead of comparing rows, couldn't you just print 2x chars (estimating the char height is ~2x the width)? I'm sure there's also a way to find the exact ratio and print 1or2 chars based on a max total row width. I think it would be interesting to approach the problem this way, though your row comparison solution is more elegant and already works.
stuff like this makes me reconsider my decision to learn python or javascript
Instead of bothering with compressing the rows, could you not just expand the columns by printing every character twice?
This is damn amazing problem solving
^ It's not circumflex, it's caret. The difference: caret is character, circumflex is part of character such as ê
No! I like calling it "circumflex" and nothing can stop me doing that from now on!
@@TsodingDaily but he's technically correct, the best kind of correct...
@@TsodingDaily circumF|£X×x :D
In your circle function:
set rSqr = r*r beforre both for loops.
set yWidth = y*Width and ySqr = y*y
inside y loop, before x loop.
Use these values within x loop instead of calculating them x times per y iteration.
Also, check that y is in range outside x loop, save a bunch of x loops.
If the compiler can tell that a value doesn't change inside a loop it usually pulls it out.
The one programming channel I don’t fall asleep watching. The occasional curse word wakes me up
Idk if I’m staying for the code…or for the personality LOL
30 FPS??? First person shooter in the terminal next?
Man your channel is a gem 💎
One day, he will become the legend..
49:28 "But this is actually kind of lame." LOL
These kind of videos are very instructive ! Thanks !
LMAO “like an American handball thing”
22:08 "AN AMERICAN HANDBALL THINGY", I'm stealing this name, now that's the only way I'll call an american "football" from now on
deam i love your content! ty for teaching us
What program do you use to enlarge the area? 28:00
"I can render at 30 fps on the console ? what the fuck" some of Tsoding clips gonna make you think
pretty sure this will be in everyone's recommended after a while, so just wanna garantee that everyone knows I was here
btw good coding for you, mate :)
ive learnt a bit of c from tutorials and stuff, but how do i get to the advanced level?
Well, you take what you've learned, and try to make stuff. Along the way you will run into things you're not sure how to do. When that happens, look up references, check Stack overflow, and generally try to find a solution. As you solve those sort of problems, you will learn a lot.
I don't code in c, so I don't have any resources I could send you, but there are tons of them out there. If you haven't already, look for books about programming in c. There are probably a few free books online. The more resources you find, the better chance you have of finding something that really works well for you to learn from. But there is absolutely *no* substitute for just writing code.
@@Bobbias thats a start, thanks for the advice!
@@not_herobrine3752 oh, and in terms of programming techniques, learning about algorithms and data structures, algorithmic complexity, and such can be helpful.
Yeah, literally just make stuff lol
there definitely bodies in the basement.
Your voice is therapeutic. :)
My goodness how can you use both Emacs and Vim at once, you're a mad man
Edit: oh wait I might have mistook the bash in tmux as vim lol
American handball is totally what football should've been called but it already a thing...
Superb programmer
6:48 porn folder 8.8 gb in the bottom left?
That's creepy, lol.
59:36 yeah! wtf! hahaha
I wanna this ball in my kernel as hello world
hahah dang, one of the best coding video in yt
Ascii has art glyph in it!
Dayumm, Nice 🔥
Hey! Have you fixed the chromium bug? Have the same issue on i3wm with chromium
No, it still occurs from time to time :(
I never had this problem on i3wm, but i not sure because i remember that i had a lot of shit with it in past until i fixed all
You can play youtube too
Hi, "how about that"!
but bro what about haskell. are you leaving haskell?
Next: rewrite whole code with vulkan
Wth he so skinny now
Your english is pretty cool
Мужик , по тебе видно ,что ты русский ....))) И даже в описании ты палишься ,что из России )
I want to be a nerd like you please :(
You have my blessing. Now go be a nerd!
Hi, have you maybe discord chanel?
neat!
Look out pixar
:oops:
i feel dump :'(
Has tsoding channel died in favor of this one?
22:09 I think you meant American football haha, to be fair football is a stupid name for the sport.
1:24:34 :D
красава
Я не вижу русских
Мне кажется ты из России.