|
A "good" way to pad your line count.
|
|
|
|
|
I could find better ways.
|
|
|
|
|
glad to see you're back.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Was just in Vegas, couldn't be bothered to find a wifi hot spot.
|
|
|
|
|
Really horrible, poor guy didn't consider performance of such code. I have far more superior solution:
anArray[0].field1 = 1;
anArray[1].field1 = 1;
anArray[2].field1 = 1;
anArray[3].field1 = 1;
anArray[4].field1 = 1;
anArray[5].field1 = 1;
anArray[6].field1 = 1;
anArray[7].field1 = 1;
anArray[8].field1 = 1;
anArray[9].field1 = 1;
anArray[10].field1 = 1;
anArray[11].field1 = 1;
anArray[12].field1 = 1;
anArray[13].field1 = 1;
anArray[14].field1 = 1;
anArray[0].field2 = 2;
anArray[1].field2 = 2;
anArray[2].field2 = 2;
anArray[3].field2 = 2;
anArray[4].field2 = 2;
anArray[5].field2 = 2;
anArray[6].field2 = 2;
anArray[7].field2 = 2;
anArray[8].field2 = 2;
anArray[9].field2 = 2;
anArray[10].field2 = 2;
anArray[11].field2 = 2;
anArray[12].field2 = 2;
anArray[13].field2 = 2;
anArray[14].field2 = 2;
anArray[0].field3 = 3;
anArray[1].field3 = 3;
anArray[2].field3 = 3;
anArray[3].field3 = 3;
anArray[4].field3 = 3;
anArray[5].field3 = 3;
anArray[6].field3 = 3;
anArray[7].field3 = 3;
anArray[8].field3 = 3;
anArray[9].field3 = 3;
anArray[10].field3 = 3;
anArray[11].field3 = 3;
anArray[12].field3 = 3;
anArray[13].field3 = 3;
anArray[14].field3 = 3;
|
|
|
|
|
Do you get paid by LOC
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
That would go
anArray
[
0
].
field1
=
1;
|
|
|
|
|
string orderId = "PPP3845";
orderId++;
...and he got the nerve to ask me what was wrong !!!! I wont mention the look on his face when i started explaining about Auto Incremental fields in the database and the meaning of "being a string".
This man is allowed to code...Jesus. I need a drink even with the thought that i will have to review his code.
|
|
|
|
|
This is really very "Yeah baby"...
It's the craziest thing I've ever seen (in "professional" programming)...
predragzakisevic wrote: This man is allowed to code...Jesus
In a company? Is it a team mate of you?
I think I'd drink myself into oblivion in such a case.
Things/people like this contributed much to my decision to become a freelance developer (this does not necessarily mean that I am free of any mistakes, but I can usually handle them).
Regards
Thomas
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
Thomas Weller wrote: In a company? Is it a team mate of you?
Yep. In a company. Very respectful one in my country. That's whats happening when you get a job by your connections and not by an interview. At least he is below me in the company structure and he is underpaid. I can live with it then, but i have to answer to his dumpass question throughout the day. Imagine if he had an opinion. Ouch this IS horror.
|
|
|
|
|
how can somebody makeing such errors ever be "underpaid"? any payment is to much for "coders" like that
|
|
|
|
|
predragzakisevic wrote: That's whats happening when you get a job by your connections and not by an interview.
speak for your self man. I use to work at an IT department with so many people who got the job by connection. There was this guy who use to repair computers and carry his tools in 'tools belt' like electricians. we use to joke how he carry his hammer with him....
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
predragzakisevic wrote: That's whats happening when you get a job by your connections and not by an interview
Spot on friend,
In my Previous job some coder didnt know funda of Array
I didnt know how they graduate in university
|
|
|
|
|
Thanks, you cheered up my day!
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
|
|
Collin Jasnoch wrote: for tracking
Yes its a product tracking software indeed.
|
|
|
|
|
You found a Perl programmer
|
|
|
|
|
if (this == null) return;
|
|
|
|
|
Been reading Gary R. Wheeler's code again?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
That's right out of MFC
void CHandleMap::DeleteTemp()
{
if (this == NULL)
return;
|
|
|
|
|
In C++ that makes sense as this can be NULL in some situations.
|
|
|
|
|
My c++ is obviously rusty, what situations are those?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Call a method passing a null object...
In Delphi, the Free method checks that it was called for an object that was really created. It's quite useful, since you can write "MyObject.Free" instead of "if Assigned(MyObject) then MyObject.Free;". A real time saver, and code is so much more readable.
-- Quidquid latine dictum sit, altum sonatur.
http://streambolics.flimbase.com
S. L.
|
|
|
|
|
C++ lets you set the this object in the parameters instead of always using the object the method is called on?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|