Re: C# programmer wants to learn assembly?? plz help
- From: Betov <betov@xxxxxxx>
- Date: 30 Dec 2006 18:29:39 GMT
David Jones <ncic@xxxxxxxxxx> écrivait
news:MPG.20005bd3b863fd8898969b@xxxxxxxxxxxxxxxxxxxxx:
Betov <betov@xxxxxxx> wrote...programmer,
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
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 >
.
- Follow-Ups:
- Re: C# programmer wants to learn assembly?? plz help
- From: rhyde@xxxxxxxxxx
- Re: C# programmer wants to learn assembly?? plz help
- From: David Jones
- Re: C# programmer wants to learn assembly?? plz help
- References:
- C# programmer wants to learn assembly?? plz help
- From: giddy
- Re: C# programmer wants to learn assembly?? plz help
- From: Frank Kotler
- Re: C# programmer wants to learn assembly?? plz help
- From: //\\\\o//\\\\annabee
- Re: C# programmer wants to learn assembly?? plz help
- From: Herbert Kleebauer
- Re: C# programmer wants to learn assembly?? plz help
- From: Betov
- Re: C# programmer wants to learn assembly?? plz help
- From: Herbert Kleebauer
- Re: C# programmer wants to learn assembly?? plz help
- From: Betov
- Re: C# programmer wants to learn assembly?? plz help
- From: Herbert Kleebauer
- Re: C# programmer wants to learn assembly?? plz help
- From: David Jones
- Re: C# programmer wants to learn assembly?? plz help
- From: David Jones
- Re: C# programmer wants to learn assembly?? plz help
- From: David Jones
- Re: C# programmer wants to learn assembly?? plz help
- From: Betov
- Re: C# programmer wants to learn assembly?? plz help
- From: David Jones
- C# programmer wants to learn assembly?? plz help
- Prev by Date: Re: C# programmer wants to learn assembly?? plz help
- Next by Date: Re: C# programmer wants to learn assembly?? plz help
- Previous by thread: Re: C# programmer wants to learn assembly?? plz help
- Next by thread: Re: C# programmer wants to learn assembly?? plz help
- Index(es):
Relevant Pages
|