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. Another coding horror

Another coding horror

Scheduled Pinned Locked Moved The Weird and The Wonderful
17 Posts 12 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.
  • L Lutoslaw

    What was an intention?

    Greetings - Jacek

    D Offline
    D Offline
    Dalek Dave
    wrote on last edited by
    #6

    Doubt it, just endless loops are usually errors.

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

    1 Reply Last reply
    0
    • R Ra one

      Code from one of my junior :-\ ---- this is Page-A.aspx

      protected void Page_Load(object sender, EventArgs e)
      {
      Response.Redirect("Page-A.aspx");
      }

      Above piece of code when load, it keeps browser busy to keep loading the same page.... :omg:

      J Offline
      J Offline
      Johann Gerell
      wrote on last edited by
      #7

      Naaah, that's not a coding horror - it's a typo! Shoulda been caught in the code review that his senior performed before check-in... ;)

      Time you enjoy wasting is not wasted time - Bertrand Russel

      1 Reply Last reply
      0
      • R Ra one

        Code from one of my junior :-\ ---- this is Page-A.aspx

        protected void Page_Load(object sender, EventArgs e)
        {
        Response.Redirect("Page-A.aspx");
        }

        Above piece of code when load, it keeps browser busy to keep loading the same page.... :omg:

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

        Reminds me of a place I worked at that had the application maintain a trace log. Procedure calls and errors were logged to a disk file. So when the disk was full and generated an error... Only to be matched by their desire not to have a cursor displayed (pre-Windows version) during start up that they moved the cursor off the screen and then wondered why a start up error message was not being displayed... I told them to just turn the cursor off. I was told you couldn't do that, see the Peter Norton book...and then any other book and find them using the same sentence. I pulled out my 6845 CRTC controller spec sheet and turned the cursor off with it still on the screen space. Error messages became visible. My Former Bitch Supervisor From HellTM declared I was arrogant for thinking I was smarter than Peter Norton (a claim I never made).

        Psychosis at 10 Film at 11

        D 1 Reply Last reply
        0
        • B BrainiacV

          Reminds me of a place I worked at that had the application maintain a trace log. Procedure calls and errors were logged to a disk file. So when the disk was full and generated an error... Only to be matched by their desire not to have a cursor displayed (pre-Windows version) during start up that they moved the cursor off the screen and then wondered why a start up error message was not being displayed... I told them to just turn the cursor off. I was told you couldn't do that, see the Peter Norton book...and then any other book and find them using the same sentence. I pulled out my 6845 CRTC controller spec sheet and turned the cursor off with it still on the screen space. Error messages became visible. My Former Bitch Supervisor From HellTM declared I was arrogant for thinking I was smarter than Peter Norton (a claim I never made).

          Psychosis at 10 Film at 11

          D Offline
          D Offline
          destynova
          wrote on last edited by
          #9

          Wait, your supervisor had declared that this task was impossible (according to Peter Norton's book) and then you tried it successfully, which proved that you were arrogant rather than... smart and determined? Real nice. Perhaps she should be working behind a library service desk somewhere :rolleyes:

          B 1 Reply Last reply
          0
          • R Ra one

            Code from one of my junior :-\ ---- this is Page-A.aspx

            protected void Page_Load(object sender, EventArgs e)
            {
            Response.Redirect("Page-A.aspx");
            }

            Above piece of code when load, it keeps browser busy to keep loading the same page.... :omg:

            D Offline
            D Offline
            DragonsRightWing
            wrote on last edited by
            #10

            rahultandon1000 wrote:

            Code from one of my junior :-> ----
             
            this is Page-A.aspx

            protected void Page_Load(object sender, EventArgs e)
            {
            Response.Redirect("Page-A.aspx");
            }

            for (int i = 0; i < 101; i++) Blackboard.WriteLine("I must not use unterminated recursion.");

            B 1 Reply Last reply
            0
            • D destynova

              Wait, your supervisor had declared that this task was impossible (according to Peter Norton's book) and then you tried it successfully, which proved that you were arrogant rather than... smart and determined? Real nice. Perhaps she should be working behind a library service desk somewhere :rolleyes:

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

              It would have been nice, but in her eyes, I showed her up. Being an insecure control freak she was always afraid I was after her job. She never accepted the idea that I had no interest in her job, I had my own career path I was interested in. But don't get me started. I and my colleagues who had the misfortune of working under her have HOURS of stories about her.

              Psychosis at 10 Film at 11

              1 Reply Last reply
              0
              • R Ra one

                Code from one of my junior :-\ ---- this is Page-A.aspx

                protected void Page_Load(object sender, EventArgs e)
                {
                Response.Redirect("Page-A.aspx");
                }

                Above piece of code when load, it keeps browser busy to keep loading the same page.... :omg:

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

                rahultandon1000 wrote:

                it keeps browser busy to keep loading the same page

                Finally someone who knows how to get the fullest from the newest i7 uber-core computers with really very fast internet connections! :laugh:

                It's an OO world.

                1 Reply Last reply
                0
                • D DragonsRightWing

                  rahultandon1000 wrote:

                  Code from one of my junior :-> ----
                   
                  this is Page-A.aspx

                  protected void Page_Load(object sender, EventArgs e)
                  {
                  Response.Redirect("Page-A.aspx");
                  }

                  for (int i = 0; i < 101; i++) Blackboard.WriteLine("I must not use unterminated recursion.");

                  B Offline
                  B Offline
                  BobJanova
                  wrote on last edited by
                  #13

                  Surely you mean for (int i = 100; i >= 0; i++) Blackboard.WriteLine("I must not use unterminated recursion."); ;)

                  R 1 Reply Last reply
                  0
                  • R Ra one

                    Code from one of my junior :-\ ---- this is Page-A.aspx

                    protected void Page_Load(object sender, EventArgs e)
                    {
                    Response.Redirect("Page-A.aspx");
                    }

                    Above piece of code when load, it keeps browser busy to keep loading the same page.... :omg:

                    A Offline
                    A Offline
                    Anuj Tripathi
                    wrote on last edited by
                    #14

                    rahultandon1000 wrote:

                    protected void Page_Load(object sender, EventArgs e) { Response.Redirect("Page-A.aspx"); }

                    Page-A.aspx .. Is this the real page name or you have modified it ?

                    J 1 Reply Last reply
                    0
                    • A Anuj Tripathi

                      rahultandon1000 wrote:

                      protected void Page_Load(object sender, EventArgs e) { Response.Redirect("Page-A.aspx"); }

                      Page-A.aspx .. Is this the real page name or you have modified it ?

                      J Offline
                      J Offline
                      Jeroen De Dauw
                      wrote on last edited by
                      #15

                      If it's the real name, it's a bigger horror then the relatively small mistake of redirecting to the wrong page...

                      Jeroen De Dauw (blog | Twitter | Identi.ca)

                      B 1 Reply Last reply
                      0
                      • J Jeroen De Dauw

                        If it's the real name, it's a bigger horror then the relatively small mistake of redirecting to the wrong page...

                        Jeroen De Dauw (blog | Twitter | Identi.ca)

                        B Offline
                        B Offline
                        BobJanova
                        wrote on last edited by
                        #16

                        He stated earlier that it's a login loop, not as simple as what he posted, so I imagine the page is actually Login.aspx or similar. (Which is a relatively easy mistake to make with how login protection works ... just needs you to accidentally put an authorisation check on the login page.)

                        1 Reply Last reply
                        0
                        • B BobJanova

                          Surely you mean for (int i = 100; i >= 0; i++) Blackboard.WriteLine("I must not use unterminated recursion."); ;)

                          R Offline
                          R Offline
                          Rob Grainger
                          wrote on last edited by
                          #17

                          Or even...

                          void F() {
                          Blackboard.WriteLine("I must not use unterminated recursion");
                          F();
                          }

                          (Your version was unterminated iteration)

                          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