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. How programmers should think!

How programmers should think!

Scheduled Pinned Locked Moved The Lounge
helpquestioncareer
25 Posts 16 Posters 2 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.
  • P Pualee

    In a twisted sort of way, that shows exactly what is wrong with coders these days... X| Hey, I have a hammer! Every problem is a nail!

    M Offline
    M Offline
    megaadam
    wrote on last edited by
    #10

    Pualee wrote:

    In a twisted sort of way, that shows exactly what is wrong with coders managers these days... X|

    FTFY.

    Life is too shor

    1 Reply Last reply
    0
    • O Oso Oluwafemi Ebenezer

      At an interview, a programmer is asked what he would do if the microwave would catch fire. He says he would throw it out the window. Baffled, the interviewer asks "okay, what if the coffee brewer catches fire?" And the programmer replies "Put it in the microwave and throw it out the window, as we already have a solution for that problem."

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

      A good example of encapsulation.

      I'd rather be phishing!

      R 1 Reply Last reply
      0
      • O Oso Oluwafemi Ebenezer

        At an interview, a programmer is asked what he would do if the microwave would catch fire. He says he would throw it out the window. Baffled, the interviewer asks "okay, what if the coffee brewer catches fire?" And the programmer replies "Put it in the microwave and throw it out the window, as we already have a solution for that problem."

        B Offline
        B Offline
        Bergholt Stuttley Johnson
        wrote on last edited by
        #12

        he would do nothing - its a hardware problem

        You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

        A 1 Reply Last reply
        0
        • H HobbyProggy

          Oso Oluwafemi Ebenezer wrote:

          coffee brewer catches fire?

          Oso Oluwafemi Ebenezer wrote:

          and throw it out the window

          :wtf: you can not throw :java: out the window!

          if(this.signature != "") { MessageBox.Show("This is my signature: " + Environment.NewLine + signature); } else { MessageBox.Show("404-Signature not found"); }

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #13

          You can throw burnt coffee out the window.

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • B Bergholt Stuttley Johnson

            that's easy, you run outside and retrieve the old microwave - then put the coffee machine in it, you are not thinking the problem through

            You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

            S Offline
            S Offline
            Simon_Whale
            wrote on last edited by
            #14

            But what if your on the 12th floor? do you run really fast?

            Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

            B S 2 Replies Last reply
            0
            • S Simon_Whale

              But what if your on the 12th floor? do you run really fast?

              Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

              B Offline
              B Offline
              Bergholt Stuttley Johnson
              wrote on last edited by
              #15

              No I am programmer, I don't run fast

              You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

              1 Reply Last reply
              0
              • H HobbyProggy

                Oso Oluwafemi Ebenezer wrote:

                coffee brewer catches fire?

                Oso Oluwafemi Ebenezer wrote:

                and throw it out the window

                :wtf: you can not throw :java: out the window!

                if(this.signature != "") { MessageBox.Show("This is my signature: " + Environment.NewLine + signature); } else { MessageBox.Show("404-Signature not found"); }

                D Offline
                D Offline
                Duncan Edwards Jones
                wrote on last edited by
                #16

                You can if your language's "object" definition supports IDefenestratable - most real world modelling systems do :-)

                R 1 Reply Last reply
                0
                • M Maximilien

                  A good example of encapsulation.

                  I'd rather be phishing!

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #17

                  *Handling exception in encapsulated classes.

                  Do not escape reality : improve reality !

                  1 Reply Last reply
                  0
                  • O Oso Oluwafemi Ebenezer

                    I think it's already on fire!

                    Osofem Inc

                    F Offline
                    F Offline
                    Forogar
                    wrote on last edited by
                    #18

                    Quote:

                    it's already on fire!

                    ...and we have a solution for that!

                    - I would love to change the world, but they won’t give me the source code.

                    1 Reply Last reply
                    0
                    • D Duncan Edwards Jones

                      You can if your language's "object" definition supports IDefenestratable - most real world modelling systems do :-)

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #19

                      A 5 for knowing what defenestration means. :-D I presume you've read this[^] ;)

                      Will Rogers never met me.

                      D 1 Reply Last reply
                      0
                      • B Bergholt Stuttley Johnson

                        that's easy, you run outside and retrieve the old microwave - then put the coffee machine in it, you are not thinking the problem through

                        You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

                        P Offline
                        P Offline
                        Pualee
                        wrote on last edited by
                        #20

                        Hah, you're right! Efficiency was never part of the question!

                        1 Reply Last reply
                        0
                        • O Oso Oluwafemi Ebenezer

                          At an interview, a programmer is asked what he would do if the microwave would catch fire. He says he would throw it out the window. Baffled, the interviewer asks "okay, what if the coffee brewer catches fire?" And the programmer replies "Put it in the microwave and throw it out the window, as we already have a solution for that problem."

                          R Offline
                          R Offline
                          Roger Wright
                          wrote on last edited by
                          #21

                          Good solution, incorporating the principles of both re-usability and encapsulation.

                          Will Rogers never met me.

                          1 Reply Last reply
                          0
                          • R Roger Wright

                            A 5 for knowing what defenestration means. :-D I presume you've read this[^] ;)

                            Will Rogers never met me.

                            D Offline
                            D Offline
                            Duncan Edwards Jones
                            wrote on last edited by
                            #22

                            I like it - thanks.

                            1 Reply Last reply
                            0
                            • B Bergholt Stuttley Johnson

                              he would do nothing - its a hardware problem

                              You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

                              A Offline
                              A Offline
                              Agent__007
                              wrote on last edited by
                              #23

                              That's more funnier than the joke! :laugh: :thumbsup:

                              Your time will come, if you let it be right.

                              1 Reply Last reply
                              0
                              • S Simon_Whale

                                But what if your on the 12th floor? do you run really fast?

                                Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

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

                                Who said speed matters? That'd be premature optimization. ;P Of course, you could simply install a spare microwave to catch the exception.

                                GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                                P 1 Reply Last reply
                                0
                                • S Stefan_Lang

                                  Who said speed matters? That'd be premature optimization. ;P Of course, you could simply install a spare microwave to catch the exception.

                                  GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                                  P Offline
                                  P Offline
                                  PhilLenoir
                                  wrote on last edited by
                                  #25

                                  Clearly not a real-time programmer then! It's not a question of optimization, it's a question of a race condition.

                                  Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

                                  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