Lurker News
I'm making a coloring book of data structures and algorithms for programmers and students. So far I have a prototype page for a sorting algorithm (albeit a rather simple one).

Here the Selection Sort coloring pages you can print. https://coderscoloringbook.com/selectionsort
And here is how I colored mine. https://coderscoloringbook.com/selectionsortcolored
A coloring book is not quite enough to teach algorithms on its own, but I really get a lot from visual reinforcement of what I learn from books/lectures.
Do you think having coloring pages like this could be a helpful addition to the usual studying approach of textbooks, lectures and online coding practice?
Or is it just a fun little break from coding without too much educational value?

Comments (105) 28 threads

tw101012 replies#
I'm writing this off-the-cuff so don't read too much into it if you don't want to.

I love this trend of using comics to describe technical ideas (which, as far as I can tell, started in earnest with Julia Evans). I think it's a great way to remove some of the scaryness-factor that more serious tomes (like Cormen et al) are associated to. I don't think the niche is nearly reaching oversaturation. I think there is plenty of room for these kinds of books in this space. Personally, however, I probably wouldn't get much value from a book on the very basic algorithms, like selection sort etc. What I really would like is a good description of the algorithms and data structures that are described in more advanced courses, like Fenwick trees or the stuff Erik Demaine talks about in his more advanced presentations.
If you're not aiming for this to be a book for people who're accustomed to the basics, however, and more a book for people who maybe know how to code but who identify themselves more as practitioners than as theorists (meaning they're intimidated or bored by algorithms) then my main reaction is that the thing you've shown so far seems to (1) have a great visual appeal, but (2) suffers in that it does not provide implementations of the algorithms in actual code. If I think back to myself as a beginner, what I probably would have needed help with looking at your thing would have been the translation from the example and little pseudo-code on the left to actual code.

frwntfwtr1 reply#
Thanks so much for the feedback! I think you're right that something like this would be a better learning tool for someone who is new to the fundamentals, rather than experienced software professionals. And I've heard from a few people now about adding code/pseudocode to match the visuals. I'll have to give that a try in the next iteration!
chdej#
I prefer the visual representation. I find algorithms very hard to read as code, but I'm fascinated by the concepts.
munificent6 replies#
> I love this trend of using comics to describe technical ideas (which, as far as I can tell, started in earnest with Julia Evans).

Julia deserves a ton of credit, but I think it's also important to remember whytheluckystiff's "Poignant Guide to Ruby" [1]. Going even farther back, Forrest M Mims' electronics books [2], which I remember being sold in Radio Shacks, get much of their fame and familiarity from being hand-written.
[1]: https://poignant.guide/ [2]: https://www.amazon.com/Getting-Started-Electronics-Forrest-M...

fish_fan#
I remember this going back at least to The Little Lisper, though they more accompany the text than serve as explanations themselves. The aesthetic certainly leaks into the lessons.
fapjacks1 reply#
Forrest Mims III taught me electronics as a teenager. Also Larry Gonick really rounded out my rusty calculus knowledge with his "Cartoon Guide to Calculus" [0] This is just the product page, no stupid referral on the link.

[0] https://www.amazon.com/Cartoon-Guide-Calculus/dp/0061689092

humanrebar1 reply#
I was about to post Gonick's guide to physics. Fantastic series.

Continue this thread — 1 reply

warvair#
Also, "Starting Forth" by Leo Brodie is the earliest computer-related version of teaching with comics I can remember reading. It came out around 1981 and you can find an online version (including most of the original illustrations) here: https://www.forth.com/starting-forth/0-starting-forth/
cyphar#
There's also the SELinux Colouring Book by Dan Walsh and Mairin Duffy.
mattstonebraker3 replies#
To expand on this from the perspective of a student, I primarily study mathematics but will be pursing a double in math and cs, and I actually enjoy very rigorous (what some people may call dry or intimidating) textbooks in both fields because I am generally quite pedantic. However, that being said, I would love a book like this not necessarily as a main source of the actual information I am learning, but rather as a fun visual aid or activity because I like coloring and actually do it rather often. Further, I think active engagement could provide other kinds of benefits. As the parent comment noted, pictures themselves may not teach you the algorithm in its entirety from scratch, but in interview situations, I can see the possibility of getting tripped up on things that you maybe "kind of" know the answer to, and having vivid diagrams or models in mind that you can jump to (e.g. these pictures) may help with things like recall. I actually find things like this to be immensely helpful in every class, from using mnemonics for memorizing Hiragana, Katakana, and Kanji to breaking down complex proofs of math theorems into discrete memorable steps to give me an intuition for why and how things work, etc. I think this could both be a great supplemental tool for certain kinds of students as well as a very fun book to color in! I will certainly buy one if this idea comes to fruition.
frwntfwtr#
I agree on all counts. Thanks for the support!
frwntfwtr#
Oh, forgot to mention if you want me to notify you when the book comes out, I put together a simple mailing list at coderscoloringbook.com. Thanks
infinite8s2 replies#
I think it started earlier (around 2008) with Scott McCloud doing a comic describing the architecture of the (then newly introduced) Chrome browser, especially the innovation of running each tab in a separate process - http://www.scottmccloud.com/googlechrome/
moongu#
glad to learn about him! i appreciate the artistically inclined visually explaining technical things. i also love randall munroe (xkcd author)'s thing explainer.
jonjacky1 reply#
Roger Kaufman's FORTRAN Coloring Book was published by MIT press in 1978.
szc#
Yes! Touted on the cover as the "1st & last edition".

There are two versions of page 111, with an apology (and an apology for the apology) if you thought the first was offensive.
There is also Illustrating Basic (1977) and Illustrating FORTRAN (1982) by Donald Alcock from Cambridge University Press. [edited to fix publishing dates]

joshdance1 reply#
Do you have a link to Julia's stuff?
jberry931 reply#
When it comes to comics, No Starch Press (https://www.nostarch.com/catalog/manga) has manga/comics that describes advanced ideas in a fun way. A Manga Guide to Algorithms and Data Structures sounds like a great addition to the collection
frwntfwtr2 replies#
Actually the founder of No Starch reached out to me about publishing this book. Will definitely be following up with him =)
cbzehner3 replies#
I'll buy it. Please do! I really like the idea of being able to share this with people just getting started who find algorithms intimidating (we're not all math double majors :P). It probably can't serve as a primary source of material but is a great supplement.

