DEV Community

Cover image for Recursion: An Illustrated Play-By-Play

Recursion: An Illustrated Play-By-Play

Monica Macomber on December 03, 2019

Do you ever just need to see code in action? Reading about how it works is all well and good but do you like to see a breakdown of exactly what hap...
Collapse
 
destro_mas profile image
Shahjada Talukdar

Pictures are nice.
Which tool did you use?
(I am not good at illustrations)

Collapse
 
monicat profile image
Monica Macomber

Thank you! I used Adobe XD with icons from Noun Project and iconmonstr. But if I were on a Mac I'd use Sketch.

Collapse
 
destro_mas profile image
Shahjada Talukdar

Cool, thanks 👋

Collapse
 
tomarks profile image
Thomas Markwell

Great illustrations!

Collapse
 
vaibhavkhulbe profile image
Vaibhav Khulbe

Great writeup and good illustrations!

Collapse
 
aksarben profile image
Dick Adams

I tried looking at your demo at codepen.io/mocasalter/pen/xxxNvjR?... (I'm not familiar with codepen), but couldn't figure how to run it. What am I missing?

Collapse
 
monicat profile image
Monica Macomber • Edited

I'm printing the total sum to the console and Codepen has a console button on the bottom left of the screen where you can view it 👍

Collapse
 
aksarben profile image
Dick Adams

I found & clicked the console button, but aside from the pane going white, nothing happens. What should happen?

Thread Thread
 
monicat profile image
Monica Macomber

You should see sum: 10 printing. You could try opening codepen in a different browser, that might help.

Collapse
 
dafahrni profile image
Daniel Fahrni

I have rarely encountered such a clear explanation of recursion. Thank you for this inspirational article full of passion and joy for programming (-;

Collapse
 
monicat profile image
Monica Macomber

I had a hard time finding clear explanations too, I'm so glad to hear it's filling that gap. Thank you!