|
By the sounds of it you don't know if your stressed until you leave?
I'm just going to ask my Boss for 6 months off to see if I'm stressed or not.
|
|
|
|
|
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 the catch is that it swallows Exceptions."
modified 5-Nov-14 10:39am.
|
|
|
|
|
I doubt his guess was going to be that intelligent. Remember to him Try...Catch...End Try were not part of the code.May be to him :
Try : Try the code below
Catch : ???
End Try : Give up
Can anyone suggest what he thought catch was for?
|
|
|
|
|
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!
|
|
|
|
|
finally a good answer.
/ravi
|
|
|
|
|
Programmer humour. Precious !! Nothing like it.
|
|
|
|
|
Boss: What's Exceptions? Answer: messages about errors. Boss: Well, just don't write errors in code and you don't need Exceptions, problem solved.
|
|
|
|
|
You're being a bit harsh, at least he was trying
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
My blog[ ^]
|
|
|
|
|
Well he tried, I caught him. Boss :Try , Coder : Catch
|
|
|
|
|
Rosser: throw
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
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.
|
|
|
|
|
The guy is self taught VB 6.0 programmer. Says he was using C++ at varsity, is he not supposed to understand Try...Catch
|
|
|
|
|
Per this[^], exceptions came to C++ sometime around the early nineties. However, C++ was in existence at least ten years before that. Your boss may have worked on the early versions of C++, which did not have exceptions.
|
|
|
|
|
Thanks for posting this. I didn't think try-catch was originally part of C++, but was going crazy trying to remember clearly that far back since I couldn't find anything about it. As I recall it wasn't even part of MS's C++ compiler at first, although they did have macro (?) extensions that implemented it.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
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
|
|
|
|
|
ta muchly
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
I did not humilate him. By the way are you a boss? Don't be offended.
|
|
|
|
|
Not offended, nor a boss. Just another minion making an observation on life!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
You have a way with words. You will be a boss in the near future. You are like a puppy that has swallowed a dictionary. Thats not my line got it from Dilbert, I am not sure its his line either.
|
|
|
|
|
I've been a boss, but it's unlikely I will be again. I retire in under 5 months!
... and I've never been a PHB.
I'm not sure if the swallowed a dictionary should be taken as an insult or compliment, but I've always been blessed (cursed) with a large vocabulary. Just another victim of the English school system!
I like puppies!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
Its a compliment. Jus checked out your profile. I am 30, was thinking of quitting programming at 35. Programming nowadays is associated with socially awkward 20-something years old individuals. I am not that anymore. After seeing your I am thinking of sticking around beyond 35 may be yo should too. You don't look like you have reached retirement age.
|
|
|
|
|
Well, thank you.
I'll be 60 in April and I can afford to stop as we don't lead an affluent lifestyle. I have 10 acres of conservation grade land, lots of hobbies, 3 grandkids with one more on the way. I play guitar and have a large music collection. In short I am blessed (I must have done something right in a previous existence!)
I have plenty to keep me busy that I enjoy more than writing code and my wife says she'll leave me if I don't stop working - apparently I'm a moody old git and she's hoping that all will be sweetness and light next year.
Good luck on the next 30 - 35. Just make sure you're having fun!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
codejet wrote: Programming nowadays is associated with socially awkward 20-something years old individuals. You must watch a lot of TV.
/ravi
|
|
|
|