Coding Challenge #77: Recursion

preview_player
Показать описание


References:

Videos:

Related Coding Challenges:

Timestamps:
0:00 Introducing today's topic
1:46 Start coding!
2:51 Write a drawCircle function
3:37 Add recursion to the drawCircle function
5:15 Add an exit condition
6:58 Self-similar fractals
10:10 Add randomness
11:45 Have fun coding some recursive fractals

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#recursion #fractals #beginners #javascript #p5js
Рекомендации по теме
Комментарии
Автор

Wow I'm early as heck! It's dan the man! #RecursiveTrain

Team
Автор

to understand recursion, you must first understand recursion

kyloren
Автор

When the Sierpinski triangle just suddenly showed I burst out laughing :D

Twitchi
Автор

Sierpinski Triangle straight outta nowhere!

jakieboiZ
Автор

I can't believe that i actually understand all this video, is been a huge journey for me to actually learn java-script and I finally feel that i can understand it. i'm doing so much thing by me own thanks Daniel for this great channel with so much information!

DanielMuvdi
Автор

Finally found an explanation on recursive functions that actually makes sense! Love that you thoroughly explained how your code worked, how you broke it down on the whiteboard, and how you used the circles as a visual example to illustrate what happened every time the recursion happened

jaytee
Автор

The way he said '' I' m using a mac''. I don't know how to stop loving him.

ankitakesari
Автор

I don't know why but I absolutely love recursive functions. Just mind melting thinking about how a function calls itself. For me it's like thinking about infinity.

dominick
Автор

I love you, you are an amazing teacher, I'm a teacher as well, and maybe one day I'll be a 10th as good as you. Love your videos/humor/teaching style. Thank you for sharing your knowledge with us!

thosekidds
Автор

I’ve been programming as a hobby for so many years and this helped close some gaps that I had in my recursion thinking. How you mentioned it’s a loop, which I already know but not I just think of it as when the recursive function comes in it just redoes the function from the beginning like in a for loop. Of course need exit conditions too

kossboss
Автор

You should make a new series-something like Coding shorts which introduce an idea like recursion or 10print and let us the community build on the idea you provide.

sarangs
Автор

#RecursiveRainbow would have been perfect.

but, you know...

sadhlife
Автор

I am so glad I found this video. I had a programming teach last year call recursion magic and told the class not to think about it. fractals I can wrap my head around magic I can't. I finally understand recursion, thank you!

lizardkeeper
Автор

Your channel is so motivation!
As an adult you are playing with the code blocks like a child with his toy blocks to build great projects ... Go on!

Lyrik-Klinge
Автор

Nothing but good spirits and great learning on this channel

mmbower
Автор

Is it possible to add z axis to the fractal?🤔
It would be amazing to visualize it in 3D😍

arshadjaveed
Автор

Увидеть треугольник Серпинского было неожиданно)

TGrod
Автор

I remember when coding challenges were like "I'm going to do that and try in 10 minutes".
Now there isn't even a timer anymore :/

sven_
Автор

I love your videos! You are always so animated and lively. Very inspiring! One question - you promote a lot of 'Coding Rainbow' and other things rainbow related. Do you identify as part of the community as well?

jank-official
Автор

No recursion, less lines :)
Btw, nice video ;)

var sw = 300; //start width
var mw = 2; //minimal width

for(i = 0; (sw / Math.pow(2, i)) > mw; i++)
for(j = 0; j < Math.pow(2, i); j++)
ellipse((sw / Math.pow(2, i))*(1+2*j), 300, sw / Math.pow(2, i));

krystofpiorecky