Re: code portability
"Frederick Gotham" <fgothamNO@SPAM .comwrote in message
news:O81Cg.1238 4$j7.321440@new s.indigo.ie...
Man I don't know where you work, but every single programmer I manage on my
system codes by the methods outlined by the customer - NOT what they feel is
appropriate. If the customer wants his int variables to be named using some
arcane mathematical formula then so be it, if they want the int variables to
be a,b,c,d,e,f,... then so be it. The coding standard is determined by the
project and the customer, never the coder - at least in my realm.
"Frederick Gotham" <fgothamNO@SPAM .comwrote in message
news:O81Cg.1238 4$j7.321440@new s.indigo.ie...
Philip Potter posted:
>
>
>
If you're going to be reading other people's code, you need to be used to
variety.
>
If part of your job is reading other people's code, then you should be
good
at it. It takes less than an hour to get used to different word orderings:
>
int const *p;
>
const int *p;
>
static inline int Func(...
>
int inline static Func(...
>
inline static int Func(...
>
static int inline Func(...
>
The people who are arguing that "other people should be able to read your
code" are the very people who have difficulty reading other people's code.
Big deal: I write "char unsigned" instead of "unsigned char"... is it
really that bewildering?
>
>It's almost always better to stick with a coding style that you perceive
>as flawed but which everyone is used to, than to use your own style
>which (despite any advantage it may offer) nobody is used to and so
>nobody can read.
>as flawed but which everyone is used to, than to use your own style
>which (despite any advantage it may offer) nobody is used to and so
>nobody can read.
>
If you're going to be reading other people's code, you need to be used to
variety.
>
If part of your job is reading other people's code, then you should be
good
at it. It takes less than an hour to get used to different word orderings:
>
int const *p;
>
const int *p;
>
static inline int Func(...
>
int inline static Func(...
>
inline static int Func(...
>
static int inline Func(...
>
The people who are arguing that "other people should be able to read your
code" are the very people who have difficulty reading other people's code.
Big deal: I write "char unsigned" instead of "unsigned char"... is it
really that bewildering?
system codes by the methods outlined by the customer - NOT what they feel is
appropriate. If the customer wants his int variables to be named using some
arcane mathematical formula then so be it, if they want the int variables to
be a,b,c,d,e,f,... then so be it. The coding standard is determined by the
project and the customer, never the coder - at least in my realm.
>
At then end of the day, if you have a problem with:
>
char unsigned const static inline (*const Func(void))[3]
>
, then you should take it up with the Standards Commitee -- because right
now, it's perfectly legal, and I like it. (And please don't come back with
an argument such as the following is legal:
>
#define void int
#define main core
#define start {
#define end }
>
void core()
start
return 0;
end
>
--
>
Frederick Gotham
At then end of the day, if you have a problem with:
>
char unsigned const static inline (*const Func(void))[3]
>
, then you should take it up with the Standards Commitee -- because right
now, it's perfectly legal, and I like it. (And please don't come back with
an argument such as the following is legal:
>
#define void int
#define main core
#define start {
#define end }
>
void core()
start
return 0;
end
>
--
>
Frederick Gotham
Comment