• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: commenting code using diagrams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: commenting code using diagrams


  • Subject: Re: commenting code using diagrams
  • From: julius <email@hidden>
  • Date: Tue, 14 Apr 2009 12:44:27 +0100

Hi Jeffrey,
sorry to have taken so long to respond.
I noticed you wrote off list so I'm replying likewise.
On 12 Apr 2009, at 19:11, Jeffrey Oleander wrote:



On Fri, 2009/04/10, julius <email@hidden> wrote:
So the upshot seems then to be that many people
have found it useful to include diagrams in their
inline documentation (surprise surprise) but
compiler writers have not thought to provide this
one tiny and simple to implement thing? Hmmm..
there must be reasons... I suggested it once to
BBEdit but they had no plans to do anything like
this.
Perhaps XCode could be the first?
All the bestJulius

There was something like that in Nisus Writer, and
we considered putting it into QUED/M but held off
for fear of bloat.

Another issue is that every such complication adds
opportunities for introduction of bugs.  It's not
so "tiny", though doing it in an OO way should
improve the odds.

It's not so much the compiler that needs special
code for it, but the code editors.  As far as the
compiler's concerned a comment is a comment.

If it's just another special comment for purposes
of documentation, we've had those in our version/
config management systems for several decades --
at least since the 1960s.  We had some nice things
for laying out tables in memory and for data-comm
word by word and bit by bit which would get
printed as ASCII art.  By the 1980s there were
some tools to produce nice pictures.

We just didn't have *good* ways to print/display
graphics and multimedia back then.  And that's
the trick, to have the editor display it in the
file, and for editors that can't it's just another
comment with a link... and we'd still need to
protect that editor from malware, and make it
easy for the software developer to open up and
play/show or minimize such comments on the fly,
and minimize the performance impact.
I'm very pleased to hear that people have taken a serious look at this.
Indeed it would have been surprising if they hadn't.
But it is surprising to hear that configuration and version management systems have been able to do this for some time and for the effectiveness of this not to have spilled over to code editors. For instance I was very disappointed when following up on the XCode->Design->Diagram menu to discover it only applied to data dependency diagrams.

I can understand the fear of bloat especially if one were thinking of including image editing abilities.
And I fully expect that if an editor were to include nothing but the minimal graphics capabilities of interest to me, vis to slot a jpeg between two lines of code, and people found this useful, very soon one would be coming down with requests for additional features, e.g. to "play/show or minimize such comments on the fly".
Even so, I am surprised no one has done even the minimum.

I had never imagined that printing or displaying graphics in inline code would have created the problems you allude to. Just goes to show how little one appreciates the nature of a problem prior to taking a more detailed look at it. 

I was intrigued by your comment regarding malware.
I am aware that an awful lot of viruses etc have been spread through data files but I was not aware that it is now common practice to write infection resistant code. How does one do that? Presumably this must go beyond simple checks of data file formats. I have yet to find the right combination of terms that will retrieve such info via Google. So far I'm just getting stuff on how to protect networks, reduce risks in companies that sort of thing. 

Thanks for telling me all this
Very best wishes

Julius


http://juliuspaintings.co.uk




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Xcode 3.1.2 Crash
  • Next by Date: Re: commenting code using diagrams
  • Previous by thread: Re: commenting code using diagrams
  • Next by thread: Re: commenting code using diagrams
  • Index(es):
    • Date
    • Thread