Re: =, += -=, loop, etc
From: Percival (dragontamer5788_at_yahoo.com)
Date: 08/12/04
- Next message: Percival: "Re: What is an Assembler"
- Previous message: Percival: "Re: Note to "The Wannabee" on religion"
- In reply to: Betov: "Re: =, += -=, loop, etc"
- Next in thread: beta : "Re: =, += -=, loop, etc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Aug 2004 21:35:00 GMT
Betov wrote:
> Seriously, there is no reason, for a Programming Source
> to be anything much different than any other human written
> Text. At this point of view, the Assembly Instruction is
> not a Sentence, and even less a Paragraph. It is, most
> often, a Member of Sentence, and this is where the
> Multi-Instructions Lines make sense. For example, there
> is no reason for writting:
>
>
>>mov edi D$Table
>>mov ecx D$TableSize
>>shr ecx 2
>>mov eax 0
>>rep stosd
>
>
> These four Instructions are _one_ sentence saying:
>
>
>>"Zeroing the Table".
>
>
> So, it is way better to save room and to say:
>
>
>>mov edi D$Table, eax 0, ecx D$TableSize | shr ecx 2 | rep stosd
>
>
> Also, the old fashion way, wanting you to put
> comment after the instructions should be 100%
> rejected. The comments should be on independant
> Lines, above the concerned Instructions. Any
> other way is utterly impossible to maintain, and,
> in 99% of cases, we do not need to be explained
> what an Instruction is doing. Reading it is enough.
> As opposed reading a flow of Instructions is not
> that often easy to understand at first read. So,
> what must be commented is not the Intructions level,
> but the "Instructions Sentences" Level.
>
>
> Betov.
Similarly, people make fun of me when i do in C/C++:
if(done) return 0; else return 1;
Cause it is completely different from the norm.
I personally find reading horizontal text much easier than reading
vertical text.
And these differences in opinion make me like that feature of RosAsm
where you have | to make a line longer.
It gives more room for style differences.
And if all else fails, there is no reason not to convert the source back
the way you like it with Too many newlines. But i won't push my minority
personal taste on to everyone else here. Just agreeing with Betov.
Percival.
- Next message: Percival: "Re: What is an Assembler"
- Previous message: Percival: "Re: Note to "The Wannabee" on religion"
- In reply to: Betov: "Re: =, += -=, loop, etc"
- Next in thread: beta : "Re: =, += -=, loop, etc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|