flat assembler
Message board for the users of flat assembler.
Index
> DOS > What Coding Style? |
Author |
|
cypher 21 May 2011, 05:32
I am looking for a code style. What do you suggest?
_________________ When all in life fails, get weird and disappear into the mountains |
|||
21 May 2011, 05:32 |
|
cypher 21 May 2011, 06:00
Good suggestion. I adopted to the usual style of FASM. But when it comes to identifier names I have a problem. Which is better to use: camelCase or internal_under_score?
|
|||
21 May 2011, 06:00 |
|
JohnFound 21 May 2011, 06:05
CamelCaseIsBetterForMe
but_recently_sometimes_i_use_underscores for the labels I don't want to be very remarkable in the source. |
|||
21 May 2011, 06:05 |
|
ouadji 21 May 2011, 06:18
And for breakfast, which is better ? tea or coffee? |
|||
21 May 2011, 06:18 |
|
bitshifter 21 May 2011, 21:13
The coding style you choose is less important
than being consistant throughout with that style. Your coding style will continue to evolve, just be consistant with its usage. |
|||
21 May 2011, 21:13 |
|
ctl3d32 21 May 2011, 23:56
Quote: Your coding style will continue to evolve... This problem always arises when i'm in the middle of a project. |
|||
21 May 2011, 23:56 |
|
edfed 22 May 2011, 01:02
ouadji wrote:
Code:
Yahourt_CrèmeDeMarron!:
call fridge.open
call yahourt.get
call creme.open
call spoon.get
call ENJOY
|
|||
22 May 2011, 01:02 |
|
ManOfSteel 22 May 2011, 13:45
edfed, where's the garbage collection? You should call empty_pot.discard (as many times as necessary until cx=0), spoon.rinse, and most importantly, fridge.close (as soon as possible or else your morning process will suffer from water leaks).
|
|||
22 May 2011, 13:45 |
|
ouadji 22 May 2011, 18:51
ctl3d32 wrote:
thank you ctl3d32, I feel now less alone. |
|||
22 May 2011, 18:51 |
|
cypher 25 May 2011, 09:25
JohnFound wrote: CamelCaseIsBetterForMe ouadji wrote: And for breakfast, which is better ? tea or coffee? bitshifter wrote: The coding style you choose is less important I think it's settled; CamelCase will do for functions, and underscores will work for other names. But I do appreciate edfed's style; it's unique. And Tomasz's style. Although he doesn't comment his code. Isn't it always best to have sufficient and descriptive comments in your code? -------------------------------------------------------------------------- This helps but it is a bit confusing though: assembly coding style -------------------------------------------------------------------------- |
|||
25 May 2011, 09:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.