Grokking Algorithms by Aditya Bhargava is something I skim for fun occasionally and this seems like a great complement!

Continue this thread — 3 replies

Continue this thread — 1 more reply

Continue this thread — 5 more replies

tsumnia2 replies#
I don't see myself coloring the pages in; primarily as I wouldn't want to use up any resources. Granted, I'm a 30+ PhD student, so I might not be the targeted market. The only things I have of differing colors are dry erase markers.

For a (much) younger audience, I could see the teacher buying this, but in that breath, they are always looking to not spend a lot (or any) money on supplies, so a $30-40 coloring book for something that they could find a free alternative online isn't worthwhile. But, $1-5 per concept might be worthwhile.
I do, however, love the visualization of your coloring of the page. This could work via writing the book in a visualized "worked example" format, which is how I worked through the data structures course I taught over the summer.
In that light, I can see it being very similar to something like Grokking Algorithms [1], which I did buy because I enjoyed the idea of visualizing the algorithms (for my students and my own edification).
Final note if you went that route is be mindful of colorblind customers and look to include something like a pattern difference as well (maybe angle of coloring the block?).
Overall, I love the idea; my research focus in effective means of conveying concepts to students, so I'd love to stay informed as you work through it and might be tempted to use whatever you tricks you provide as additional exercises when I teach again.
[1] https://www.amazon.com/Grokking-Algorithms-illustrated-progr...

frwntfwtr1 reply#
Thanks a lot for the input. It's super useful to hear a different perspective on the idea. I have no clue how much something like this should cost and will probably wait until it's closer to finished before deciding.

I think your idea about providing colored examples is good and have heard it from a few people now so that's definitely worth looking into.
Also I am red green colorblind so thanks for keeping people like me in mind! I'll have to remember to stay mindful of that.
Cheers

tsumnia1 reply#
Not problem! In my first programming class years ago, I made an assignment about probability with colored cards; one of my students told me he had to cheat because he was colorblind and since then I've done my best to think about those aspects.

Plus a good friend of mine has written numerous books on educational materials for deaf child, so whenever I talk about CS education, she reminds me to keep these types of disabilities in mind whenever I design new material
> I think your idea about providing colored examples is good and have heard it from a few people now so that's definitely worth looking into
It's something I don't think we have a lot of in CS education currently; a current platform I'm building is solely to provide almost a dozen types of exercises (fill in the blank, explain the code, hell even typing exercises) to give students the practice (I feel) they miss out on.
Coming from a martial art background, any technique we learn, we get to drill more than once and we aren't expected to beat MMA fighters after 1 lesson. I view the brain like any other muscle, in that with practice, you get better. My job as an instructor is to make sure you stay motivated and don't learn the wrong way.

