6.4: Variable Scope - Processing Tutorial

  Рет қаралды 64,984

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 52
@jessesmits3629
@jessesmits3629 7 жыл бұрын
Dude you're a born teacher! I've binged through lesson 1 up to lesson 6 in a couple of days. It's been a while since I've had this much fun learning. Please keep up the good work!
@danielwatson6529
@danielwatson6529 5 жыл бұрын
same - thats a good few days :)
@MrFrankenweenie
@MrFrankenweenie 9 жыл бұрын
It is really a pleasure to see you enjoying so much. It's contagious your eagerness for learning! Thank you so much for these videos!
@1337asader
@1337asader 6 жыл бұрын
i dont know if you can truly understand how lucky your students are
@folkusonme
@folkusonme 2 жыл бұрын
1:59 "well conceptually we have these concepts" I love him
@paganteabreak7245
@paganteabreak7245 9 жыл бұрын
Even if I had no interest in programming... I'm sure that you would make me want to grab a keyboard and start typing!! Love your natural style and humour... I actually look forward to watching your videos and firing up Processing :)
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+Pagan Tea Break Blog/Podcast thanks so much, so glad to hear!
@bubblebath2892
@bubblebath2892 4 жыл бұрын
Please update the 'Tags ' of this video to include 'global variable and/vs local variables ' because this video should be the first one a student should see while searching with these keywords- it's just awesome
@diegoferreira3444
@diegoferreira3444 7 жыл бұрын
global is a larger local, the best explanation ever. Also wanna see u juggle
@kranefivem
@kranefivem 6 жыл бұрын
omg man its 6:24 in the morning, and i'm watching you from 10:27 morning last day, i love coding, and you my friend are the best teacher, you and my phisics teacher
@doneshom9059
@doneshom9059 5 жыл бұрын
I do not get it I will
@personthehuman1277
@personthehuman1277 4 жыл бұрын
@@doneshom9059 Don Eshom you don't get it because it's not a joke.
@oriyon1
@oriyon1 4 жыл бұрын
The best teacher ever
@speler333
@speler333 9 жыл бұрын
This shit is helping me, a lot. thanks! Even though you did this a very long time ago. Greetings from Holland!
@marianoceballos5939
@marianoceballos5939 4 жыл бұрын
I saw these tutorials like one and half years ago, didn't even have processing installed then, now I started programming as a hobby / future job and It would never have been more easy if it wasn't for you, and I'm so happy watching this videos again, hoping you are doing the greatest now. ¯\_(ツ)_/¯
@alpablo_1474
@alpablo_1474 3 жыл бұрын
One video on a day? I've seen 26 in a row :)
@flomandile
@flomandile 8 жыл бұрын
I am french and i love your video!
@tnf850
@tnf850 5 жыл бұрын
8:40 boss moment
@AcademyIISDStudent
@AcademyIISDStudent 3 жыл бұрын
there are days that i do indeed only watch 1 video a day
@ameychavekar5728
@ameychavekar5728 4 жыл бұрын
u r my programmung god
@kakuzu1233
@kakuzu1233 5 жыл бұрын
I needed this while learning the first while loop! Thank you :)
@Ddmd1789
@Ddmd1789 Жыл бұрын
Amazing video! I have to know though.. did you ever juggle and posted it on youtube? lol I'd love to see it!
@viviancui9288
@viviancui9288 8 жыл бұрын
Looking forward to the juggle!
@shivankbatra5643
@shivankbatra5643 6 жыл бұрын
lol . 5 mins ago only before watching this video i accidently declared a variable in for loop. and didnt declare it at the top nd i thought programme would not work!btw great stuff!plz reply toooooo!
@j3226
@j3226 8 жыл бұрын
I'd love to see that juggling too! (I juggle as well)
@sanderf13
@sanderf13 4 жыл бұрын
I don't understand why the code at 7:08 doesn't work. If x = 0 at the start it is less then width and it shoud execute the loop untill it's bigger then the width.
@Anton-wc7lb
@Anton-wc7lb 4 жыл бұрын
+1
@bubblebath2892
@bubblebath2892 4 жыл бұрын
Same here , I didn't get why x should always start with 0 (even if its 20 = its still < width i.e 400)
@NiLem98
@NiLem98 3 жыл бұрын
@Sander Van den Broeck @Anton @Bubble Bath Hey guys :) I don't know, if you figured it out, but here's the answer: background is redrawn after frame 1. Now the explanation: In the first iteration of draw() x is 0 at the start and 400 in the end. Now starts the second iteration of draw(), so the first thing that's done, is that the background is drawn, which means the lines from the previous iteration are gone. When it comes to the while loop x is still 400, so it doesn't even jump in there. So actually the lines are there for the first frame (which you can't see at 60fps, probably not even at smaller framerates).
@sanderf13
@sanderf13 3 жыл бұрын
@@NiLem98 Thanks, initially i just moved on thinking it was just a 'processing-thing'
@NiLem98
@NiLem98 3 жыл бұрын
@@sanderf13 Glad I could help :)
@laurenmeenhorst8046
@laurenmeenhorst8046 5 жыл бұрын
Say you’re making a game with multiple screens. You need an x, y, width and height for multiple functions in each screen. Is it possible to localize your variables in each screen?
@shakthivinaya
@shakthivinaya 3 жыл бұрын
I don't understand why it doesn't show output when x is declared global. Can you please explain? I see the while loop is valid the first time since x< width and shouldn't it keep looping till x= width to produce an output?
@hispantrapmusic301
@hispantrapmusic301 2 жыл бұрын
@Muhammed_English314
@Muhammed_English314 2 жыл бұрын
A year late, but anyway. x becomes too big and the condition if false so it works for the first frame of draw() but never again, and the background (0) wipes it.
@natalieheinze8715
@natalieheinze8715 3 жыл бұрын
I need to build a Border so that my object won't leave the frame. I know about the bouncing ball, but how do I transfer this effect on two playable objects? I programmed a visibale border, but she is doing literaly nothing....
@colemasuno5650
@colemasuno5650 4 жыл бұрын
I always laugh at your jokes. THANK U
@rickperez8975
@rickperez8975 3 жыл бұрын
Why is width and height not local
@36degreesMars
@36degreesMars 4 жыл бұрын
I actually do watch one video per day :P i''m THAT lazy
@AntiChris
@AntiChris 7 жыл бұрын
"Isn't global just a larger local?" I cringed, lol.
@2muchofyou
@2muchofyou 3 жыл бұрын
dudes like the Riddler. hopefully without the murders ...
@danielwatson6529
@danielwatson6529 5 жыл бұрын
only one criticism, you seriously need to work on your "pop-up" transition hehe - timing
@corvettefunstudios
@corvettefunstudios 6 жыл бұрын
This guy does not look like he's 40 lol
@threeelancer
@threeelancer 3 жыл бұрын
Isn't global just a larger local? lol
@corykilpatrick1175
@corykilpatrick1175 6 жыл бұрын
I swear I'll learn something as soon as I stopped giggling like an idiot.
@batman_1st
@batman_1st 7 жыл бұрын
The first one minute is a waste of time
@zeldajerk
@zeldajerk 6 жыл бұрын
You can speed it up. I find it amusing to see him hyperventilating and it definitely helps when it seems like it's a bit slow.
6.5: Loop vs. Draw - Processing Tutorial
6:32
The Coding Train
Рет қаралды 84 М.
4.1: Variables - Processing Tutorial
19:02
The Coding Train
Рет қаралды 197 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН
Global Variables in C++... not as easy as it seems
18:25
The Cherno
Рет қаралды 66 М.
Variable Scope
6:26
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
6.1: While Loop - Processing Tutorial
11:15
The Coding Train
Рет қаралды 217 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 139 М.
5.5: The Bouncing Ball - Processing Tutorial
11:24
The Coding Train
Рет қаралды 233 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 157 М.
A New Era for C and C++? Goodbye, Rust?
9:08
Travis Media
Рет қаралды 115 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1 МЛН