comp.lang.ada
 help / color / mirror / Atom feed
* no title
@ 2003-06-02  7:55 And838N
  2003-06-02  8:09 ` Preben Randhol
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: And838N @ 2003-06-02  7:55 UTC (permalink / raw)
  To: comp.lang.ada

Bobby Bryant wrote:
>Also, it's not uncommon to find someone who tries to do "cute" things to
>optimize some local operation for speed, but then embeds it in a horribly
>inefficient exponential-time algorithm.

yeah, like bubble sort in assembler.  I shouldn't laugh.  I'll probably make this mistake once, and hopefully ONLY once.

Thanks Robert for the information!  There is a lot there for me to investigate and learn!

In my "learning session" today I noticed that a lot of the current Ada procedures and functions (dare I call them methods?) have those pesky '_'s in them.  Any plans in Ada200x for case sensitivity?  Maybe a command line flag if you want to have case sensitivity.

The syntax could be less finger stretchy with all the '_'s and we could have toUnboundedString instead of to_unbounded_string.  You could have x: Integer; and X: Integer;!!  What a bonus right?!  Just a thought.

Thanks again for the help!

Andrew







__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
  2003-06-02  7:55 And838N
@ 2003-06-02  8:09 ` Preben Randhol
  2003-06-02 10:56 ` Georg Bauhaus
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Preben Randhol @ 2003-06-02  8:09 UTC (permalink / raw)


And838N@netscape.net wrote:

> In my "learning session" today I noticed that a lot of the current Ada
> procedures and functions (dare I call them methods?) have those pesky
> '_'s in them.  Any plans in Ada200x for case sensitivity?  Maybe a
> command line flag if you want to have case sensitivity.

Case SenSitIvitY is a bAD ThiNg IMHO. It reduces readability as you need
to be sure you spelt it correctly according to the definition. One could
in fact have a GetString and getstring and Getstring and
getString procedure.

What is the problem with _ ? Get_String is more reable to me as it
seperates Get and String.

> 
> The syntax could be less finger stretchy with all the '_'s and we
> could have toUnboundedString instead of to_unbounded_string.  You
> could have x: Integer; and X: Integer;!!  What a bonus right?!  Just a
> thought.

No bonus at all see above.

What do you find more easy to read: ConvertIntegertoUnboundedString or
Convert_Integer_To_Unbounded_String (just to give an extreme example)
-- 
Preben Randhol                    http://www.pvv.org/~randhol/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
       [not found] <38327B08.00A56F89.0015D3EC@netscape.net>
@ 2003-06-02 10:50 ` David C. Hoos, Sr.
  0 siblings, 0 replies; 7+ messages in thread
From: David C. Hoos, Sr. @ 2003-06-02 10:50 UTC (permalink / raw)
  To: And838N, comp.lang.ada

----- Original Message -----
From: <And838N@netscape.net>
To: <comp.lang.ada@ada.eu.org>
Sent: June 02, 2003 2:55 AM
Subject: no title


> Bobby Bryant wrote:
> >Also, it's not uncommon to find someone who tries to do "cute" things to
> >optimize some local operation for speed, but then embeds it in a horribly
> >inefficient exponential-time algorithm.
>
> yeah, like bubble sort in assembler.  I shouldn't laugh.  I'll probably make this mistake once,
and hopefully ONLY once.
>
> Thanks Robert for the information!  There is a lot there for me to investigate and learn!
>
> In my "learning session" today I noticed that a lot of the current Ada procedures and functions
(dare I call them methods?) have those pesky '_'s in them.  Any plans in Ada200x for case
sensitivity?  Maybe a command line flag if you want to have case sensitivity.
No plans at all; it will NEVER happen!
>
> The syntax could be less finger stretchy with all the '_'s and we could have toUnboundedString
instead of to_unbounded_string.  You could have x: Integer; and X: Integer;!!  What a bonus right?!
Just a thought.

Ada was designed for ease of reading, rather than ease of
writing, since programs are read my humans many moir� times than
they're read.

Many factors make up what is good style, from both performance
and human-readability points of view.

The Software Productivity Consortium has written the
Ada 95 Quality and Style Guide to explain these issues; an HTML
version is freely available at:
http://www.adaic.com/docs/95style/html/cover.html

>
> Thanks again for the help!
>
> Andrew
>
>
>
>
>
>
>
> __________________________________________________________________
> McAfee Virus Online from the Netscape Network.
> Comprehensive protection for your entire computer. Get your free trial today!
> http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
>
> Get AOL Instant Messenger 5.1 free of charge.  Download Now!
> http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
> _______________________________________________
> comp.lang.ado mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
>





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
  2003-06-02  7:55 And838N
  2003-06-02  8:09 ` Preben Randhol
@ 2003-06-02 10:56 ` Georg Bauhaus
  2003-06-02 11:01 ` Bobby D. Bryant
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Georg Bauhaus @ 2003-06-02 10:56 UTC (permalink / raw)


And838N@netscape.net wrote:
: 
: In my "learning session" today I noticed that a lot of the current Ada
procedures and functions (dare I call them methods?)

Subprograms. (What's your precise definition of metod, btw.?)

: The syntax could be less finger stretchy

Why not use a decent editor that does the repetitive work for you?
Ada is for readers, not typists, anaway.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
  2003-06-02  7:55 And838N
  2003-06-02  8:09 ` Preben Randhol
  2003-06-02 10:56 ` Georg Bauhaus
@ 2003-06-02 11:01 ` Bobby D. Bryant
  2003-06-02 20:23 ` Gautier Write-only
  2003-06-02 21:33 ` Luke A. Guest
  4 siblings, 0 replies; 7+ messages in thread
From: Bobby D. Bryant @ 2003-06-02 11:01 UTC (permalink / raw)


On Mon, 02 Jun 2003 03:55:21 -0400, And838 wrote:

> The syntax could be less finger stretchy with all the '_'s and we could
> have toUnboundedString instead of to_unbounded_string.

Ick.

-- 
Bobby Bryant
Austin, Texas




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
  2003-06-02  7:55 And838N
                   ` (2 preceding siblings ...)
  2003-06-02 11:01 ` Bobby D. Bryant
@ 2003-06-02 20:23 ` Gautier Write-only
  2003-06-02 21:33 ` Luke A. Guest
  4 siblings, 0 replies; 7+ messages in thread
From: Gautier Write-only @ 2003-06-02 20:23 UTC (permalink / raw)


# In my "learning session" today I noticed that a lot of the current
# Ada procedures and functions (dare I call them methods?) have those
# pesky '_'s in them.  Any plans in Ada200x for case sensitivity?
# Maybe a command line flag if you want to have case sensitivity.
# 
# The syntax could be less finger stretchy with all the '_'s and
# we could have toUnboundedString instead of to_unbounded_string.
# You could have x: Integer; and X: Integer;!!
# What a bonus right?!  Just a thought.

You can always define
   subtype UnboundedString is Unbounded_String;
   function ToUnboundedString (Source : in String) 
     return UnboundedString renames To_Unbounded_String;
NB: no need of case-sensitivity!
For adding case sensitivity see other proposals for comments
in this newsgroup.
Apparently there is some resistence to add all these "retro"
features into Ada.
I'm afraid you have to invent a new "Retro" language with /*...*/
comments, #define's, #include's, case-sensitivity, implicit
declarations, flat visibility, plus a punched-card reader.
________________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: no title
  2003-06-02  7:55 And838N
                   ` (3 preceding siblings ...)
  2003-06-02 20:23 ` Gautier Write-only
@ 2003-06-02 21:33 ` Luke A. Guest
  4 siblings, 0 replies; 7+ messages in thread
From: Luke A. Guest @ 2003-06-02 21:33 UTC (permalink / raw)


On Mon, 02 Jun 2003 03:55:21 -0400, And838 wrote:

> Bobby Bryant wrote:
>>Also, it's not uncommon to find someone who tries to do "cute" things to
>>optimize some local operation for speed, but then embeds it in a horribly
>>inefficient exponential-time algorithm.
> 
> yeah, like bubble sort in assembler.  I shouldn't laugh.  I'll probably make this mistake once, and hopefully ONLY once.
> 
> Thanks Robert for the information!  There is a lot there for me to investigate and learn!
> 
> In my "learning session" today I noticed that a lot of the current Ada procedures and functions (dare I call them methods?) have those pesky '_'s in them.  Any plans in Ada200x for case sensitivity?  Maybe a command line flag if you want to have case sensitivity.
> 
> The syntax could be less finger stretchy with all the '_'s and we could have toUnboundedString instead of to_unbounded_string.  You could have x: Integer; and X: Integer;!!  What a bonus right?!  Just a thought.
> 
> Thanks again for the help!
> 
> Andrew

PLEASE! Enable word wrapping in your news client!

Luke.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-02 21:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <38327B08.00A56F89.0015D3EC@netscape.net>
2003-06-02 10:50 ` no title David C. Hoos, Sr.
2003-06-02  7:55 And838N
2003-06-02  8:09 ` Preben Randhol
2003-06-02 10:56 ` Georg Bauhaus
2003-06-02 11:01 ` Bobby D. Bryant
2003-06-02 20:23 ` Gautier Write-only
2003-06-02 21:33 ` Luke A. Guest

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox