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. Oh man...

Oh man...

Scheduled Pinned Locked Moved The Weird and The Wonderful
com
18 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.
  • CPalliniC CPallini

    Funny. He/she still keeps on coding? :-D

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

    M Offline
    M Offline
    MarkB777
    wrote on last edited by
    #3

    Uni student.

    Mark Brock Click here to view my blog

    1 Reply Last reply
    0
    • M MarkB777

      string drinkType = tbDrinkType.Text; if (drinkType != "") { tbDrinkType.Text = drinktype; }

      Mark Brock Click here to view my blog

      M Offline
      M Offline
      Mladen Jankovic
      wrote on last edited by
      #4

      It's very useful debugging technique, especially in loops, although you can use "Breakpoint Conditions" for that matter:

      for(int i=0;i<100;i++)
      {
      if(i==10)
      i=i; // <- break point
      }

      Mostly, when you see programmers, they aren't doing anything. One of the attractive things about programmers is that you cannot tell whether or not they are working simply by looking at them. Very often they're sitting there seemingly drinking coffee and gossiping, or just staring into space. What the programmer is trying to do is get a handle on all the individual and unrelated ideas that are scampering around in his head. (Charles M Strauss)

      Y 1 Reply Last reply
      0
      • M Mladen Jankovic

        It's very useful debugging technique, especially in loops, although you can use "Breakpoint Conditions" for that matter:

        for(int i=0;i<100;i++)
        {
        if(i==10)
        i=i; // <- break point
        }

        Mostly, when you see programmers, they aren't doing anything. One of the attractive things about programmers is that you cannot tell whether or not they are working simply by looking at them. Very often they're sitting there seemingly drinking coffee and gossiping, or just staring into space. What the programmer is trying to do is get a handle on all the individual and unrelated ideas that are scampering around in his head. (Charles M Strauss)

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #5

        Mladen Jankovic wrote:

        It's very useful debugging technique, especially in loops, although you can use "Breakpoint Conditions" for that matter:

        sometime I insert quick and crappy code for debugging purposes. But always I comment that portion as being a debug code and not to be included in production. I insert the comment in case I forgot to remove the code and some one may catch it. Most of the time I use break point conditions :)

        /* I can C */ // or !C Yusuf

        1 Reply Last reply
        0
        • M MarkB777

          string drinkType = tbDrinkType.Text; if (drinkType != "") { tbDrinkType.Text = drinktype; }

          Mark Brock Click here to view my blog

          T Offline
          T Offline
          Thomas Krojer
          wrote on last edited by
          #6

          maybe too much: drinkType == Whiskey

          1 Reply Last reply
          0
          • CPalliniC CPallini

            Funny. He/she still keeps on coding? :-D

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #7

            He should be a Technical Lead now.

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            CPalliniC R 2 Replies Last reply
            0
            • V Vasudevan Deepak Kumar

              He should be a Technical Lead now.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #8

              Definitely. :-D

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • M MarkB777

                string drinkType = tbDrinkType.Text; if (drinkType != "") { tbDrinkType.Text = drinktype; }

                Mark Brock Click here to view my blog

                S Offline
                S Offline
                Spacix One
                wrote on last edited by
                #9

                this could only be better with getter/setter methods!!

                tbDrinkType.Text
                {
                get
                {
                return drinkType;
                }
                set
                {
                drinkType = value;
                }
                }


                -Spacix All your skynet questions[^] belong to solved

                1 Reply Last reply
                0
                • V Vasudevan Deepak Kumar

                  He should be a Technical Lead now.

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  R Offline
                  R Offline
                  rbuchana
                  wrote on last edited by
                  #10

                  Not technical lead, but management.

                  M J 2 Replies Last reply
                  0
                  • R rbuchana

                    Not technical lead, but management.

                    M Offline
                    M Offline
                    MarkB777
                    wrote on last edited by
                    #11

                    haha!

                    Mark Brock Click here to view my blog

                    1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      Funny. He/she still keeps on coding? :-D

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                      J Offline
                      J Offline
                      Jeff Dickey
                      wrote on last edited by
                      #12

                      Some people like hitting themselves on the head with a hammer. Others even enjoy hitting other people on the head with a hammer. This mental singularity obviously is one who innovates on the second group with a _jack_hammer. ;P

                      Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

                      W 1 Reply Last reply
                      0
                      • R rbuchana

                        Not technical lead, but management.

                        J Offline
                        J Offline
                        Jeff Dickey
                        wrote on last edited by
                        #13

                        There's a difference in your shop?!? Lucky ruddy you! N.B. The above expression of technical information and/or opinion shall not be construed as having anything to do with any previous, current, future or potential client; with competitors, successors and/or assigns of the same; nor with any organisation staffed exclusively by individuals each of whom posess at least two functioning brain cells. N.N.B. The exceptions to the preceding disclaimer should be obvious, self-evident and not in any way identified by (and therefore actionable against) me. So there. ;P

                        1 Reply Last reply
                        0
                        • M MarkB777

                          string drinkType = tbDrinkType.Text; if (drinkType != "") { tbDrinkType.Text = drinktype; }

                          Mark Brock Click here to view my blog

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #14

                          Management material. Why? 1. discussing what management likes to discuss most, drinking 2. In the way management communicats: repetition and redundancy 3. In the way management thinks: nonsensical Marc

                          Thyme In The Country Interacx My Blog

                          1 Reply Last reply
                          0
                          • M MarkB777

                            string drinkType = tbDrinkType.Text; if (drinkType != "") { tbDrinkType.Text = drinktype; }

                            Mark Brock Click here to view my blog

                            D Offline
                            D Offline
                            David St Hilaire
                            wrote on last edited by
                            #15

                            Can you explain the horror? At first I thought you were getting a value from a text box and putting it right back into the text box, but after closer inspection I see that isn't the case (assuming the language is case-sensitive).

                            Y M 2 Replies Last reply
                            0
                            • D David St Hilaire

                              Can you explain the horror? At first I thought you were getting a value from a text box and putting it right back into the text box, but after closer inspection I see that isn't the case (assuming the language is case-sensitive).

                              Y Offline
                              Y Offline
                              Yusuf
                              wrote on last edited by
                              #16

                              David St. Hilaire wrote:

                              Can you explain the horror? At first I thought you were getting a value from a text box and putting it right back into the text box, but after closer inspection I see that isn't the case (assuming the language is case-sensitive).

                              then what else is the code doing. The only exception is when the text in the TextBox is empty

                              Yusuf

                              1 Reply Last reply
                              0
                              • D David St Hilaire

                                Can you explain the horror? At first I thought you were getting a value from a text box and putting it right back into the text box, but after closer inspection I see that isn't the case (assuming the language is case-sensitive).

                                M Offline
                                M Offline
                                MarkB777
                                wrote on last edited by
                                #17

                                The person who wrote this is simply checking if the text in the textbox is empty. a simple: if (tbDrinkType.Text == "") { // Do stuff } would have been quite satisfactory. ;)

                                Mark Brock Click here to view my blog

                                1 Reply Last reply
                                0
                                • J Jeff Dickey

                                  Some people like hitting themselves on the head with a hammer. Others even enjoy hitting other people on the head with a hammer. This mental singularity obviously is one who innovates on the second group with a _jack_hammer. ;P

                                  Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

                                  W Offline
                                  W Offline
                                  Wiltek Ghozali
                                  wrote on last edited by
                                  #18

                                  :) Can i categorize it with advice ?

                                  http://www.wiltech-center.com

                                  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