Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. shame to my tester or me?

shame to my tester or me?

Scheduled Pinned Locked Moved The Weird and The Wonderful
sysadminhelpquestion
45 Posts 26 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K kdgupta87

    I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

    M Offline
    M Offline
    Michael Kingsford Gray
    wrote on last edited by
    #31

    You.

    1 Reply Last reply
    0
    • D ddecoy

      In dutch it is different. 62 you say " sixty two" but in dutch you say "twee en zestig" = "two and sixty" we also use the metric system :D

      G Offline
      G Offline
      Gary Huck
      wrote on last edited by
      #32

      Oh, you're gonna discuss date preferences now?! Then what ... coding style? How about favorite colour?

      D D 2 Replies Last reply
      0
      • G Gary Huck

        Oh, you're gonna discuss date preferences now?! Then what ... coding style? How about favorite colour?

        D Offline
        D Offline
        ddecoy
        wrote on last edited by
        #33

        Watch out everybody the discussion police is here..

        G 1 Reply Last reply
        0
        • K kdgupta87

          I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

          E Offline
          E Offline
          englebart
          wrote on last edited by
          #34

          Like a few others have stated. I prefer yyyy-mm-dd. Another advantage is that it sorts correctly as a string.

          1 Reply Last reply
          0
          • D ddecoy

            Watch out everybody the discussion police is here..

            G Offline
            G Offline
            Gary Huck
            wrote on last edited by
            #35

            I was merely, sarcastically, suggesting that such things will never be agreed upon. Heck, I live in a country [US] that uses pounds and inches to measure things. We also use a format for our dates that, as far as I can tell, is not used outside the US.

            1 Reply Last reply
            0
            • B BobJanova

              Oh, that's definitely true. And it sounds like it was a relatively low tariff place to make the mistake (easy to notice, easy to find the cause and fix, not a critical system), so all's good in the end. But it is more a tester mistake than a dev mistake, in my opinion.

              M Offline
              M Offline
              Machaira
              wrote on last edited by
              #36

              Doesn't sound like it's anything the tester could have tested if it's a system date related issue. If the date was data the tester entered I agree, but that's not how I read it.

              I 1 Reply Last reply
              0
              • M Machaira

                Doesn't sound like it's anything the tester could have tested if it's a system date related issue. If the date was data the tester entered I agree, but that's not how I read it.

                I Offline
                I Offline
                Isfeasachme
                wrote on last edited by
                #37

                I agree. Testers cannot test -everything- ... That is like expecting a coder to produce bug free code. In my experience, testers test functions against spec, and then test data/input (boundary conditions, extremes, absence, ridiculous) and call it a day. Unfortunately, this low hanging fruit approach leaves sneaky, subtle bugs like this undetected.

                1 Reply Last reply
                0
                • K kdgupta87

                  I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

                  A Offline
                  A Offline
                  Anna Jayne Metcalfe
                  wrote on last edited by
                  #38

                  That sounds like exactly the sort of bug which would be preempted by a good set of unit tests. Test Driven Development takes some time to get used to doing, but it definitely works.

                  Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

                  1 Reply Last reply
                  0
                  • K kdgupta87

                    why all over the world, everyone not following the same date time format, they should think about poor programmers like me :confused:

                    M Offline
                    M Offline
                    Member_5893260
                    wrote on last edited by
                    #39

                    No - see - it's actually done to give us a boost in morale by allowing us to feel superior!!

                    1 Reply Last reply
                    0
                    • G Gary Huck

                      Oh, you're gonna discuss date preferences now?! Then what ... coding style? How about favorite colour?

                      D Offline
                      D Offline
                      djdanlib 0
                      wrote on last edited by
                      #40

                      Maybe we can throw in a favorite editor discussion, and for bonus points debate newline characters!

                      1 Reply Last reply
                      0
                      • K kdgupta87

                        I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

                        E Offline
                        E Offline
                        Eugene Peng
                        wrote on last edited by
                        #41

                        Shame on you, and your tester too. We should follow the system when using date and time. The display format is only for presentation. If your code is going to send data all over the world, what is the right format?

                        K 1 Reply Last reply
                        0
                        • K kdgupta87

                          I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

                          P Offline
                          P Offline
                          pietvredeveld
                          wrote on last edited by
                          #42

                          First shame on you. When transfer any data over the wire, you should it do it in a system independent format. When for some reason it is impossible to do that, you should take system differences in account. That is: verify what differences there are and (unit)test you're code against the whole valid range and handle invalid data. Shame on the tester to, he also should be aware of difficulties in the domain he is testing. But most of all shame on you. A developer never can hide behind the the tester (or even the architect). He has it's own responsibility to make the software work, without errors.

                          1 Reply Last reply
                          0
                          • K kdgupta87

                            I start a project in 2nd april, i finished it 8th april, the tester tested the project and pass 9th april and client get happy on that, suddenly in 13 april my project stop sending data, which is one of its main functionality. i was wonder why why my code works only 5 days, what happens, there is nothing changed why data was not sending now. suddenly i discovered what was the fault, because from 1st may it again start to work and i am confident it will work until 12th may, and then it will again stop :-O :-O :-O . i think u already get the hint, problem was date time format in server and client side. mm-dd-yy and dd-mm-yy , for that it will only work 1st 12 days of a month, not bad :D

                            K Offline
                            K Offline
                            KP Lee
                            wrote on last edited by
                            #43

                            My vote is for the tester. You're a programmer, you're expected to screw up. :laugh: The tester passed your code in one day. You might have 100 more bugs lurking in your code. (Which could still be true after 100 days of testing.) Just think about sending yy-mm-dd, your code could still be humming along fine for 19 years. (I'm guessing someone might eventually notice the dates don't match/make sense.)

                            1 Reply Last reply
                            0
                            • E Eugene Peng

                              Shame on you, and your tester too. We should follow the system when using date and time. The display format is only for presentation. If your code is going to send data all over the world, what is the right format?

                              K Offline
                              K Offline
                              KP Lee
                              wrote on last edited by
                              #44

                              Eugene Peng wrote:

                              what is the right format?

                              For an established receiver of data, the right format is the receiver's format. Shame on the receiver if they didn't supply the format to begin with. Testers exist because it is a known problem that coders write bugs. It is the tester's responsibility to assume the programmer screwed up and find out where (s)he did. The fact the test period was only one day puts nearly all the fault at the tester's feet. (s)he didn't even have time to build a valid case model for testing. You as a coder have a right to slap your own head, say "What an idiot", and fix the bug. Reminds me of a bug I created. Wrote an app to clean up a table by truncating it when it is a week old. Supposed to run 5 minutes before midnight. So I scheduled it to do so. Forgot the date was UTC. Should have scheduled the job to run at 3:55 PM and coded the logic to sleep until the UTC time was reached. (UTC is 7 to 8 hours ahead of my local time.) The tester caught it on my last day of work. Over a year later, I'm reading proposed changes another group was making. My former group. They were adjusting job schedules to be based on UTC time and offsetting the start time based the former time setting because the app was moving to a different time zone. I had to explain to the head SQL person there is a bug written against the app, he needed to set the UTC time to run at 22:55 UTC instead of 07:55 UTC, it will run 5 minutes to 2 hours early depending on when the scheduling job code runs and the code needs to be modified to wait until 5 minutes before UTC Midnight to run. Everyone makes mistakes. Checking for valid date information being passed is 101 testing. (It is the programmer's job to do 101 testing as well as the tester's job to not believe (s)he did anything right.)

                              1 Reply Last reply
                              0
                              • B BobJanova

                                Oh, that's definitely true. And it sounds like it was a relatively low tariff place to make the mistake (easy to notice, easy to find the cause and fix, not a critical system), so all's good in the end. But it is more a tester mistake than a dev mistake, in my opinion.

                                F Offline
                                F Offline
                                Florin Jurcovici
                                wrote on last edited by
                                #45

                                IMO it's a beginner programmer's mistake - anybody who has ever done a web app has learnt this lesson the same way. It isn't often that testers find this type of error - usually programmers, or whatever library or framework they use take care of this.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups