comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Usefulness of Formal Notions in Programming
Date: Thu, 8 Mar 2012 10:24:21 +0100
Date: 2012-03-08T10:24:21+01:00	[thread overview]
Message-ID: <4g7bt4qr6e0u.18o4pcqjmldlg$.dlg@40tude.net> (raw)
In-Reply-To: 4f57ef25$0$6582$9b4e6d93@newsspool3.arcor-online.net

[I never said that formalism is bad, on the contrary, programming is too
much informal. But that by no means should justify the kind of CS we have]

On Thu, 08 Mar 2012 00:28:37 +0100, Georg Bauhaus wrote:

> On 07.03.12 21:17, Dmitry A. Kazakov wrote:
> 
>>>> This is a great example of making a "science" out
>>>> of nothing and for nothing.
> 
[...]
> 1. Suppose someone knows what a regular language is.

I don't buy REs. For a layman wild-carded patterns are easier to use and
understand, while covering 90% all cases. For professional use (10%)
patterns is a bad idea anyway. I think we discussed that in c.l.a.

> If a person knows one simplified, abstract notion well (grammar),
> the he or she will more easily understand a different notion, provided
> there is an analogy, or correspondence.

The only problem is that formal grammars are not simple. They are hard and
difficulties grow exponentially closer you come to the real application
domain. The formalism is just too weak.

This is the problem of all poor solutions. Be it formal grammars, patterns,
domain-specific languages, scripting languages etc. You get a simple job
done simply and quickly. That makes you think - that is. But when you face
a real task you are lost.

> It seems somewhat like knowing math. If you know it, and know how to
> put math to good use, it helps understanding programs, and writing
> programs,

That is true, except that good math has a purpose and beauty. Formal
grammars (poor math) are more like learning how to divide and square Roman
numerals. That too would train you mentally and thus help by writing
program. But a sane man would convert to the decimal representation do the
job and convert back.

[... how bad Lisp is ...]

That Lisp is bad does not imply that formal grammars are any good.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-03-08  9:24 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 15:42 Verified compilers? Yannick Duchêne (Hibou57)
2012-02-24  1:41 ` Shark8
2012-02-24  8:52   ` Georg Bauhaus
2012-02-24 17:36   ` Peter C. Chapin
2012-03-06  1:27 ` Randy Brukardt
2012-03-06 17:24   ` Shark8
2012-03-06 17:43     ` Dmitry A. Kazakov
2012-03-06 19:03       ` Shark8
2012-03-07  5:33       ` Yannick Duchêne (Hibou57)
2012-03-07  9:12         ` Dmitry A. Kazakov
2012-03-07 17:49           ` Niklas Holsti
2012-03-07 20:17             ` Dmitry A. Kazakov
2012-03-07 23:28               ` Usefulness of Formal Notions in Programming (was: Verified compilers?) Georg Bauhaus
2012-03-08  9:24                 ` Dmitry A. Kazakov [this message]
2012-03-08 10:30                   ` Usefulness of Formal Notions in Programming Nasser M. Abbasi
2012-03-08 12:37                     ` Dmitry A. Kazakov
2012-03-08  0:42               ` Verified compilers? Randy Brukardt
2012-03-08  9:25                 ` Dmitry A. Kazakov
2012-03-08 18:10                   ` Niklas Holsti
2012-03-08 20:41                     ` Dmitry A. Kazakov
2012-03-08 18:02               ` Niklas Holsti
2012-03-08 20:40                 ` Dmitry A. Kazakov
2012-03-09  0:44                   ` Georg Bauhaus
2012-03-09 22:13                   ` Niklas Holsti
2012-03-10 10:36                     ` Dmitry A. Kazakov
2012-03-10 20:35                       ` Niklas Holsti
2012-03-11  9:47                         ` Dmitry A. Kazakov
2012-03-11 22:22                           ` Niklas Holsti
2012-03-12  5:12                             ` Niklas Holsti
2012-03-12  9:43                             ` Dmitry A. Kazakov
2012-03-14  8:36                               ` Niklas Holsti
2012-03-14  9:24                                 ` Georg Bauhaus
2012-03-14 11:14                                   ` REAL (was: Verified compilers?) stefan-lucks
2012-03-14 12:59                                     ` REAL Dmitry A. Kazakov
2012-03-14 13:30                                       ` REAL Georg Bauhaus
2012-03-14 13:51                                         ` REAL Dmitry A. Kazakov
2012-03-14 20:37                                           ` REAL Brian Drummond
2012-03-14 21:52                                             ` REAL Dmitry A. Kazakov
2012-03-14 13:52                                         ` REAL georg bauhaus
2012-03-14 17:42                                         ` REAL Jeffrey Carter
2012-03-14 10:14                                 ` Verified compilers? Dmitry A. Kazakov
2012-03-14 20:13                                   ` Niklas Holsti
2012-03-11 10:55                         ` Georg Bauhaus
2012-03-10 13:46                     ` Brian Drummond
2012-03-07  1:00     ` Randy Brukardt
2012-03-07 12:42   ` Stuart
2012-03-08  1:06     ` Randy Brukardt
2012-03-08  9:04       ` Jacob Sparre Andersen
2012-03-08  9:37         ` Dmitry A. Kazakov
2012-03-08 11:23           ` Simon Wright
2012-03-08 12:27             ` Dmitry A. Kazakov
2012-03-08 10:23         ` Brian Drummond
2012-03-08 23:38           ` Bill Findlay
2012-03-09 13:56             ` Brian Drummond
2012-03-09 14:43               ` Shark8
2012-03-09 21:51                 ` Brian Drummond
2012-03-09 15:49               ` Bill Findlay
2012-03-09 20:34                 ` Brian Drummond
2012-03-09 19:40               ` Jeffrey Carter
2012-03-09 20:39                 ` Brian Drummond
2012-03-09 23:59               ` phil.clayton
2012-03-08 15:23         ` Peter C. Chapin
2012-03-09  2:04         ` Randy Brukardt
replies disabled

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