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. The Lounge
  3. Test your code until your brains ooze from your eye sockets

Test your code until your brains ooze from your eye sockets

Scheduled Pinned Locked Moved The Lounge
perltestingbeta-testingtools
34 Posts 24 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.
  • S Offline
    S Offline
    Slacker007
    wrote on last edited by
    #1

    and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

    C N Sander RosselS P J 11 Replies Last reply
    0
    • S Slacker007

      and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

      Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
      "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      You should be thankful it was only 4 hours. My "haste" has slowed me down for days on occasion. :)

      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

      1 Reply Last reply
      0
      • S Slacker007

        and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

        Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #3

        Pffft. If it compiles, ship it.

        utf8-cpp

        H I B K 4 Replies Last reply
        0
        • N Nemanja Trifunovic

          Pffft. If it compiles, ship it.

          utf8-cpp

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Yeah!:thumbsup: Real artists ship, not test.

          Henry Minute Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is. Cogito ergo thumb - Sucking my thumb helps me to think.

          G 1 Reply Last reply
          0
          • S Slacker007

            and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

            Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
            "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #5

            A colleague recently 'fixed' something. I later found out I couldn't even open the friggin form after he had fixed it. It was such a small fix he didn't think it would've been necessary to test it... Worst part is that I didn't check his fix and put it live at the customer! Now who's the jackass? My non-testing, over-confident colleague or me, the one responsible :) Of course I'm not innocent myself, but I always at least test what I just fixed (that some other part of our software breaks because of the 'fix' is just details ;p ).

            It's an OO world.

            public class Naerling : Lazy<Person>{
            public void DoWork(){ throw new NotImplementedException(); }
            }

            A 1 Reply Last reply
            0
            • Sander RosselS Sander Rossel

              A colleague recently 'fixed' something. I later found out I couldn't even open the friggin form after he had fixed it. It was such a small fix he didn't think it would've been necessary to test it... Worst part is that I didn't check his fix and put it live at the customer! Now who's the jackass? My non-testing, over-confident colleague or me, the one responsible :) Of course I'm not innocent myself, but I always at least test what I just fixed (that some other part of our software breaks because of the 'fix' is just details ;p ).

              It's an OO world.

              public class Naerling : Lazy<Person>{
              public void DoWork(){ throw new NotImplementedException(); }
              }

              A Offline
              A Offline
              Aamir Butt
              wrote on last edited by
              #6

              Naerling wrote:

              Now who's the jackass?

              umm... Your process. Always blame the process :-\

              A year spent in artificial intelligence is enough to make one believe in God

              Sander RosselS 1 Reply Last reply
              0
              • A Aamir Butt

                Naerling wrote:

                Now who's the jackass?

                umm... Your process. Always blame the process :-\

                A year spent in artificial intelligence is enough to make one believe in God

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #7

                Actually we always blame people that don't work at the company anymore ;p

                It's an OO world.

                public class Naerling : Lazy<Person>{
                public void DoWork(){ throw new NotImplementedException(); }
                }

                P 1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  Actually we always blame people that don't work at the company anymore ;p

                  It's an OO world.

                  public class Naerling : Lazy<Person>{
                  public void DoWork(){ throw new NotImplementedException(); }
                  }

                  P Offline
                  P Offline
                  Pete Appleton
                  wrote on last edited by
                  #8

                  Always a good technique - and often true, as those who've left are the ones who couldn't code well enough!

                  -- What's a signature?

                  J 1 Reply Last reply
                  0
                  • H Henry Minute

                    Yeah!:thumbsup: Real artists ship, not test.

                    Henry Minute Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is. Cogito ergo thumb - Sucking my thumb helps me to think.

                    G Offline
                    G Offline
                    Gary Wheeler
                    wrote on last edited by
                    #9

                    What was that cliché again about "starving artists"?...

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • P Pete Appleton

                      Always a good technique - and often true, as those who've left are the ones who couldn't code well enough!

                      -- What's a signature?

                      J Offline
                      J Offline
                      Jeremy Hutchinson
                      wrote on last edited by
                      #10

                      That depends on which direction your company is going. In the company I'm at, good coders are leaving because of the bad ones. The bad ones aren't budging.

                      J Sander RosselS 2 Replies Last reply
                      0
                      • S Slacker007

                        and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

                        Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                        P Offline
                        P Offline
                        psmartt1
                        wrote on last edited by
                        #11

                        I agree, but as coder trying to test, try as I may there is always a "conflict of interest". As much as I hate to admit it, the coder in me is trying to prove that it is solid, while the tester is trying to prove that it is broken. I can happily test until my visual apparatus exudes neural material - but is someone else tests my code, they will always find things I missed because my mind was to odeeply into the code - likewise I am quite good at breaking someone else's "well-tested" code. Trouble is, management usually won't give you the luxury of a dedicated tester (or test team).

                        S P 2 Replies Last reply
                        0
                        • S Slacker007

                          and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

                          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                          J Offline
                          J Offline
                          jasperp
                          wrote on last edited by
                          #12

                          Agreed. I tell that to my users all the time. Thats what users are for.

                          1 Reply Last reply
                          0
                          • J Jeremy Hutchinson

                            That depends on which direction your company is going. In the company I'm at, good coders are leaving because of the bad ones. The bad ones aren't budging.

                            J Offline
                            J Offline
                            JeremyBob
                            wrote on last edited by
                            #13

                            Are you staying?

                            J 1 Reply Last reply
                            0
                            • J JeremyBob

                              Are you staying?

                              J Offline
                              J Offline
                              Jeremy Hutchinson
                              wrote on last edited by
                              #14

                              I'm trying to get management to make some changes to stop the bad developers from doing stuff worthy of the hall of shame, while at the same time looking for something better. We'll see which happens first...

                              R 1 Reply Last reply
                              0
                              • N Nemanja Trifunovic

                                Pffft. If it compiles, ship it.

                                utf8-cpp

                                I Offline
                                I Offline
                                ii_noname_ii
                                wrote on last edited by
                                #15

                                Compile? Huh? Wuss!!! :P I just RDP into the server, write a few lines and save. Then I go for a smoke. If the phone rings, something went wrong.

                                1 Reply Last reply
                                0
                                • S Slacker007

                                  and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

                                  Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                  "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                                  S Offline
                                  S Offline
                                  Stefan_Lang
                                  wrote on last edited by
                                  #16

                                  The problem with that mantra is that there is no software without bugs, so you'll always find some! For practical reasons you should therefore set a reasonable limit to your testing. Hint: 'no more bugs found' is not a reasonable limit. ;)

                                  S 1 Reply Last reply
                                  0
                                  • P psmartt1

                                    I agree, but as coder trying to test, try as I may there is always a "conflict of interest". As much as I hate to admit it, the coder in me is trying to prove that it is solid, while the tester is trying to prove that it is broken. I can happily test until my visual apparatus exudes neural material - but is someone else tests my code, they will always find things I missed because my mind was to odeeply into the code - likewise I am quite good at breaking someone else's "well-tested" code. Trouble is, management usually won't give you the luxury of a dedicated tester (or test team).

                                    S Offline
                                    S Offline
                                    Stefan_Lang
                                    wrote on last edited by
                                    #17

                                    I agree: testing your own code will never produce half as many bugs as testing another's. The reason is simple: you only test cases that you can think of. But if you can think of them, you've probably covered them in your code. It's only when some comes around with test cases that you didn't think of that the truly nasty bugs turn up.

                                    R D 2 Replies Last reply
                                    0
                                    • S Slacker007

                                      and then test it some more. There is absolutely no excuse for not testing your code...EVER! I was in a hurry about a month ago and did not test some Perl script. I just spent the last 4 hours paying the price. Gotta love it. :shakes head:

                                      Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                      "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                                      D Offline
                                      D Offline
                                      decaffeinatedMonkey
                                      wrote on last edited by
                                      #18

                                      So true. I'm reminded of this comic: http://blogs.msdn.com/b/seliot/archive/2011/04/25/i-don-t-always-test-my-code-but-when-i-do-i-do-it-in-production.aspx[^]

                                      1 Reply Last reply
                                      0
                                      • S Stefan_Lang

                                        The problem with that mantra is that there is no software without bugs, so you'll always find some! For practical reasons you should therefore set a reasonable limit to your testing. Hint: 'no more bugs found' is not a reasonable limit. ;)

                                        S Offline
                                        S Offline
                                        Slacker007
                                        wrote on last edited by
                                        #19

                                        Stefan_Lang wrote:

                                        The problem with that mantra is that there is no software without bugs, so you'll always find some!
                                         
                                        For practical reasons you should therefore set a reasonable limit to your testing. Hint: 'no more bugs found' is not a reasonable limit.

                                        You will always find bugs, I agree with this. However, I never tested the code in question, at all. That is the reason for the Mantra. I catch so many bugs and problems just by testing my own code before you give it to the users to test. To not test your code, thoroughly on a basis of principal, indicates to me that you might not be a good coder. (not you in particular :))

                                        Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                                        1 Reply Last reply
                                        0
                                        • N Nemanja Trifunovic

                                          Pffft. If it compiles, ship it.

                                          utf8-cpp

                                          B Offline
                                          B Offline
                                          BrainiacV
                                          wrote on last edited by
                                          #20

                                          Damn straight! Back when I was doing S/370 Assembler programming, I'd point to the line at the end of the listing...

                                          NO ERRORS FOUND

                                          :laugh:

                                          Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                                          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