2 deleted 15 characters in body
source | link

Indentation is most often (except in certainin most languages) is just for readability (which. This aids in maintainability and other good stuff, all of which an intro student is completely unaware of or uninterested) in.

So it is best taught whenby making the student read code they have not written. (e.g. what does this code do?, etc.) So show Show them some sufficiently complex, badly formatted examples (maybe even under quiz time pressure), and let them discover for themselves that well formatted (indented) code is much easier to read and understand.

Then they will likely be a bit more interested in your description of good code formatting practices.

Indentation is most often (except in certain languages) just for readability (which aids in maintainability and other good stuff of which an intro student is completely unaware or uninterested).

So it is best taught when making the student read code they have not written. (e.g. what does this code do?, etc.) So show them some sufficiently complex badly formatted examples (maybe even under quiz time pressure), and let them discover for themselves that well formatted (indented) code is much easier to read and understand.

Then they will likely be a bit more interested in your description of good code formatting practices.

Indentation (in most languages) is just for readability. This aids in maintainability and other good stuff, all of which an intro student is completely unaware of or uninterested in.

So it is best taught by making the student read code they have not written. (e.g. what does this code do?, etc.) Show them some sufficiently complex, badly formatted examples (maybe even under quiz time pressure), and let them discover for themselves that well formatted (indented) code is much easier to read and understand.

Then they will likely be a bit more interested in your description of good code formatting practices.

1
source | link

Indentation is most often (except in certain languages) just for readability (which aids in maintainability and other good stuff of which an intro student is completely unaware or uninterested).

So it is best taught when making the student read code they have not written. (e.g. what does this code do?, etc.) So show them some sufficiently complex badly formatted examples (maybe even under quiz time pressure), and let them discover for themselves that well formatted (indented) code is much easier to read and understand.

Then they will likely be a bit more interested in your description of good code formatting practices.