Try....Catch
-
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
-
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
"Well, you can
try
this code, but thecatch
is that it swallows Exceptions." -
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
-
"Well, you can
try
this code, but thecatch
is that it swallows Exceptions." -
-
"Well, you can
try
this code, but thecatch
is that it swallows Exceptions."I have had to do that on a project where the test rig was dodgy. Try { blah, blah, balh!} catch { Messagebox.Show(" Error State") ugly ugly code that gave a reasonable result! the Try Catch everything is a way to get yourself out the firing line and some body else into it! so been there, done that, got the T-Shirt! :-D
-
"Well, you can
try
this code, but thecatch
is that it swallows Exceptions."finally
a good answer. :-D /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
finally
a good answer. :-D /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
-
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
Maybe he was trying to learn (from you). It's easy to poke fun when people don't know something that is everyday to us, but it pays to remember that they may know things you have no clue about. We tend to read sequentially and the first term he didn't understand was "Try". It's even possible that he might have understood "Catch", especially since it has an exception object declared, but didn't realize it had a block scope and thought that the scope was for the whole routine. A little light hearted fun is OK, but if he feels humiliated he will probably not try again and will almost certainly resent you. This wouldn't do either of you any good!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
-
Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!
What is a benefit in our line of work is that as long as someone is paying attention it is impossible to for someone to fake the funk. You either are the surgeon, or the patient, but not both.
-
What is a benefit in our line of work is that as long as someone is paying attention it is impossible to for someone to fake the funk. You either are the surgeon, or the patient, but not both.
Slacker007 wrote:
surgeon, or the patient
I thought it was dog or fire hydrant.
-
Slacker007 wrote:
surgeon, or the patient
I thought it was dog or fire hydrant.
PIEBALDconsult wrote:
I thought it was dog or fire hydrant.
You are most likely correct. I was trying to be clever and witty but that is clearly not on the docket for today. :)
-
Maybe he was trying to learn (from you). It's easy to poke fun when people don't know something that is everyday to us, but it pays to remember that they may know things you have no clue about. We tend to read sequentially and the first term he didn't understand was "Try". It's even possible that he might have understood "Catch", especially since it has an exception object declared, but didn't realize it had a block scope and thought that the scope was for the whole routine. A little light hearted fun is OK, but if he feels humiliated he will probably not try again and will almost certainly resent you. This wouldn't do either of you any good!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
PhilLenoir wrote:
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
Nice.
Jeremy Falcon
-
Slacker007 wrote:
surgeon, or the patient
I thought it was dog or fire hydrant.
I'm the fire hydrant, but I've been electrified.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
-
I'm the fire hydrant, but I've been electrified.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
Then it's good thing I can't produce a laminar flow.
-
PhilLenoir wrote:
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
Nice.
Jeremy Falcon
ta muchly :)
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
-
Then it's good thing I can't produce a laminar flow.
You old dog, you!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
-
The first rule of VB6 programmer is to start every function from ON ERROR RESUME NEXT. Program is always working, no bugs! Explain to your boss that try...catch does the same in VB .NET.
-
Maybe he was trying to learn (from you). It's easy to poke fun when people don't know something that is everyday to us, but it pays to remember that they may know things you have no clue about. We tend to read sequentially and the first term he didn't understand was "Try". It's even possible that he might have understood "Catch", especially since it has an exception object declared, but didn't realize it had a block scope and thought that the scope was for the whole routine. A little light hearted fun is OK, but if he feels humiliated he will probably not try again and will almost certainly resent you. This wouldn't do either of you any good!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.