Re: Teaching Programming

Discussion in 'Python' started by Chris Rebert, May 4, 2010.

  1. Chris Rebert

    Chris Rebert Guest

    On Tue, May 4, 2010 at 8:52 AM, Stefan Behnel <> 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.

    Cheers,
    Chris
    --
    http://blog.rebertia.com
    Chris Rebert, May 4, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    14
    Views:
    548
    Sean Ross
    Dec 18, 2003
  2. Wingware
    Replies:
    0
    Views:
    392
    Wingware
    Aug 3, 2007
  3. Samuel Williams

    Re: Teaching Programming

    Samuel Williams, May 3, 2010, in forum: Python
    Replies:
    22
    Views:
    607
    Martin P. Hellwig
    May 5, 2010
  4. Ed Keith

    Re: Teaching Programming

    Ed Keith, May 4, 2010, in forum: Python
    Replies:
    8
    Views:
    238
    Dave Angel
    May 4, 2010
  5. Stefan Ram

    Teaching Java, teaching what?

    Stefan Ram, Dec 8, 2013, in forum: Java
    Replies:
    57
    Views:
    539
    Ali Sh
    Dec 18, 2013
Loading...

Share This Page