|
One does not simply lecture OG on programming .
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
Oh, come on! He describes himself as the CEO of Wales. When was the last time you met a CEO who knew the first thing about writing code?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: When was the last time you met a CEO who knew the first thing about writing code? I couldn't know after all I work as a code monkey. I don't meet such people like CEOs.
But your post was funny
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
Argonia wrote: I don't meet such people like CEOs
Undo another button or two.
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
He can if he wants - I make mistakes like everyone else, and am both very aware and very thankful that I don't know everything.
Mind you, I did know everything when I was 18...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: when I was 18...
That was surely before the dawn of men (and thus before the age of the personal computer)
|
|
|
|
|
Pre-PC indeed, but not Pre-DoM: I'm not 'Enry Minute!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
This continues to irk me no end.
Due to the lack of generics in .net V1, IDataParameterCollection.Item is of type object rather than IDataParameter , so I have to keep casting.
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
Many still create their own collections the same way. I have no clue why.
|
|
|
|
|
I know... I had to add a "Don't use the obsolete collection pattern" chapter to the coding style guide for my team...
|
|
|
|
|
PIEBALDconsult wrote: This continues to irk me no end.
Due to the lack of generics in .net V1 It did for me too. That is until 2005 when .Net 2.0 came out. Just saying.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Yes, but they didn't add a generic alternative to the collection so I still have to cast even today.
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
if (((cmd != null)))
Not so much "belt and braces" and "braces and braces and braces" code.
|
|
|
|
|
Macro replacement?
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
Probably - there's a flock of seagulls in the same file.
|
|
|
|
|
I wondered what had happened to them.
|
|
|
|
|
I think they got arrested by the bad hair squad..
Bad Hair Day[^]
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
That containment field seems a little weak. Tack on a few more pairs to be sure it safely contains that massive expression.
|
|
|
|
|
|
A question this morning, and as part of explaining what was causing the problem he had noticed, I suggested that this code:
string checkuser = " select count(*) from UserDetail where UserName='" + TextBoxUN + "'";
Wasn't going to work, because it would be the same as writing:
string checkuser = " select count(*) from UserDetail where UserName='System.Web.UI.WebControls.TextBox'";
And he should use TextBoxUN.Text instead, but that it was dangerous because of SQL Injection.
Unrelated to the problem he had noticed, but going to be a problem soon.
So...fast forward a couple of hours, and the same user has a new problem: his code doesn't find his username:
string checkuser = " select count(*) from UserDetail where UserName='System.Web.UI.WebControls.TextBox'";
SqlCommand com = new SqlCommand(checkuser, conn);
*BANG*desk*BANG*desk*BANG*
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I'm with the army, and do not bother with anything. Technically speaking it's the air force I'm with, but I still don't bother.
After two weeks I now think about starting a Zen Buddhism class, that's how much I bother.
The console is a black place
|
|
|
|
|
Switzerland has an air force?
That doesn't involve folded sheets of paper?
Why was I not informed?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
http://www.lw.admin.ch/internet/luftwaffe/en/home.html[^]
The airforce is probably the most useful part of the swiss military, and reasonably good equipped. They maintain their own fiberglass high speed network across switzerland, and even the radar stations on the top of the mountains are connected to it.
The console is a black place
|
|
|
|
|
Marco Bertschi wrote: They maintain their own fiberglass high speed network across switzerland, and even the radar stations on the top of the mountains are connected to it. Yeah. With breathtaking 8 Mbit/s transfer rate
I know that. Because well, thats what I did/do during my army time. Setting up radio stations to connect to that network. Well, it's enough for telephones and fax devices
|
|
|
|