Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Teaching Programming

Thread Tools

Re: Teaching Programming

Chris Rebert
Posts: n/a
On Tue, May 4, 2010 at 8:52 AM, Stefan Behnel <(E-Mail Removed)> wrote:
> Ed Keith, 04.05.2010 17:43:
>> The PITA is having to keep track of the indentation of each embedded
>> chunk and summing it for each level of indentation. This requires a fair
>> amount of bookkeeping that would not otherwise be necessary.
>> The original prototype simply replaced each embedded chunk with the text
>> from the chunk definition, all indenting information was lost. It worked
>> for most languages, but not Python.
>> In testing the program I used two languages, Python and J.

> Well, then both of the language generators have benefited from your effort
> because the generated complete code is properly indented and therefore much
> more readable during debugging. I'd say it was worth it.

Though there are auto-re-indenting programs for curly-brace languages you know.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Teaching Programming Ed Keith Python 4 05-08-2010 04:21 AM
Re: Teaching Programming Samuel Williams Python 22 05-05-2010 10:01 PM
Re: Teaching Programming Ed Keith Python 8 05-04-2010 04:22 PM
Announcing Wing IDE 101 for teaching intro programming courses Wingware Python 0 08-03-2007 07:28 PM
teaching programming to children Python 14 12-18-2003 01:13 AM