Re: The world's evilest code formatting style
Noah Roberts wrote:
Axter wrote:
Noah Roberts wrote:
Axter wrote:
I also think it's a waste to put white spaces in code for one line of
code, just because you think there should be white spaces.
IMHO, if you cann't read the following line of code without white
spaces, then maybe you should be doing something else beside
programming in C++.
inline T* operator[](size_t i) {return (m_data + (m_col*i));}
I would really like to meet the person who knows what this code does
without having to do a double or triple take at least.
for(size_t r=0;r<m_row;++r)for(size_t c=0;c<m_col;++c) (*this)[r][c] =
src[r][c];
I find the above line of code to be extreemely simplistic, and the fact
that you're indicating that you and all the programmers you know would
need to do a double or triple take to read above line of code,
indicates that you have poor code reading skills and all the
programmers you assoicated yourself with also have poor code reading
skills.
I recommend you spend more time improving your code reading skills, and
less time complaining about other programmer's code format.
Heheheh...ok dude. I don't know how you could possibly function with
that attitude but whatever; maybe you spend most time working alone.
I'm just glad MOST people learn how to write readable code
eventually...you obviously never did. Lucky for me, and the rest of us
coders with "poor reading skills", the average coder takes more pride
in their work and in making sure they can be understood. Otherwise we
would be spending more time pulling our hair out because some dipshit
decides to do the C++ equivilant of mile long runon sentances than in
actually accomplishing anything.
See, some of us like to retain job security by being good at what we do
and continuously improving...not by being the only person that can read
our convoluted spaghetti code. People like you bring productivity to a
standstill.
The more you speak the more I'm convinced you must be one of the worst
programmers in the field.
You could be right.
I'm the second highest ranking Expert in the C++ topic area for the
Experts-Exchange:
http://www.experts-exchange.com/Cplusplus
The Experts-Exchange is a well know controlled forum. (User name Axter)
I regularly post C++ answers for questioners in CodeGuru, CodeProject,
and MSDN.vc.
I'm the main author of the following smart pointer class:
http://axter.com/smartptr
And I've been programming in C++ for over 10 years, and programming in
C for close to 20 years.
I also have articles posted in CodeGuru, CodeProject, and other's that
I don't even remember any more.
But you could still be right, and I could be the worst programmer in
the field.
But at least I know how to make code that compiles, and I know simple
C++ rules like the order of construction, which you obviously did not
know in you're other post.
I rather have a programmer who understands beginners C++ language
rules, then someone who knows how to right pretty code that doesn't
compile or is inefficient because they don't understand the language.
The customer doesn't care how pretty your source code looks. The
customer just wants it to work, and work fast.