Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9373

Re: Source code representation (was: code generation for the ternary operator).

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Source code representation (was: code generation for the ternary operator).
Date 2011-11-02 07:45 -0700
Organization http://groups.google.com
Message-ID <18617042.625.1320245140423.JavaMail.geo-discussion-forums@prgt10> (permalink)
References (2 earlier) <j8ehuu$e58$1@dont-email.me> <2011110101533290344-angrybaldguy@gmailcom> <fhsva7tt9pavvjscl41a30ciq9s6rhuieb@4ax.com> <wiVrq.6094$am1.2643@newsfe05.iad> <g431b7pdhfid7gqojcvr39boa16ngpscgb@4ax.com>

Show all headers | View raw


Gene Wirchenko wrote:
> Daniel Pitts wrote:
> 
> [snip]
> 
> >I've often thought about a "new" way of representing code, where the 
> >logical structure is stored in not-necessarily-human-editable format, 
> >but the tools for managing the code allow it to be presented in a format 
> >chosen by the particular maintainer.
> 
>      One problem is whether you can replicate my way.  I like my code
> formatted a certain way.  If your tool can not do this, I will not
> like using it.  I will avoid it if at all possible.
> 
>      Other people feel the same way about their formats.  Miss very
> many possibilities, and you will have bad will from [|potential]
> users.
> 
>      I was wading through the editor settings for Visual Studio and
> ended up having to shut off a lot of the formatting, because the
> formatting done was not to my taste.
> 
>      I was just looking through the editor settings for Dreamweaver.
> It does not do what I want.  <sigh>

For workaday programmers, house style is also an issue.  Whatever your particular preference, at work you have to put the braces and indentation where the boss says to.  (Ah, I see Roedy made the same point.)

But prettifiers exist and are quite common and highly customizable.  Some shops take advantage of this, letting programmers goof up on style a little and cleaning it up on the way in to the VCS.

Regardless, I don't know that there is an intermediate format to store source code that improves upon, well, source code.  The usual intermediate format is object code.  Decompilers certainly exist and work well.

As for your particular predilection to store invalid code in source, well, that's just bad practice.  Oh, not while it's sitting in your editor or IDE, but that use case doesn't call for an intermediate format.  The one that could, were it not for the aforementioned superiority of simply storing the damn source, what's the big effing deal?, is when you share the code, at which point you certainly won't want non-syntactic code going forth. DBTB - Don't Break The Build!

-- 
Lew

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

code generation for the ternary operator Roedy Green <see_website@mindprod.com.invalid> - 2011-10-28 06:46 -0700
  Re: code generation for the ternary operator Jaap Droogers <JaapDroogers@unusable.meel.homelinux.net> - 2011-10-28 16:07 +0200
    Re: code generation for the ternary operator markspace <-@.> - 2011-10-28 08:32 -0700
      Re: code generation for the ternary operator Owen Jacobson <angrybaldguy@gmail.com> - 2011-11-01 01:53 -0400
        Re: code generation for the ternary operator Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 06:25 -0700
          Source code representation (was: code generation for the ternary operator). Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-01 09:41 -0700
            Re: Source code representation Patricia Shanahan <pats@acm.org> - 2011-11-01 13:46 -0700
              Re: Source code representation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-01 16:09 -0700
              Re: Source code representation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:54 -0700
            Re: Source code representation (was: code generation for the ternary operator). Gene Wirchenko <genew@ocis.net> - 2011-11-01 17:33 -0700
              Re: Source code representation (was: code generation for the ternary operator). Roedy Green <see_website@mindprod.com.invalid> - 2011-11-02 01:19 -0700
                Re: Source code representation (was: code generation for the ternary operator). Gene Wirchenko <genew@ocis.net> - 2011-11-02 09:42 -0700
              Re: Source code representation (was: code generation for the ternary operator). Lew <lewbloch@gmail.com> - 2011-11-02 07:45 -0700
              Re: Source code representation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-02 10:58 -0700
                Re: Source code representation Gene Wirchenko <genew@ocis.net> - 2011-11-02 14:11 -0700
                Re: Source code representation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-02 15:21 -0700
                Re: Source code representation Gene Wirchenko <genew@ocis.net> - 2011-11-02 16:07 -0700
            Re: Source code representation (was: code generation for the ternary operator). Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:52 -0700
              Re: Source code representation (was: code generation for the ternary operator). Gene Wirchenko <genew@ocis.net> - 2011-11-02 09:47 -0700
                Re: Source code representation (was: code generation for the ternary operator). Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-02 20:58 +0000
                Re: Source code representation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-02 15:27 -0700
                Re: Source code representation Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-02 23:18 +0000
                Re: Source code representation Lew <lewbloch@gmail.com> - 2011-11-02 17:30 -0700
                Re: Source code representation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-02 15:30 -0700
                Re: Source code representation Gene Wirchenko <genew@ocis.net> - 2011-11-02 21:30 -0700
                Re: Source code representation Lew <lewbloch@gmail.com> - 2011-11-02 22:07 -0700
            Re: Source code representation Arne Vajhøj <arne@vajhoej.dk> - 2011-11-05 21:01 -0400
      Re: code generation for the ternary operator Arne Vajhøj <arne@vajhoej.dk> - 2011-11-05 20:56 -0400
    Re: code generation for the ternary operator rossum <rossum48@coldmail.com> - 2011-10-29 13:01 +0100
    Re: code generation for the ternary operator Lew <lewbloch@gmail.com> - 2011-10-29 10:46 -0700
  Re: code generation for the ternary operator Henk van Voorthuijsen <voorth@xs4all.nl> - 2011-10-28 08:05 -0700
    Re: code generation for the ternary operator Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-10-28 15:41 +0000
  Re: code generation for the ternary operator Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-28 10:31 -0700
    Re: code generation for the ternary operator Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-10-29 03:24 +0200
  Re: code generation for the ternary operator Wanja Gayk <brixomatic@yahoo.com> - 2011-10-29 00:23 +0200
    Re: code generation for the ternary operator Lew <lewbloch@gmail.com> - 2011-10-29 10:50 -0700
      Re: code generation for the ternary operator Wanja Gayk <brixomatic@yahoo.com> - 2011-11-01 13:36 +0100
  Re: code generation for the ternary operator Michal Kleczek <kleku@poczta.onet.pl> - 2011-10-31 17:38 +0100

csiph-web