Re: Formatting in assembly
- From: Betov <betov@xxxxxxx>
- Date: 31 Mar 2006 14:52:58 GMT
"Dragontamer" <prtiglao@xxxxxxxxx> écrivait news:1143814436.470493.227460
@i40g2000cwc.googlegroups.com:
* "atoi" is not an acceptable name.
Why not?
Because there is no "atoi", in my English distionary.
I understand it perfectly: Ascii to Integer.
Good for you, but is supppose that, if you know of it,
this is because you have _LEARNed_ what these chars
were meaning. Then, the day you will write something
for a beginner, you will say:
-----------------------------
; Convert Ascii to Integer:
atoi:
-----------------------------
.... which by the way, is not exact. This is:
-----------------------
; Convert Ascii to EAX:
-----------------------
.... but achieving in all cases into bad naming. If this
is "Ascii to EAX", then the Routine Name is "AsciiToEax",
and nothing else.
Good code must have few comments, and, instead of useless
comments, must rely on fully "Self-Descriptive-Names", as
long as, once done, there is no more any requirement for
commenting, depending on the level of education of the
reader.
Betov.
< http://rosasm.org >
.
- Follow-Ups:
- Re: Formatting in assembly
- From: Betov
- Re: Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- From: Dragontamer
- Re: Formatting in assembly
- References:
- Formatting in assembly
- From: James Daughtry
- Re: Formatting in assembly
- From: Betov
- Re: Formatting in assembly
- From: Dragontamer
- Formatting in assembly
- Prev by Date: Re: Formatting in assembly
- Next by Date: The rats nets show
- Previous by thread: Re: Formatting in assembly
- Next by thread: Re: Formatting in assembly
- Index(es):