Any coders here?

0 Members and 1 Guest are viewing this topic. Read 1873 times.

JohnR

Any coders here?
« on: 21 Sep 2011, 06:12 pm »
Here's a question for you: you've made some changes, and in testing you execute something that you know is not going to work. But it works anyway.

Should you be pleased, or very unhappy?

JfTM

Re: Any coders here?
« Reply #1 on: 21 Sep 2011, 06:17 pm »
Isn't that a feature?

 :lol: :lol:

BobRex

Re: Any coders here?
« Reply #2 on: 21 Sep 2011, 06:19 pm »
I wouldn't be happy.  You know full well that if you can get the wrong result, some other bozo will too and cause you no end of grief later.  Best to track it down now.

JohnR

Re: Any coders here?
« Reply #3 on: 21 Sep 2011, 07:15 pm »
Well, it's the right result, but not for the reasons that you think it would be :)

xr2

  • Jr. Member
  • Posts: 42
Re: Any coders here?
« Reply #4 on: 21 Sep 2011, 07:37 pm »
Depends.  If it means that you're test environment is in better shape than you thought, then it's a good thing.  If it is really supposed to break, then you have one of the more annoying type of bugs to track down.

mgalusha

Re: Any coders here?
« Reply #5 on: 22 Sep 2011, 03:50 am »
It would bug the hell out of me until I could get it sorted. The ones that really concern me are big changes to something and having it work the first time without any errors. Had this happen yesterday, split a class into three files using "partial class" declarations in C# and the damn thing still worked afterwards. Worried me as I expected something bad to happen but we beat on it all day today without issue.

Chromisdesigns

  • Full Member
  • Posts: 486
  • Darla, our beach cat, contemplating the sea
    • Fine-gemstones.com
Re: Any coders here?
« Reply #6 on: 22 Sep 2011, 04:33 am »
I used to encourage my coders to include some tell-tale in test versions so they were sure they were executing the version they thought they were -- sometimes this result can be as easy as compiling into the wrong library, wrong lib references, etc., etc.  Of course the sandbox may not be configured the way you think it is, either.

We always used a global switch to turn off all the coding aids and debugs when it was declared production ready.

chester_audio

  • Jr. Member
  • Posts: 55
Re: Any coders here?
« Reply #7 on: 22 Sep 2011, 10:52 am »
Hard to say what level of concern this is without some more input. What do your specs call for? If it violates a spec, it's a bug. If it doesn't, and there seems to be a problem, then the specs need to be revisited. Perhaps something needs to be added to the design to prevent that particular senario. I would have to know exactly what was going on, and my bosses would expect me to know.

JohnR

Re: Any coders here?
« Reply #8 on: 22 Sep 2011, 02:56 pm »
Well, let's not over-analyze my question :) I guess you could think of it as an "inverse bug" - as Mike says, rather an uncomfortable feeling, more than a regular bug. ;)

chester_audio

  • Jr. Member
  • Posts: 55
Re: Any coders here?
« Reply #9 on: 22 Sep 2011, 03:54 pm »
Sorry. I'm a software engineer, it's my job to over-analyze.  :thumb:

MaxCast

Re: Any coders here?
« Reply #10 on: 22 Sep 2011, 04:08 pm »
I say, if you're getting paid for the coding...find out why.  If not getting paid...let er rip.

macrojack

  • Restricted
  • Posts: 3826
Re: Any coders here?
« Reply #11 on: 22 Sep 2011, 04:26 pm »
This whole discussion must be in a code of some kind. No idea what the problem is.

kimchee411

Re: Any coders here?
« Reply #12 on: 23 Sep 2011, 12:59 am »
No.  If you don't understand what is going on and you push it out to production, it could very well come back to bite you in the ass and you won't know how to fix it.

Crimson

Re: Any coders here?
« Reply #13 on: 23 Sep 2011, 02:41 am »
Here's a question for you: you've made some changes, and in testing you execute something that you know is not going to work. But it works anyway.

Should you be pleased, or very unhappy?

Mildly pleased.

And then I would find out why.

wilsynet

  • Full Member
  • Posts: 1228
Re: Any coders here?
« Reply #14 on: 23 Sep 2011, 05:45 pm »
The idea of "you know it's not going to work" can be interpreted a couple of different ways.

1. You made significant changes and no way could you be so good that it worked on the first try.  This is not a big deal.

2. According to the analysis done, the compilation or execution of the code should fail either syntactically or semantically for one or more known and well understood reasons.  If this is the case, then either the code is doing something that was not intentioned, or your analysis and the foundation that informs that analysis is wrong.  This needs to be rigorously understood because either:

  • There's a bug and you're just lucky that you haven't hit it yet.  The code may be doing bad things that you haven't observed but it's doing so all the same.
  • You don't understand the nuances of your creation.  Good to know, but not the end of the world I suppose.
  • You don't understand some aspect of the programming language or platform.  Resolving this would benefit you in the long run.

My general thought is that rigor is rarely a bad thing, although of course there are time, cost and delivery constraints which may cause you to compromise in one way or another in the interests of pragmatism.

mal

  • Jr. Member
  • Posts: 42
Re: Any coders here?
« Reply #15 on: 25 Sep 2011, 09:31 pm »
Here's a question for you: you've made some changes, and in testing you execute something that you know is not going to work. But it works anyway.

If you don't know why it works, it doesn't work. Anything else will drive you mad until it bites you in the fleshiest part of your...

There's no sense in feeling pleased or unhappy. It's just a funny step on the way to being done.

JohnR

Re: Any coders here?
« Reply #16 on: 25 Sep 2011, 10:13 pm »
OK, thanks for responses folks :) It wasn't supposed to be an exam, just a mildly amusing topic to elicit your experiences... :)