Re: Programming language and IDE design

George Neuner <gneuner2@comcast.net>
Thu, 24 Oct 2013 19:57:07 -0400

          From comp.compilers

Related articles
[4 earlier articles]
Re: Programming language and IDE design genew@telus.net (Gene Wirchenko) (2013-10-21)
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-10-22)
Re: Programming language and IDE design DrDiettrich1@aol.com (Hans-Peter Diettrich) (2013-10-23)
Re: Programming language and IDE design wclodius@earthlink.net (2013-10-22)
Re: Programming language and IDE design bc@freeuk.com (BartC) (2013-10-23)
Re: Programming language and IDE design monnier@iro.umontreal.ca (Stefan Monnier) (2013-10-24)
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-10-24)
Re: Programming language and IDE design martin@gkc.org.uk (Martin Ward) (2013-11-07)
Re: Programming language and IDE design gah@ugcs.caltech.edu (glen herrmannsfeldt) (2013-11-08)
Re: Programming language and IDE design DrDiettrich1@aol.com (Hans-Peter Diettrich) (2013-11-08)
Re: Programming language and IDE design gneuner2@comcast.net (George Neuner) (2013-11-08)
Re: Programming language and IDE design jthorn@astro.indiana.edu (Jonathan Thornburg) (2013-11-10)
Re: Programming language and IDE design martin@gkc.org.uk (Martin Ward) (2013-11-16)
[11 later articles]
| List of all articles for this month |
From: George Neuner <gneuner2@comcast.net>
Newsgroups: comp.compilers
Date: Thu, 24 Oct 2013 19:57:07 -0400
Organization: A noiseless patient Spider
References: 13-10-016 13-10-022 13-10-031
Keywords: tools, code
Posted-Date: 24 Oct 2013 22:52:47 EDT

On Thu, 24 Oct 2013 10:55:09 -0400, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:


>>> Similarly foolish wisdom is seen in IDEs (Integrated Development
>>> Environments) which allow the programmer to create hundreds of lines
>>> of code with just a few clicks of the mouse. Thus instantly creating
>>> a significant maintenance effort.
>
>> 99% (or more) of generated code will never be touched by a human.
>> Probably 80% of it even will never be looked at.
>> I have never read anything which suggests to me that Dijkstra was - or
>> would have been - against source code generators.
>
>IIUC, the OP was referring to the use of things like templates.
>I.e. case where the generated source code is then edited by the user.
>DSLs, macros, compiler compilers, and other code generators are
>completely different, since the generated code is constantly
>re-generated: it's not "source" code.


My sense was that OP was referring to application wizards more so than
templates or macros. In any event, I disagree with the notion that
where the fix is applied makes a fundamental difference. To me the
difference is the probability of a programmer having to look at the
output of the generator.


To reveal potential bias: I have developed GUI applications on Mac and
Windows since early on (MacOS 2 and Windows 3) - I've written
applications for them from scratch, using skeletons and using wizard
generators. I also have done a fair bit of bare metal embedded work,
and have created several DSL tools myself for various purposes -
including one commercial product. Consequently I have spent quite a
lot of time over the years poring over code generated by various tools
... assembly listings, parser code, templates and, of course, the
output of my own DSL tools.


IME wizard framework code is simultaneously the least likely to be
looked at, but the most likely to require direct modification when
developing a non-trivial application.


DSL, template and macro generated code is more likely to have to be
traced through - because, charitably speaking, the errors and warnings
from compiling them, and the problems from using them quite often are
difficult to understand without doing so. However, as you say, it is
the usual case that the problem will be solved in the DSL or template
source.


YMMV,
George


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.