flat assembler
Message board for the users of flat assembler.

Index > Main > FASMLIB: error constant names


which one? (read first!)
ERR_ZERO_SIZE
100%
 100%  [ 13 ]
ERR_ZERO
0%
 0%  [ 0 ]
Total Votes : 13

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
which one do you prefer?

longer: ERR_ZERO_SIZE, ERR_BUFFER_FULL, ERR_INVALID_HANDLE

or shorter: ERR_ZERO, ERR_BUFFER, ERR_HANDLE

shorter have disadvantage that later we might need to introduce new error constants regarding same thing, eg. some other type of error connected with zero, buffer, or handle.

Please post your ideas and reasons why you choose the one you like... i am not too democratic, poll isn't leading to me. You know, majority is usually wrong Wink
Post 05 Oct 2006, 08:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
Again reinventing the wheel, vid? Wink

Longer one is self-describing - the source is much better readable. Shorter one leads to confusion and unnecessary comments.
Post 05 Oct 2006, 08:25
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
just a note: i comment everything regardless if code is readable or not Razz
Post 05 Oct 2006, 08:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
HyperVista



Joined: 18 Apr 2005
Posts: 691
Location: Virginia, USA
HyperVista
at the risk of sounding like tom tobias (greets tom), i have to agree with MazeGen. readability is enhanced with longer error codes. not everyone writes beautiful, commented code like you vid Very Happy
Post 05 Oct 2006, 10:20
View user's profile Send private message Visit poster's website Reply with quote
flaith



Joined: 07 Feb 2005
Posts: 122
Location: $300:20 58 FC 60 N 300G => Vietnam
flaith
Like everyone, i rather prefer long codes (errors or others), it's better for you and even for me when i'm reading my own old codes Wink

_________________
Je suis sur de 'rien', mais je ne suis pas sur du 'tout'.
Post 05 Oct 2006, 13:07
View user's profile Send private message Visit poster's website Reply with quote
Ehtyar



Joined: 26 Sep 2006
Posts: 51
Ehtyar
I dare say the reason will be the same for most people, the more descriptive, the better.

Thanks for asking vid.
Post 05 Oct 2006, 21:52
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
allraight then.... we'll have longer ones
Post 06 Oct 2006, 06:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Ehtyar



Joined: 26 Sep 2006
Posts: 51
Ehtyar
Yaaaay Smile
Post 06 Oct 2006, 20:56
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.