The "Yeah baby" increment way...
-
string orderId = "PPP3845";
//get id for new order by increment the last by one
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"... :laugh: 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._
-
This is really very "_Yeah baby"... :laugh: 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.
-
string orderId = "PPP3845";
//get id for new order by increment the last by one
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.
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)
-
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.
-
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.
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.... :rolleyes:
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[^]
-
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.
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 :^)
Viral My Site Tips & Tracks
-
string orderId = "PPP3845";
//get id for new order by increment the last by one
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.
:omg: - :laugh: :laugh: :laugh: :laugh: :laugh:
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
string orderId = "PPP3845";
//get id for new order by increment the last by one
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.
It does lead one to think of a good new variable type though.... alphanum it could be explained in 2 lines 9 + 1 = A Z + 1 = 10 Why would one want this variable? Well in product tracking or any labeling we tend to use AlphaNumeric strings for tracking because there are WAY more values in the same amount of characters. numeric 4 char has 10000 possiblities while alpha numeric has 1679616 possibilities. Of course add another character and you have increased it by a factor of 3.6 : 1 compared to numeric. So obviously IEs tend to choose alpha numeric for tracking info. It would be nice if the programming world allowed us to do this also.
-
string orderId = "PPP3845";
//get id for new order by increment the last by one
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.
-
It does lead one to think of a good new variable type though.... alphanum it could be explained in 2 lines 9 + 1 = A Z + 1 = 10 Why would one want this variable? Well in product tracking or any labeling we tend to use AlphaNumeric strings for tracking because there are WAY more values in the same amount of characters. numeric 4 char has 10000 possiblities while alpha numeric has 1679616 possibilities. Of course add another character and you have increased it by a factor of 3.6 : 1 compared to numeric. So obviously IEs tend to choose alpha numeric for tracking info. It would be nice if the programming world allowed us to do this also.
Collin Jasnoch wrote:
for tracking
Yes its a product tracking software indeed.