frwntfwtr#
You're so right with the analogy to physical training. Practice makes perfect. Also, I don't think its any coincidence that trainers of professional athletes often vary up their regimens with mental exercises. I think both types of people should diversify their training.

Could you expand on what you mean by "make sure you... don't learn the wrong way"? If you'd rather email me, I'm at levi -at- coderscoloringbook.com.
Cheers!

Zanni1 reply#
Seconding the the notion that your colored-in example is a fantastic addition and should be included. I had thought of this in terms of The Anatomy Coloring Book where the coloring is mostly a way to engage with the visual material in a physical way, which aids recall. But your specific coloring actually highlights the algorithm in an effective way, making it more clear - and I can see that a teacher might be able to quickly glance at a student coloring and see that they did not grasp the concept (by, say, using a distinct color for each block number throughout, showing no progress through the algorithm). Your annotations are excellent as well, and the whole thing serves as a great model of how such a book should be used. Great stuff.
frwntfwtr#
Wow, thanks for the praise! I hadn't heard of The Anatomy Coloring Book before and it looks/sounds a lot like what I have in mind for this book. Thanks a lot for mentioning it. Also, I think you nailed it with "the coloring is mostly a way to engage with the visual material in a physical way, which aids recall."

If you have any suggestions for improvements or content feel to let me know. And I'm always looking for "beta" testers of the book =)

mrexroad2 replies#
another thing you may find inspiration from are algorithm visualizations referenced or created by Edward Tufte [1]

"Excellent sparkline-like graphics from Robert Sedgewick, Algorithms in C (1998)
Sparklines and sparkline-like graphs can also move within complex multivariate spaces, as in these 9-step sequential results (reading down the columns) in merge-sorting 5 different types of input files. Four variables and 18,000 numbers are depicted in these small multiples.
https://www.edwardtufte.com/bboard/images/00027o-2539.jpg
Here are the results of 7 sequential passes to sort a 200 element file in bottom-up merge sort:
https://www.edwardtufte.com/bboard/images/00027o-2540.jpg
These merge-sort images above are a bit large in order to accommodate the resolution of a computer screen. But this material can achieve sparkline-resolutions when printed out on paper.
-- Edward Tufte"
[1] https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=...
[edit: formatting]

frwntfwtr#
Wow, thanks for the references. They definitely lend themselves coloring, that's for sure. I'm always interested in seeing new visualizations of common algorithms.
ijidak2 replies#
This is excellent. I'm starting up a coding school and would love something like this.

I think something like this is critical for persons learning how to code that don't have a strong math background.
Of course they'll need to graduate to more formal methods of learning, but this would help them to get an initial context before the more formal study starts.
I don't think this would be an enormous money maker, just because it would have a very niche audience.
But you might consider having it printed and distributed on Amazon and anywhere else you can easily distribute this in formal/printed book format.
If you want to do it anyway, you might as well get some residual income from it.
I could see people paying $30-40 for a book that teaches all of the major algorithms and data structures in this manner.
EDIT: I'd easily pay $30-40 per student of mine for a book like this. This is the hardest part, I think, of making the leap into programming, grasping the abstract concepts behind algorithms and data structures. Statements, expressions, and language syntax are much easier in comparison.
Also, if you did one that covers hashing, encryption, signing, and key exchange algorithms. That could even be a separate book on integrity and security concepts in programming. And I could see that being another $30-40 maybe even $50 buy.

frwntfwtr1 reply#
I'm really glad to hear you like the idea! Thanks for the tips on getting it distributed, too. For now I should probably concentrate on making the right book =). Your suggestions for content are super helpful, too. Will definitely put those on the to-do list. Would you be interested in having the students at your coding school try out some test pages? Cheers!
ijidak1 reply#
Absolutely. As I get the school together, I'll reach out to you once I have students. :)
frwntfwtr#
Sounds great! And I'm going to be looking for "beta testers" in exchange for free books as well so let me know if you or any friends are interested. =)
ijidak#
Thank you! I'm going to read through this!

Continue this thread — 1 more reply

Load more comments