Coding Challenge #3: The Snake Game

  Рет қаралды 3,401,341

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 3 500
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
If you want to know what happened during "technical difficulties"! kzbin.info/www/bejne/r4ayY5WNm6eahJo
@dixoncyprian8633
@dixoncyprian8633 5 жыл бұрын
cool bro
@ICantScale90
@ICantScale90 5 жыл бұрын
So fast😮
@Nurutomo
@Nurutomo 4 жыл бұрын
Why not using "shift()" "unshift" "pop()" "push()"?
@nugs2727
@nugs2727 4 жыл бұрын
NsG Frantic just copy him but this is how Function setup() { CreateCanvas(400,400) } Function draw() { background(51) } This is in java script. If you wanna know in a different language than you can watch a tutorial video Edit: function draw is optional, it just changes the background colour or if you wanna draw a circle or a square
@pratigyasingh317
@pratigyasingh317 4 жыл бұрын
Wow wow wow
@thelavagod
@thelavagod 11 ай бұрын
Hey there Daniel, It's me in 2024. Back in 2017, I discovered this video and this was where my programming interests began. I first started off by learning JavaScript (because it was the language you were using) then Python, a bit of C++, Java and Ruby and I went into more advanced stuff such as Logic, and how programming languages work, and computer science. I learned how to code in Visual Basic, as well as learning about the parts of PC, the basic input devices, the BIOS, and more. All because I discovered this video of yours. I cannot find the words to express my gratitude to you.
@TheCodingTrain
@TheCodingTrain 11 ай бұрын
Thank you for sharing this, I'm so happy to hear!
@lakhaidir9284
@lakhaidir9284 9 ай бұрын
Woah, despite 7 years later you're still replying comments tho. Respect...
@Warm_Ice0
@Warm_Ice0 8 жыл бұрын
Anyone get this guy randomly recommended to them? Im loving it.
@tarkin843
@tarkin843 8 жыл бұрын
Daniel Esen J. Oliviėr Yes
@YellowKiwi11
@YellowKiwi11 8 жыл бұрын
Daniel Esen J. Oliviėr I think KZbin can read my mind ;)
@diyansueka3192
@diyansueka3192 8 жыл бұрын
Yes
@عبدالحليم-و3ه
@عبدالحليم-و3ه 8 жыл бұрын
yep...i want to learn how to programme and how to code :/ and then this guy comes out :D
@Hanzi2u
@Hanzi2u 8 жыл бұрын
Daniel Esen J. Oliviėr yes i just watched the purple rain video by him
@captstrugglebunny
@captstrugglebunny 5 жыл бұрын
It is pretty amazing that a game that was once considered good enough for commercial distribution in arcades became a time waster pack-in on cellphones, and then finally a 30 minute coding tutorial.
@chonkydog6262
@chonkydog6262 2 жыл бұрын
I'd pay a quarter to play snake
@bleepboop
@bleepboop Жыл бұрын
The framework does some pretty heavy lifting here compared to 1976-versions
@shanewalsch
@shanewalsch 11 ай бұрын
​@@bleepboopthe main loop and drawing. Its not that hard to implement yourself
@rdevan3245
@rdevan3245 8 ай бұрын
​@@shanewalschcool. Now try it with the technology that was actually available in 1976 lmao
@dennisvargas7719
@dennisvargas7719 8 жыл бұрын
do call of duty next
@radecreative6620
@radecreative6620 8 жыл бұрын
In 15 years 😂
@Jorolfs
@Jorolfs 8 жыл бұрын
KZbinr shots fiyerd :P
@Robert_199
@Robert_199 8 жыл бұрын
too easy
@johnsims9907
@johnsims9907 8 жыл бұрын
Like from the ground up writing an effects engine and everything?
@slowdragon4169
@slowdragon4169 8 жыл бұрын
lmao
@hackwise
@hackwise 8 жыл бұрын
You totally earn my respect , you are a great programmer and mentor, thanks for all your videos.
@um_idkw
@um_idkw Жыл бұрын
252 likes and no replies, I honestly don't care.
@wifeless
@wifeless 5 жыл бұрын
Damn! This video is almost 3 years old and you're still responding to comments? Saw you in my recommended and found the video super interesting. Thanks!
@sujatha.a9702
@sujatha.a9702 4 жыл бұрын
😂
@bodharajdahal4855
@bodharajdahal4855 4 жыл бұрын
😁
@the_neto06
@the_neto06 4 жыл бұрын
this comment had 666 likes lmao
@xuxavier6924
@xuxavier6924 4 жыл бұрын
4 years now lol
@risab6218
@risab6218 4 жыл бұрын
Still responding....
@AjeetSingh-xq4yb
@AjeetSingh-xq4yb 8 жыл бұрын
dont know why this channel appeared in my recommended, clicked on 1 video and have been browsing for hours now. This makes we want to learn to code.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Ajeet Singh I'm really wondering why it's being recommended too! Lots of new viewers thanks for the comment. (Take a look at my foundations of JavaScript playlist if you want to learn from the beginning)
@phinix827
@phinix827 8 жыл бұрын
haha got it recommended too :D i haven't watched many of such videos :D but VERY nice :D I mean i watched nearly the hole video even if im not into coding :D
@johnpyp
@johnpyp 8 жыл бұрын
Just appeared in my recommended as well, maybe because I have been learning to code, but I love these videos!
@alephbet6265
@alephbet6265 8 жыл бұрын
this appeared on my recommended because i learn python
@Dylan5246
@Dylan5246 8 жыл бұрын
X-Core Aleph but this is javascript
@JordanShackelford
@JordanShackelford 8 жыл бұрын
at 12:23 instead of writing out "if (d
@DareDevilPhil
@DareDevilPhil 8 жыл бұрын
Jordan Shackelford true, however that function is later modified to increment this.total
@JordanShackelford
@JordanShackelford 8 жыл бұрын
He explained in another vid that he does this on purpose to make code more readable. just letting you guys know there's another way
@sloppyy
@sloppyy 8 жыл бұрын
scrolled down to see if anyone had said this already
@Yopi69
@Yopi69 8 жыл бұрын
Ivan Dobrev a
@MineMoore
@MineMoore 8 жыл бұрын
Chris Pierce hi Chris pierce big fan
@NiiAnikin
@NiiAnikin 5 жыл бұрын
just jumped on the javascript/coding train and I'd love to say, this is the most useful video, I have seen to date. I know enough to understand the basic mechanics of whats going on here but seeing this implementation and real time description is super awesome and very useful. Big thumbs up
@camelcase9225
@camelcase9225 8 жыл бұрын
Seriously wish I could code like you. I can think of what I need to do but can't implement it as effectively as you can. I just found this channel randomly and am loving it! You're very entertaining.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
so nice to hear, thank you!
@Savage_Gamer777
@Savage_Gamer777 7 жыл бұрын
Radbeh Yousefi you don’t need college.
@derronwhite375
@derronwhite375 6 жыл бұрын
I wish i can code like him too
@meanstreak110
@meanstreak110 6 жыл бұрын
The Coding Train Ha! You're a narcissistic person. At least in this comment you are...because I thought you were gonna help him out....but no. You don't care :( Edit: I've seen enough of ur content to know that you just care about yourself. #NARCISSISTIC-af
@Guevara1015
@Guevara1015 6 жыл бұрын
nah, he's a lovely guy. He posts videos on basically everything related to coding (mostly Processing stuff). I've probably seen more of his content than you do so I know he's just a great guy sharing his love for programming. He isn't google. If you need answers to a specific problem, let me inaugurate you into the upper class of programming: StackOverflow. your welcome
@Lamarsh67
@Lamarsh67 8 жыл бұрын
I've been feeling bummed about my coding ability lately because I'm entering the final year of my university degree and university has been such an awful experience for me. I decided to attend a technical institute next year and complete a two year program for a computer systems technology diploma. Initially seeing this video made me sad because I know I'd never be at your level but when you didn't complete it in the time limit and had so many other things to solve after the fact, it just resonated with me so much and I felt the exact same feelings when I'm working on a difficult assignment. You have that initial clarity and almost simplistic idea of the assignment but then you start coding and the devil really is in the details which only becomes apparent the more you code. Thank you for being so inspiring and I really want to commend you on your skill as a programmer!! Cheers.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
love this comment!
@The_Foreman
@The_Foreman 5 жыл бұрын
"Hello and welcome to what today will be a 15 minute coding challenge" *Looks at video length* Uh huh....
@forest3064
@forest3064 4 жыл бұрын
Well, work expands to fill the time given.
@abdelrahmanmohamed6701
@abdelrahmanmohamed6701 4 жыл бұрын
He takes more time to explain for us We appreciate your efforts 🙏😊😘
@Melvin420x12
@Melvin420x12 4 жыл бұрын
Basically every project ever
@k-vin2073
@k-vin2073 4 жыл бұрын
@@abdelrahmanmohamed6701 indeed
@dm8dd
@dm8dd 8 жыл бұрын
genius, haven't coded for 15 years, tempted to have a go again. thanks bro!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for watching!
@ALLCAPS
@ALLCAPS 7 жыл бұрын
I love how you fucking start from a CHALLENGE but then you shift into this in-depth tutorial and omg I LOVE HOW YOU TEACH
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Heh, thanks for the feedback. :)
@ALLCAPS
@ALLCAPS 7 жыл бұрын
I wish I was as fluent as you are in the Java script, and Java language. I'm currently in school for programming, and will aim to be a senior-software engineer one day.
@Horse-tradeEu
@Horse-tradeEu 2 жыл бұрын
Story of every programmer, will finish by tomorrow. Three years later... Thank you man, I am learning so much!
@k2k4
@k2k4 8 жыл бұрын
so i spend 4+ hours trying to understand and copy verbatim what another person did to make snake in a youtube video, and you get it done in like 25ish minutes. Absolutely brilliant coding skills dude.
@quantumvac7737
@quantumvac7737 8 жыл бұрын
Him Talking : 15 minute challenge On-screen Bar : 10 Minute Challenge Video Length : 30 Minutes Me : Seems Legit.
@jonathanmorrison8223
@jonathanmorrison8223 6 жыл бұрын
15:25 lol
@kingfoxx6697
@kingfoxx6697 6 жыл бұрын
😂😂
@skilz8098
@skilz8098 4 жыл бұрын
I agree I can probably write the code in about 15 - 20 minutes to solve a problem, but it will probably take 2-3 times that to fix compiler errors and to debug it! Then again I don't use Java, I'm accustomed to C and C++, rarely C#... I did start to learn Python and that I don't mind, Python is pretty decent, Java eh... Now, JavaScript isn't too bad, but it takes a bit to get accustomed to it but I don't do much "web development". I word on the backend, libraries, interfaces, 3D graphics or rendering engines, etc... I do a bit of hardware emulation, etc. This is why I prefer C/C++!
@mattwayne9128
@mattwayne9128 3 жыл бұрын
@@skilz8098... Wrong thread? I don't believe what you just said is relevant to anything in this comment section.
@FelixxFelixx-tt7sf
@FelixxFelixx-tt7sf 4 жыл бұрын
I dont know how, but in only 15 minutes, you taught me more than multiple hours of someone speaking my language
@ChuckNorrisRullZz
@ChuckNorrisRullZz 8 жыл бұрын
You are seriously the most entertaining person while teaching code! Wish my professors were like you. lol Been binge watching all your Code Challenges
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for the nice feedback!
@taylorhetherington745
@taylorhetherington745 8 жыл бұрын
Damn I wanna be like you, that's my New Years resolution :p - be energetic - be good at coding - wear cool shirt combos - be generally brilliant
@JessyP-h7m
@JessyP-h7m 8 жыл бұрын
Hjard Kuk so stop playing lol you lazy piece of shit :D
@taylorhetherington745
@taylorhetherington745 8 жыл бұрын
Felixpf1 I haven't played in a while, logged on today and fed my ass off :p
@armanpapa3
@armanpapa3 8 жыл бұрын
add being a cringey weeb to ur list
@taylorhetherington745
@taylorhetherington745 8 жыл бұрын
ReX - donald trump pp - uploaded a picture of a girl to ur g+ page - name is rex You're the cringey one and I've never watched an anime, apart from pokemon when i was kid
@tryhitmecs9699
@tryhitmecs9699 8 жыл бұрын
lol rekt trump got stumped
@pie7747
@pie7747 4 жыл бұрын
the best to master something is learn from mistakes, when other videos shows they' have non mistakes during program it, it's hard to understand each of the component . this is an excellent example to learn and understand parts by parts. thanks sir
@hmm-.-
@hmm-.- 8 жыл бұрын
And you just got a new subscriber :D You are amazing!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
thank you, so glad to hear!
@zakisudo9611
@zakisudo9611 8 жыл бұрын
+1:)
@Meganthamac
@Meganthamac 8 жыл бұрын
Agreed! Subbed!
@extremist0276
@extremist0276 8 жыл бұрын
Same!
@invictuz4803
@invictuz4803 8 жыл бұрын
Wow, just randomly found this video. Now I understand javascript...i think
@senpaisanchoyt5225
@senpaisanchoyt5225 8 жыл бұрын
Hey im taking classes for this and i understand this.... i think. I won't say its hard but there is alot of difficulties.
@invictuz4803
@invictuz4803 8 жыл бұрын
SenpaiSancho YT What kind of difficulties? And are you taking these class online for free?
@Yorelz
@Yorelz 8 жыл бұрын
InvictuZ try out something like CodeHs it's where I started (prior experience with Python)
@senpaisanchoyt5225
@senpaisanchoyt5225 8 жыл бұрын
InvictuZ School, we are just messing around with and programming a robot.
@ginney1032
@ginney1032 8 жыл бұрын
InvictuZ hahaha, no you don't ;)
@LapSiLap
@LapSiLap 6 жыл бұрын
You dont need a head and a tail. You can have 1 array with 1 vector in the beginning and when it grows you just push a vector to it. To update it, you will set for example index 5's position 4, 4->3, 3->2, 2->1, 1->0 and then index 0 being the head will just head whatever direction the player controls it. Update function will be much easier: // Move the tail for (var i = this.snake.length - 1; i > 0; i--) { this.snake[i].x = this.snake[i-1].x; this.snake[i].y = this.snake[i-1].y; } // Move the head this.snake[0].x = this.snake[0].x + this.xspeed * scl; this.snake[0].y = this.snake[0].y + this.yspeed * scl;
@amoiiir
@amoiiir 5 жыл бұрын
you are brilliant
@52.yusrilihsanadinatanegar79
@52.yusrilihsanadinatanegar79 5 жыл бұрын
genius
@bendertequila8881
@bendertequila8881 4 жыл бұрын
awesome! this solution is the one i was trying to do :)
@lastsecond959
@lastsecond959 4 жыл бұрын
I don't know what it says because I only know a bit (very little) of C and java, but I still give it a like.
@ahmadyogi1340
@ahmadyogi1340 4 жыл бұрын
Thank you
@chrit8519
@chrit8519 7 жыл бұрын
Love his enthusiasm when he making these video. You can tell he has so much passion for what he does.
@Yorelz
@Yorelz 8 жыл бұрын
Wow a guy that can actually keep me interested and still tell me what the stuff does
@Nightshft42
@Nightshft42 6 жыл бұрын
I didnt code in python for 2 years and now I built a working Snake game in an evening. Thanks for this!!
@TheFloatingSheep
@TheFloatingSheep 8 жыл бұрын
2:27 I'm nervous about wasting time so I'm just gonna call it "s" then brag about it for a minute. - Daniel Shiffman 2016
@mateopolanco213
@mateopolanco213 8 жыл бұрын
4 years of learning programming this challenge will probably take me a week. I'm bad
@flowolf86
@flowolf86 8 жыл бұрын
mateo polanco he prepared for it obviously...
@muhanad102
@muhanad102 7 жыл бұрын
yeah but if you did it once ...the next time you will do it in 1 day...then 50 min ...and so on coding is a language when you speak it alot you become fluent
@skylarkenneth3784
@skylarkenneth3784 6 жыл бұрын
It's a matter of doing two things at the same time: 1) Visualizing what you want a program to do 2) Visualizing how your code works line by line In other words, debugging as you code. The big takeaway from this is having a good spatial memory or abstract thinking.
@StelznerGaming
@StelznerGaming 4 жыл бұрын
As someone who just got into coding I am so happy I just found your channel. Love your passion!
@job2k656
@job2k656 8 жыл бұрын
I'm currently in college and just finished the second semester of my program where we covered basic JavaScript. I'd love to have you as a teacher for JS. The classes would be hilarious and highly educational. I'll have to settle for the videos, which are also great! Cheers.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+job2k6 Thanks for the nice feedback!
@burzumumbra
@burzumumbra 8 жыл бұрын
+job2k6 I support dat thought, at my colleger they didn't teach JS or nothin related to web.
@tim..indeed
@tim..indeed 8 жыл бұрын
+Ronald Flores That's weird. What did you study?
@burzumumbra
@burzumumbra 8 жыл бұрын
+Tim Fischer Computer Ing.
@juleslardon3036
@juleslardon3036 8 жыл бұрын
how gome i enjoy watching you code but i dont accually know how to code :P
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+TheBaconGamer that is amazing to me. Go back and watch my intro to JavaScript playlist and learn!
@juleslardon3036
@juleslardon3036 8 жыл бұрын
+Daniel Shiffman i will :D
@11ditto11
@11ditto11 8 жыл бұрын
TheBaconGamer hahaha I was thinking exactly the same
@epilefchannel9424
@epilefchannel9424 8 жыл бұрын
wow... happens the same to me lol.... i'ts fun as fuck... but no clue how to even code xD, don't even know how i got to this channel, gonna sub xD
@sigurdriseth5923
@sigurdriseth5923 8 жыл бұрын
TheBaconGamer true
@IndianGamer-qz8lf
@IndianGamer-qz8lf 3 жыл бұрын
I like how coding challenges are suspenseful, entertaining and informative at the same time 🌀
@Robertlavigne1
@Robertlavigne1 8 жыл бұрын
Wow!! just found your channel and I have to say you are a boss. No way I could do that in the time you banged it out and I do a lot of topcoder competitions. You earned my sub. I think an efficient data structure for the snake would be a circular linked list. As only the last block and first block are moving. I guess this assumes that the snake is moving one grid per time unit though which I don't remember if yours was doing. But I suppose we can leave optimizations for the C monkeys.
@BulldogMindset
@BulldogMindset 8 жыл бұрын
Definitely incredible. It definitely caught my attention ha
@NighthowlsMusic
@NighthowlsMusic 7 жыл бұрын
I love this video! It was incredibly informative and enthusiastic over something so tedious. I started to freak out at the 1 min mark. I started in Python but this has motivated me to start jumping into JS. Cheers!
@joem8251
@joem8251 5 жыл бұрын
Your tutorials are helpful. I recommend losing the time limit for most videos. A calm problem solver is more effective, applicable, and instructional. An arbitrary time limit can be meaningless without statistical metrics and a rigorous measure of problem complexity; but even then, a strong focus on time limits seems to be detrimental. Either way I appreciate your effort!
@pulisichhh
@pulisichhh 8 жыл бұрын
Dude, you code like in movies. Keep going.
@ScibbieGames
@ScibbieGames 8 жыл бұрын
Speedcell nobody codes like in movies
@andrewking9271
@andrewking9271 8 жыл бұрын
Course you can. All you have to do is penetrate the firewalls and reverse the mainframe.
@Yorelz
@Yorelz 8 жыл бұрын
Andrew King I don't even think a mainframe is an actual thing 😂 gotta love movies "code.hackperson"
@fox091
@fox091 8 жыл бұрын
Joe Biden Mainframe is an actual thing. We have one and use one at work. It's just not what you think of it as.
@EnterpriseKnight
@EnterpriseKnight 8 жыл бұрын
Don't forget to Enhance.
@MrCKay26
@MrCKay26 8 жыл бұрын
There's a neat way of implementing a snake: You might notice that none of the snake elements, except the first and the last change. So you could simply create a dequeue, and every time the snake moves, an element gets added to the head (as the snakes current head + it's speed) and an element removed from it's tail. When the snake eats the food, you simply don't remove the element from it's tail. An efficient dequeue would ensure that snake.update is an O(1) operation, as opposed to shifting which is an O(n) operation, where n is the size of the snake. Simpler and Faster code! Also all food collisions and edge collisions would need to only check the head against them, which I think you're doing already, so that's not much of an improvement. I would suggest creating a new Snake object when a collision happens however, so that it's obvious that the snake starts over.
@marlynstark341
@marlynstark341 6 жыл бұрын
Never knew JavaScript codes are so light and u can do much with so little.....
@SleazyNice
@SleazyNice 6 жыл бұрын
He is using a library that hides much of the code.
@Jackarius86
@Jackarius86 6 жыл бұрын
Raymond Cruz it isnt THAT much code that is hidden. You could do the same using canvas with exactly the same number of lines possibly less, which are also just as easy to use.
@azizalaliq8
@azizalaliq8 6 жыл бұрын
Ikr I've been using pygame and its so intensive
@smanzoli
@smanzoli 5 жыл бұрын
@@azizalaliq8 Don´t use pygame, use processing.py (just the same language as the P5 used here, but with Python instead of JS)
@tilostammwitz4226
@tilostammwitz4226 5 жыл бұрын
they aren't - this dude shows only a part of the code. As in his other "challenges" he types some code, and some kind of strange framework does things like drawing, etc. I never saw him starting a project from scratch - every time an empty window - he writes some functions, that are never called in his code and, tadaa.... some kind of fancy animation. Professionals can't learn anything from him - they can do at their own - and beginners don't understand anything. Kind of useless in my opinion.
@TheRealDexeN_
@TheRealDexeN_ 8 жыл бұрын
24:48 - look at his face :D:D:D - runs the snake backwards. - dies from it - doesn't know whats going on - realizes that the "death" really worked, because he just died by running backwards.. - realizes that it's actually impossible to run backwards in the original game AT ALL - ...? :D its actually entertaining watching you code :D
@thesmileynoob
@thesmileynoob 8 жыл бұрын
Man you are amazing! Subscribed! Also its nice that you explain stuff along the way. Keep it up.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for watching!
@maluxon5324
@maluxon5324 6 жыл бұрын
I just started to get into programming recently and i definetly won't be able to build such a code yet but im so happy that i understood 80-90% of the steps you did there. That is a great motivation ^^
@tonewipera
@tonewipera 8 жыл бұрын
You totally remind me of myself when I am solving something in the code.... talking to my self like you do to us. Neat video.
@Juke172
@Juke172 8 жыл бұрын
tonewipera that's like rubber duck debugging. Really helps :D
@BulldogMindset
@BulldogMindset 8 жыл бұрын
This was amazing lol Will definitely consider doing some of those for my channel Ha! Amazing video
@ayazahmad6378
@ayazahmad6378 8 жыл бұрын
respect..nice to see
@radioleta
@radioleta 7 жыл бұрын
Hey, John. I din't expect to find you here!
@toxanism6050
@toxanism6050 6 жыл бұрын
were you using atom
@2b4u-lmpedro14
@2b4u-lmpedro14 5 жыл бұрын
I'm trying to learn to code. The basics r so boring but I learn so much for these video your fast pace and explaining as you go really keeps me watching
@Jan-vw5cg
@Jan-vw5cg 7 жыл бұрын
I've always thought that I look/sound like I'm mental every time I explain my codes in class. Now that I found your videos I'm certain that everyone thinks I'm insane... This is like looking at a mirror.
@Aspectalice
@Aspectalice 6 жыл бұрын
Jan what class are you doing?
@fuelks
@fuelks 6 жыл бұрын
"codes" lol
@denzel3972
@denzel3972 6 жыл бұрын
Amir Noble computer science maybe
@dvnmnd5020
@dvnmnd5020 6 жыл бұрын
Arach Thou shall not pass
@Ray-jg5dj
@Ray-jg5dj 6 жыл бұрын
"Ce qui se conçoit bien s'énonce clairement et les mots pour le dire vous viennent aisément." Rough translation : "What is nicely designed is easily explained". If you have trouble explaining what one of your classes do, rethink the class.
@MunyokiKilyungi
@MunyokiKilyungi 8 жыл бұрын
Amazing dude. Please upload more videos. Can you do Tetris?
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
definitely will consider it!
@bYgfoot
@bYgfoot 8 жыл бұрын
really cool video it thought me a lot about java script I use the gamemaker engine and i'm really considering using java script
@pokortec9773
@pokortec9773 3 жыл бұрын
This is one of the best coding channels on youtube.
@EdwardGordington
@EdwardGordington 8 жыл бұрын
i want whatever this guys having lmfao.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Mazzza3 chamomile tea.
@hatben
@hatben 8 жыл бұрын
Posted on 4/20 :P
@mkmush1982
@mkmush1982 8 жыл бұрын
Daniel Shiffman more like Daniel Sniffman.. But great video!
@roychh1
@roychh1 8 жыл бұрын
meth
@iwanttodie8331
@iwanttodie8331 7 жыл бұрын
I dun bet it's Adderal
@thehomierudy1190
@thehomierudy1190 8 жыл бұрын
I've never seen anything like this and have no idea what any of this stuff means or how's he's doing it but I'd love to learn how its very interesting. you've gained a new sub
@gendawg4584
@gendawg4584 4 жыл бұрын
Despite the time limit and building from scratch. You are really great at explaining. Better then most how to code tutorials....
@kenneybohjort4314
@kenneybohjort4314 8 жыл бұрын
The adderall is strong in this one :D
@CaioDanielNunesSantos
@CaioDanielNunesSantos 8 жыл бұрын
I spent several days to do it in Assembly
@ScibbieGames
@ScibbieGames 8 жыл бұрын
Caio Daniel Nunes Santos why would you do that in assembly.. mad respect but it's not really necessary..
@CaioDanielNunesSantos
@CaioDanielNunesSantos 8 жыл бұрын
Scibbie / ǝıqqıɔS It's not necessary, but it's fun.
@CaioDanielNunesSantos
@CaioDanielNunesSantos 8 жыл бұрын
Haeral It's not a good language for everything, but it's one of the easier ones after BASIC.
@ScibbieGames
@ScibbieGames 8 жыл бұрын
Caio Daniel Nunes Santos I can understand it's fun, if you like doing that then I'm sure you'll be a great programmer. I tried to understand it . but my code never runs, but assembly is really cpu-specific which is a thing I don't like that much xD. still, MAD RESPECT
@CaioDanielNunesSantos
@CaioDanielNunesSantos 8 жыл бұрын
I'm not a programer, and I won't be. But I alays make it for fun. Follow me on Git Hub: github.com/caillouplus
@brandonnorsworthy
@brandonnorsworthy 6 жыл бұрын
"I'm going to make var s, mainly to save time.." proceeds to keep talking about var s for more time than it would've been to create var snake
@AndresHernandez-dc6ow
@AndresHernandez-dc6ow 3 жыл бұрын
I have a question what does var S do?
@kaskadouff1349
@kaskadouff1349 3 жыл бұрын
@@AndresHernandez-dc6ow i think var s is the variable where a instance of the Snake 'class' is stocked (but im not sure, and even not if it's called a class in javascript too)
@Heidjnejdihbwjdihnskdhbe
@Heidjnejdihbwjdihnskdhbe 8 жыл бұрын
Classic programmer/developer/coder ( whatever you prefer ), always underestimating the time needed. Think of a project and be like "hmm, ok I can nail this in 15 minutes", 30 minutes later, not yet finished, "why do I always do this!?!?!?!".
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+John Doe so true.
@Entertainer760
@Entertainer760 8 жыл бұрын
I'm not quite sure how I found you, but your channel is awesome! Keep up the great work! :) +1 sub
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for watching!
@gentleasp6589
@gentleasp6589 2 жыл бұрын
subCount++
@all-roundtech4872
@all-roundtech4872 5 жыл бұрын
How many of you are understanding nothing but still watching 😂😂😂
@sabirnawaz1304
@sabirnawaz1304 5 жыл бұрын
Manisha Mhetre
@supercool1312
@supercool1312 5 жыл бұрын
Manisha Mhetre me
@abbywiley6467
@abbywiley6467 5 жыл бұрын
Not me, I've been studying processingJS for months now. I understand everything he's saying. Have an outstanding day!!!
@chappie3642
@chappie3642 5 жыл бұрын
@@abbywiley6467 who cares lol, and processing isn't that hard of a thing
@abbywiley6467
@abbywiley6467 5 жыл бұрын
@@chappie3642 Good point, I agree. processing isn't that hard, I'm just prideful that I'm 12 and understand it while some people at my school don't care enough about anything to even try to do mental math and when given the opportunity, will only use the calculator.
@gnamp
@gnamp 8 жыл бұрын
If only we could pull that "technical difficulties" trick during our final exams...
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Hah!
@korujaa
@korujaa 8 жыл бұрын
Great, now do Battlefield code.
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Oh, live this idea!
@truekep
@truekep 8 жыл бұрын
in 10 minutes
@korujaa
@korujaa 8 жыл бұрын
TK TrueKep hahahaaaahahah
@FTWMFXD
@FTWMFXD 8 жыл бұрын
that works*
@justskillfull
@justskillfull 8 жыл бұрын
while(connected){ disconnect() }
@rowanburns4841
@rowanburns4841 8 жыл бұрын
Subbed, glad this was on my recommended
@solemnej6270
@solemnej6270 8 жыл бұрын
Ive only coded in computer class and i built a website that was total clickbait and it was super fun (but i cant code like this guy FeelsBadMan)
@srgiggity
@srgiggity 8 жыл бұрын
keep learning my dude. you'll get there
@adlanehichembriki1831
@adlanehichembriki1831 8 жыл бұрын
Trump Hates carrots dota fan?
@mohamedekwa3777
@mohamedekwa3777 3 жыл бұрын
I loved adding the Arabic language for translation, please continue with that, Your follower from Egypt, thank you ❤✌
@unclefkr8945
@unclefkr8945 7 жыл бұрын
Just got accepted to the CodeCamp offered by Launch Code. Super exited to learn coding and get a job as a programmer!
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Good luck!!
@unclefkr8945
@unclefkr8945 7 жыл бұрын
Thank you! Awesome videos!
@carriefulgencio8373
@carriefulgencio8373 6 жыл бұрын
How was it?
@rictoryvoyale
@rictoryvoyale 6 жыл бұрын
//Soo.. HoW did it go?
@pageone7257
@pageone7257 6 жыл бұрын
Uncle Fkr u still alive my brotha?
@Underdrummer
@Underdrummer 8 жыл бұрын
Love your energy. Great video!
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for watching!
@maaziik1166
@maaziik1166 5 жыл бұрын
Such a great video, even though I didn't understand a single word. This got me so hyped, guess I am going to start coding
@n00bie96
@n00bie96 8 жыл бұрын
1. I don't get why this popped on my recomended videos list 2. I clicked this because I'm curious (also after finishing 2 seasons of Mr.Robot and learned python 2.7 and 3 ish) 3. the fact that he's like he lost his mind and recorded this alone, gives me an image of what the average programmers look like
@glokta1
@glokta1 8 жыл бұрын
n00bie Lmao exact situation I am in. Where are you learning Python from and how far have you gone?
@n00bie96
@n00bie96 8 жыл бұрын
TechyBoyProductions what are the odds. I only took free courses from I forgot his name (zed something, look it up) also from a phone app 'Learn Python' (forgot the developer). Currently laying my fingertips on Object Oriented Programming and it's intrigued me in many ways. Also still need to memorize some syntaxes though. You?
@glokta1
@glokta1 8 жыл бұрын
n00bie Just KZbin basically. I've learned the loops and all and now I'm just practicing by looking up exercises to do. Check out Automate the Boring Stuff with Python, it's a great book to learn python. It's for free on the author's website. Oh and I think you're taslking about Learn Python The Hard Way by Zed Shaw.
@Dude-kd3ey
@Dude-kd3ey 8 жыл бұрын
Lol Mr robot brought me here too xD
@doodlemonstah5656
@doodlemonstah5656 7 жыл бұрын
him: "I don't really want to use 'death' as a variable name" me: uses death as often as possible
@pikachuu3542
@pikachuu3542 4 жыл бұрын
I dont know anything about programming but i enjoyed watching this video
@aaronsundstrom9921
@aaronsundstrom9921 4 жыл бұрын
Huwaran GT same
@BakedBrotatoChip
@BakedBrotatoChip 8 жыл бұрын
I know nothing about coding but I enjoyed watching this for some, God knows why, reason
@culpritdesign
@culpritdesign 8 жыл бұрын
Maybe you should be a coder.
@BakedBrotatoChip
@BakedBrotatoChip 8 жыл бұрын
yikes
@Surfnet47
@Surfnet47 8 жыл бұрын
BakedBrotatoChip me too!
@whoami1223
@whoami1223 4 жыл бұрын
he couldve done this in 5 minutes if he wasnt worried about the time or explaining what everything is.
@OfficialZaire
@OfficialZaire 4 жыл бұрын
In Italy they'd called him "fulminato"
@iamoneofHERO
@iamoneofHERO 3 жыл бұрын
And the moronic acting too
@siddharthswami9148
@siddharthswami9148 3 жыл бұрын
Exactly
@matiastoledo4201
@matiastoledo4201 3 жыл бұрын
He should had either focus on doing the challenge or just making a good video explaining the code as he was writing it, but still the video was simple and understandable
@georgiymalinovskiy3118
@georgiymalinovskiy3118 3 жыл бұрын
His amusing behaviour is what makes it worth WATCHING, if I need to get a quick ref - I'l check github sources or whatever.
@pnkfld7892
@pnkfld7892 4 жыл бұрын
Thanks for inspiring me to try to do this myself in cpp using sfml, I originally saw this video when it was live in 2016 and tried to implement in cpp without coming back to this vid. It was a lot of fun to practice some basic programming skills and learn a bit of sfml for graphics handling.
@violencechildren7603
@violencechildren7603 8 жыл бұрын
Challenge Recuest... Online FPS game with realistic graphics in 10 seconds please
@dazzyx3644
@dazzyx3644 8 жыл бұрын
lets give him 11 seconds just cuz he has to make it online Kappa
@Ergoperidot
@Ergoperidot 8 жыл бұрын
I'm currently 19 and thinking about majoring in computer science. I can only dream of the day I can do something like this...
@MrJeng300
@MrJeng300 8 жыл бұрын
Rin Tezuka well then start game programming as a hobby! I could make stuff like snake or simple platformers when i was 14 or so, just because i really wanted to make games! so many great tutorials and stuff online!
@MrJeng300
@MrJeng300 8 жыл бұрын
***** I'd say Java is a good start because you can make a LOT of stuff with it right out of the box, without the need for external libraries. Personally, I'd start with C nowerdays, to get a better grasp of the basics, but really, it doesn't matter as long as you do something.
@MrJeng300
@MrJeng300 8 жыл бұрын
***** I think it depends a lot on the type of person. For me, the beginning was pretty easy and I made small games with Java pretty soon. With some dedication and effort you can be coding games in like a week!
@MrJeng300
@MrJeng300 8 жыл бұрын
***** Yeah, I taught myself though and it was still a good experience. Nowerdays great tutorials on programming are everywhere! I did start with a youtube series that the creator nowerdays sells though, so it was indeed quite a good source. Anyways, you can always find help in forums and stuff if you need it!
@MrJeng300
@MrJeng300 8 жыл бұрын
***** Those drag&drop tools are a cool way for introduction, but if you actually wanna do something with programming later I would recommend learning a proper language. Many find python being a good way to start. I personally don't like python too much and started with visual basic and later Java myself, but that is totally up to you, really. You will learn more languages later anyways. If you wanna go the hard but possibly better way, I'd start with learning C. Getting a hang of pointers & memory management can be a huge boost in understanding what your code does. The biggest factor anyways, is that you do start. Make coding a habit, learn something new every week! Have fun!
@cannabisanomaly
@cannabisanomaly Жыл бұрын
What an absolute madman and even more-so, an icon. I can only hope to have an iota of your brilliance at any given time in my life
@pdrgallo
@pdrgallo 8 жыл бұрын
I dont know the first thing about programming but i really enjoyed it somehow. I like how your mind works
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Thanks for watching!
@mrcoolgoat9391
@mrcoolgoat9391 8 жыл бұрын
lmao when he turned the volume down I turned it up just before
@jfaquinojr
@jfaquinojr 4 жыл бұрын
i like this because its so realistic. underestimating tasks for each pomodoro and making (valid) excuses about 80/20 rule etc.
@phunguyenuc3747
@phunguyenuc3747 5 жыл бұрын
Oh boi, I love youtube recommendation. They brought me to this wonderful art of coding
@OakSwami
@OakSwami 6 жыл бұрын
Damn dude... You make programming so intertaining! Im gonna start watching your vids to learn and try to pass my subject. xD
@sandeepyadav-dn5sw
@sandeepyadav-dn5sw 6 жыл бұрын
funniest programmer i have ever seen , i liked it, i want to learn from you!!!!
@jimbeam9788
@jimbeam9788 8 жыл бұрын
shit this makes me anxious watching this
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
Just think about how anxious I am recording it!
@tesfaysimon2727
@tesfaysimon2727 6 жыл бұрын
⌨️ (0:00) Introduction ⌨️ (1:45) Installing Python & PyCharm ⌨️ (6:40) Setup & Hello World ⌨️ (10:23) Drawing a Shape ⌨️ (15:06) Variables & Data Types ⌨️ (27:03) Working With Strings ⌨️ (38:18) Working With Numbers ⌨️ (48:26) Getting Input From Users ⌨️ (52:37) Building a Basic Calculator ⌨️ (58:27) Mad Libs Game ⌨️ (1:03:10) Lists ⌨️ (1:10:44) List Functions ⌨️ (1:18:57) Tuples ⌨️ (1:24:15) Functions ⌨️ (1:34:11) Return Statement ⌨️ (1:40:06) If Statements ⌨️ (1:54:07) If Statements & Comparisons ⌨️ (2:00:37) Building a better Calculator ⌨️ (2:07:17) Dictionaries ⌨️ (2:14:13) While Loop ⌨️ (2:20:21) Building a Guessing Game ⌨️ (2:32:44) For Loops ⌨️ (2:41:20) Exponent Function ⌨️ (2:47:13) 2D Lists & Nested Loops ⌨️ (2:52:41) Building a Translator ⌨️ (3:00:18) Comments ⌨️ (3:04:17) Try / Except ⌨️ (3:12:41) Reading Files ⌨️ (3:21:26) Writing to Files ⌨️ (3:28:13) Modules & Pip ⌨️ (3:43:56) Classes & Objects ⌨️ (3:57:37) Building a Multiple Choice Quiz ⌨️ (4:08:28) Object Functions ⌨️ (4:12:37) Inheritance ⌨️ (4:20:43) Python Interpreter
@chrislee50
@chrislee50 6 жыл бұрын
um wrong episode
@tesfaysimon2727
@tesfaysimon2727 6 жыл бұрын
Yeah thank you
@ahsanhoomi8095
@ahsanhoomi8095 6 жыл бұрын
How!??
@Juan-fc6ng
@Juan-fc6ng 3 жыл бұрын
I know python but nothing about JavaScript and this video teached me more than a 4hr tutorial lol thanks
@jonhtte
@jonhtte 8 жыл бұрын
My mind just blew up.
@smilingalpaca1025
@smilingalpaca1025 5 жыл бұрын
I can't believe the fact that I've watched this vid a few months ago without any knowledge for programming and now I'm here again realising that he's actually using Processing, that I'm actually learning with
@mamr3496
@mamr3496 4 жыл бұрын
شكرا ياصديقي طريقة فريدة بالتعليم لقد جعلتني احب البرمجة تحياتي لك من ارض الرافدين
@granumuse7847
@granumuse7847 5 жыл бұрын
Man you are my hero!! You have coded so many things so far!!! Thank you!!!!
@Orangeszs
@Orangeszs 8 жыл бұрын
Description: Welcome to this 10 minute coding challenge. Video Intro: Welcome to this 15 minute coding challenge. Video Length: 27 minutes
@prajwalbk5725
@prajwalbk5725 4 жыл бұрын
Dude you are the best. Watched one video on making purple rain. Now I'm just addicted to your videos. :P
@Philgob
@Philgob 8 жыл бұрын
I am watching this but I literally have NO idea what's going on
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+Philgob 😁
@RAIRAIIRAI
@RAIRAIIRAI 8 жыл бұрын
same xD
@jezd2223
@jezd2223 7 жыл бұрын
same!
@devolee8302
@devolee8302 7 жыл бұрын
Not alone.. unless you have some ideas by now.. LOL!!
@nugs2727
@nugs2727 4 жыл бұрын
Can I just say something real quick, thank you, i've been trying to learn how to code for a while now and people say that you need to be a logical person to become a programmer of some sort. Well just a few seconds ago, my heart sank and it just clicked and suddenly I just realised that all of this language makes sense to me. It's scary to think about what i've really accomplished. Of course I will still need to learn java but it just clicked and I realised that I could probably take this piece of code and turn it into something other people could understand. So again thank you.
@The_Foreman
@The_Foreman 5 жыл бұрын
The pickLocation can be simplified down to: x = floor(random(width/scl))*scl; repeat for y width/scl sets the columns, random picks one, floor aligns it(drops the decimal), *scl resizes back to full scale.
@georgie1874
@georgie1874 8 жыл бұрын
you earned a sub. have no idea what is going on but I'm learning lol
@stingy1304
@stingy1304 8 жыл бұрын
Idk how i got here. But the content is bomb, so i subbed and hit the bell.
@looch95
@looch95 6 жыл бұрын
I love how much you explain your code, really helps us beginners, especially the diagrams.
@JaimewissnerCreate
@JaimewissnerCreate 7 жыл бұрын
"And I actually have a diagram", yup. That's a programmer alright.
@locrates
@locrates 8 жыл бұрын
i know nothing of code. reeeealy wanted to see it complete =/
@radecreative6620
@radecreative6620 8 жыл бұрын
Same
@T0ly113
@T0ly113 8 жыл бұрын
locrates just learn to code?
@locrates
@locrates 8 жыл бұрын
You know- Id love to learn but I'm such a slow learner. I have a couple of graphic designs for apps, one I know damn well facebook would be down to buy.. I'm simply hoping my youtube channel next year helps me be put in the position I could work with someone who really knows what they are doing to make the app possible..
@vernonalbayeros4719
@vernonalbayeros4719 8 жыл бұрын
if you want to learn at your own pace, hit codeacademy up, it's got free courses on c,c++, python and javascript. Udemy sometimes offers discounts on their courses for around 15€ if you want more advanced stuff :)
@izybit
@izybit 8 жыл бұрын
You can check freecodecamp.com for completely free coding lessons.
@codewithguillaume
@codewithguillaume Жыл бұрын
This guy is a genius.
@8bit_pineapple
@8bit_pineapple 8 жыл бұрын
Good video ^^, JavaScript looks quite fun to program in. Usually I program in C++/C and python for quick projects. I think I'll start using JavaScript in place of Python when my code needs to be a bit more object oriented :)
@theguitarmanifest
@theguitarmanifest 8 жыл бұрын
8bitpineapple actually python is better for oop since it is an object oriented language. Javascript isn't truly object oriented.
@rumble1925
@rumble1925 8 жыл бұрын
Cory, you're talking shit. It's not class based, but it is object oriented.
@Euroliite
@Euroliite 8 жыл бұрын
Jano Privracki JS isn't exclusive to running inside browser though, so it's still an option.
@Euroliite
@Euroliite 8 жыл бұрын
***** Yup. Take a look at Node.js I believe it uses Google's JS engine from Chrome.
@michaelmano7261
@michaelmano7261 8 жыл бұрын
Euroliite nodejs is exported from the browser however a lot of the devs who were the founders are moving onto golang. if you prefer things like this that are not browser specific you should check out go.
Coding Challenge #4: Purple Rain in Processing
12:14
The Coding Train
Рет қаралды 1,9 МЛН
Coding Challenge #86: Cube Wave by Bees and Bombs
30:09
The Coding Train
Рет қаралды 630 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
What was Coding like 40 years ago?
29:05
The Coding Train
Рет қаралды 1,8 МЛН
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 179 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 35 М.
Coding Challenge 171: Wave Function Collapse
1:18:37
The Coding Train
Рет қаралды 559 М.
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 158 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 443 М.
Coding Challenge #14: Fractal Trees - Recursive
15:53
The Coding Train
Рет қаралды 894 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН