Hello everyone,
The last few weeks, I've been working on tackling the problem of parse errors due to students forgetting or accidentally indenting things. This is one of the biggest challenges that students face as they get started with CodeWorld, and I can see in analyzing students' errors in practice thatr parse errors due to incorrect indentation make up around 20% of error messages students grapple with.
My intent is that, as of my latest changes, students can type an entire program in CodeWorld without ever adding an explicit indent to a line. The CodeWorld editor should be indenting for them whenever it is needed. Occasionally, (in particular if they use `where` clauses on functions) it is necessary to remove an indent, and I've ensured that Backspace is good enough to do so, and erases the entire indent at once so that the student is returned to a valid indent level.
I'm interested in feedback on the result. In particular, if you have specific cases where the indentation chosen by the editor is egregiously bad, I'd like to know about it so that I can fix it. The goal isn't for CodeWorld to match your favorite preferred coding style, but if something is awful, or especially if the default indentation doesn't compile and you need to change the indent for your code to build, then I'd definitely like to hear about it.
Thanks in advance for any feedback!
Chris