Khan / structured-blocks

MIT License
11 stars 2 forks source link

Add comment block #23

Closed jeresig closed 9 years ago

jeresig commented 9 years ago

So that students can document their code a little bit, make it more readable.

pamelafox commented 9 years ago

Example screenshots to show how useful comments can be for understanding what a program does: screen shot 2014-11-13 at 4 15 42 pm screen shot 2014-11-13 at 4 10 46 pm

jbrennan commented 9 years ago

Here’s a draft design I made a few weeks ago with comments:

tumblr_ndwmvxayum1u1b2l3o1_r1_1280

I think they’d be better if they looked a bit more draggable (either as a block or by some other way), but I think it’s also nice to have a little bit of whitespace above them (because in blocks-land we have no concept of a newline really). I also like how in the design above they’re typographically bolder to look more like they’re indicating a new section (which is what most of the code comments in our curricula do already!).