Re: pattern equality test?

From: Arthur J. O'Dwyer (ajo_at_nospam.andrew.cmu.edu)
Date: 03/19/04


Date: Thu, 18 Mar 2004 20:36:12 -0500 (EST)


On Fri, 19 Mar 2004, Michael Mendelsohn wrote:
>
> "Arthur J. O'Dwyer" schrieb:
> >
> > I was going to post code, but when I started writing the code was
> > when I found the bugs in my algorithm. And now that I've clarified
> > the algorithm, the code is trivial enough to make it not worth my
> > while. ;-)
>
> Personally, I like explanations of algorithms better than unexplained
> code (which is likely not what you intended to do, but I've been
> thinking about this, and you gave me the opportunity to say it). I
> realize this is not comp.explanations, but rather comp.programming, but
> after all it's supposed to be neither language nor OS-specific, and some
> C code that gets posted is pretty language specific (using array index
> -1, for example)...

  That's not specific to C -- it's not even part of C! :) I agree with
you that explanations are usually more useful to a wider audience, and
more fun to read; but it's easier to test a piece of C code than a
paragraph of English. ;-) Also, code is less ambiguous than English.
If I'd just dumped two pages of C code on the newsgroup, instead of
my algorithm in English, you wouldn't have needed me to clarify what I
meant by two prefixes' "matching," for example.

-Arthur



Relevant Pages

  • Re: Fermats Last theorem short proof
    ... interesting "algorithm." ... The problem is language and ... In English "better method" is what you ... is there any free web bage that shows the proof. ...
    (sci.math)
  • Re: Will Java Replace .NET?
    ... When I want to communicate an algorithm in an article or ... > philosophy, use English. ... try coding the logic for a conversation and find you ... Anyway, I want to upgrade my c# systems, and am looking for a new language. ...
    (microsoft.public.dotnet.framework)
  • Re: "Sorting" assignment
    ... If you only learn the beautiful side of programming, ... elegance and beauty from the fact that we developed this algorithm ... The insertion sort can be illustrated and is ... English grammar, apparently, than many English speakers, a noun phrase ...
    (comp.programming)
  • Re: Help with S.A.M.
    ... As English is not my first language, so could someone please help me ... if the text-to-speech algorithm is messing ... For the Votrax line, the SC-01 and the SSI-263 did reasonably ... well after I respelled pizza as "peetsa". ...
    (comp.sys.apple2)
  • Re: Get the average value ?
    ... Refine the english until you can substitue real Csharp code for the english statements. ... You must first have an algorithm, or strategy, or whatever you want to call it, for solving the problem. ... Even experienced programmers don't skip the first step - develop a strategy for solving the problem. ... Sometimes when I'm stuck I resort to writing it out and darned if it doesn't help every time! ...
    (microsoft.public.dotnet.languages.csharp)