Re: C# programmer wants to learn assembly?? plz help



David Jones <ncic@xxxxxxxxxx> écrivait
news:MPG.20005bd3b863fd8898969b@xxxxxxxxxxxxxxxxxxxxx:

Betov <betov@xxxxxxx> wrote...
David Jones <ncic@xxxxxxxxxx> écrivait
news:MPG.200049b8f4929257989699@xxxxxxxxxxxxxxxxxxxxx:

Look at the phone number validation in my reply to ªa\/b and give me

the
RosAsm version:

Accept any of:
(202) 555-1212
(202)555-1212
202/555-1212
202.555.1212
2025551212

HLL version:
if (/^(\(\d{3}\)\s?)?\d{3}[\-\.]\d{4}$/.test(str) ||
/^\d{3}([\-\.])\d{3}\1\d{4}$/.test(str) ||
/^\d{3}\/\d{3}[\-\.]?\d{4}$/.test(str) ||
/^\d{3}?\d{7}$/.test(str))
{
// ... valid ...
}
else
{
// ... invalid ...
}


You are a great clown, David. Congratulation: I was in a
sad mood today, and you succeeded to make me laugh a lot.

Glad I could entertain you. Since you're an expert assembly
programmer,
would you mind having a crack at being more productive and writing an
equivalent function in assembly in less time? :) I would love to be
proven wrong.

I am afraid that nobody around would be interrested in reading
a so trivial loop with a lodsb / stosb pair, hosting a trivial
If/else_If cases verifications, David.

So said, if you really fail to understand anything, i have to
point you to the following facts, which have relationship with
the topic:

1) Your scriptic delirium is 100% unreable, and even an expert
of that kind of notation, would probably have 100 times more
difficulties at fixing any minor bug, than in trivial Asm.

2) Before writting your above absurdity, you have _LEARNED_ the
given convention for expressions. This is an evident _COST_:
The _lesser_ you need to learn, the better.

3) The compilations of such expressions will always be way less
optimal than any trivial Routine (written in whatever language).
Not implementing a so trivial Function (Routine), in a program
that is supposed to make use of it, is, definitively, not
understanding one single bit at the programming art.

4) Writting a trivial If/Else_If on Digits and separators, in a
While/End_While Loop will always be way easier and faster to
write than such an awfull and confusing mess like the one you
seem to prefer.

5) And in case you would really not know, selecting the &ES_NUMBER
Style, for an EditControl, would save you from any parsing, at all.


Betov.

< http://rosasm.org >






.



Relevant Pages

  • Re: Proof that Paul Holland was always wrong about me
    ... there are several posts you have made that have ... this is not anything different for/with you david, so indeed, the ... The difference of opinion between us is your assertion that negative ... I say those negative expressions are a result of their own ...
    (alt.med.fibromyalgia)
  • Re: .NET 1.1 "System.Data.VersionNotFoundException" - I need a wor
    ... No, I don't think that is a problem, Brad. ... This code is straight out of David ... identity column after the insert is where the error is happening? ... >> expressions before persisting is my next attempt at a workaround. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Modeling question...
    ... David BL wrote: ... expressions) are not themselves represented using relations. ... Just because some syntax doesn't look like a relation doesn't mean that the result isn't defined by relations. ... A relation is a mathematical construction. ...
    (comp.databases.theory)
  • Re: Solve y^x = x^y ?
    ... > David W. Cantrell wrote: ... The trivial solutions ... I.e. if your expressions evaluate ... I'm not missing any real solutions. ...
    (sci.math)
  • Re: [opensuse] regexp -- defference between < and  ?
    ... On Tuesday 29 April 2008 21:53, David C. Rankin wrote: ... The Backslash Character and Special Expressions ...
    (SuSE)