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. Get rid of this programmer

Get rid of this programmer

Scheduled Pinned Locked Moved The Weird and The Wonderful
49 Posts 25 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.
  • E Offline
    E Offline
    eunderwo00
    wrote on last edited by
    #1

    I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

    C S T P D 15 Replies Last reply
    0
    • E eunderwo00

      I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

      C Offline
      C Offline
      chrishuff
      wrote on last edited by
      #2

      Look at the bright side, the code was easy to understand.

      1 Reply Last reply
      0
      • E eunderwo00

        I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

        S Offline
        S Offline
        StevenWalsh
        wrote on last edited by
        #3

        didn't he try to compile it before he gave you the code.... or better yet, Didn't the syntax highlighting of whatever the latest and greatest IDE you're using catch it... or if this is c++ why didn't he just go int_i++ its a lot faster then inc(int_i) (assuming he had his datatypes spelled right)

        D N 2 Replies Last reply
        0
        • E eunderwo00

          I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

          T Offline
          T Offline
          Tristan Rhodes
          wrote on last edited by
          #4

          Ok, that's pretty scary. :confused:

          ------------------------------- Carrier Bags - 21st Century Tumbleweed.

          1 Reply Last reply
          0
          • E eunderwo00

            I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            At least it probably wasn't copied and pasted from an example on a disk that came with a book.

            1 Reply Last reply
            0
            • S StevenWalsh

              didn't he try to compile it before he gave you the code.... or better yet, Didn't the syntax highlighting of whatever the latest and greatest IDE you're using catch it... or if this is c++ why didn't he just go int_i++ its a lot faster then inc(int_i) (assuming he had his datatypes spelled right)

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

              TheCoolestDudeInComputerWorld wrote:

              didn't he try to compile it before he gave you the code.... or better yet, Didn't the syntax highlighting of whatever the latest and greatest IDE you're using catch it...

              Why would it?? It's perfectly legal code! It's not up to the IDE to do optimizations.

              TheCoolestDudeInComputerWorld wrote:

              if this is c++ why didn't he just go int_i++

              That's probably why it's in the Coding Horrors forum.

              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              • E eunderwo00

                I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                More proof that an idiot can write bad code in any language - not just VB. :-D

                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                J S 2 Replies Last reply
                0
                • E eunderwo00

                  I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

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

                  eunderwo00 wrote:

                  private integer inc(integer int_i)

                  And what language is this, btw? Looks like C# or Java except for the integer type which is VB-like.


                  Programming Blog utf8-cpp

                  1 Reply Last reply
                  0
                  • S StevenWalsh

                    didn't he try to compile it before he gave you the code.... or better yet, Didn't the syntax highlighting of whatever the latest and greatest IDE you're using catch it... or if this is c++ why didn't he just go int_i++ its a lot faster then inc(int_i) (assuming he had his datatypes spelled right)

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

                    TheCoolestDudeInComputerWorld wrote:

                    if this is c++ why didn't he just go int_i++ its a lot faster then inc(int_i) (assuming he had his datatypes spelled right)

                    This is not C++. The private keyword cannot precede a function like this in C++. Looks like some C#/VB hybrid to me ;P But if it was C++, this function would most probably be optimized away by the compiler, so there would be no performance penalty.


                    Programming Blog utf8-cpp

                    D 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      More proof that an idiot can write bad code in any language - not just VB. :-D

                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      J Offline
                      J Offline
                      John R Shaw
                      wrote on last edited by
                      #10

                      :laugh::laugh::laugh::laugh:

                      INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                      1 Reply Last reply
                      0
                      • N Nemanja Trifunovic

                        TheCoolestDudeInComputerWorld wrote:

                        if this is c++ why didn't he just go int_i++ its a lot faster then inc(int_i) (assuming he had his datatypes spelled right)

                        This is not C++. The private keyword cannot precede a function like this in C++. Looks like some C#/VB hybrid to me ;P But if it was C++, this function would most probably be optimized away by the compiler, so there would be no performance penalty.


                        Programming Blog utf8-cpp

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #11

                        It's entirely C#, not a hybrid.

                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                             2006, 2007

                        M 1 Reply Last reply
                        0
                        • E eunderwo00

                          I hired a programmer right out of school. Started him on a very simple project. I performed a tech review of the code and saw the following method call private integer inc(integer int_i) { integer int_j=int_i+1; return int_j; } He no longer works for the company.......:wtf: Moose Man

                          J Offline
                          J Offline
                          John R Shaw
                          wrote on last edited by
                          #12

                          I would have to see the rest of their work before deciding, unless they where expected to work alone. A degree does not guarantee that someone is a programmer, only that they are capable of learning. Until recently I did not have a degree and I have been a programmer for years. I did already have an associates degree in electronics, but I was not a technician long enough to claim it as a profession. Here is an idea: Give them a personality test, that way you will have a better idea of how good a programmer they have the potential of becoming.

                          INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                          S 1 Reply Last reply
                          0
                          • D Dave Kreskowiak

                            It's entirely C#, not a hybrid.

                            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                 2006, 2007

                            M Offline
                            M Offline
                            Mike Dimmick
                            wrote on last edited by
                            #13

                            C# doesn't have an integer keyword - it's Java. I'm fairly sure that java.lang.Integer is a class, not a straightforward value type - that's still called int. That would make an Integer the equivalent of a boxed int in C#/.NET.

                            Stability. What an interesting concept. -- Chris Maunder

                            D N P 3 Replies Last reply
                            0
                            • D Dave Kreskowiak

                              More proof that an idiot can write bad code in any language - not just VB. :-D

                              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                   2006, 2007

                              S Offline
                              S Offline
                              Shog9 0
                              wrote on last edited by
                              #14

                              More proof that an idiot can make any language look like VB... ;P

                              ----

                              It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

                              --Raymond Chen on MSDN

                              1 Reply Last reply
                              0
                              • M Mike Dimmick

                                C# doesn't have an integer keyword - it's Java. I'm fairly sure that java.lang.Integer is a class, not a straightforward value type - that's still called int. That would make an Integer the equivalent of a boxed int in C#/.NET.

                                Stability. What an interesting concept. -- Chris Maunder

                                D Offline
                                D Offline
                                Dave Kreskowiak
                                wrote on last edited by
                                #15

                                Whoops! Missed that one. Comes from using primarily VB.NET to do all my work.

                                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                     2006, 2007

                                1 Reply Last reply
                                0
                                • M Mike Dimmick

                                  C# doesn't have an integer keyword - it's Java. I'm fairly sure that java.lang.Integer is a class, not a straightforward value type - that's still called int. That would make an Integer the equivalent of a boxed int in C#/.NET.

                                  Stability. What an interesting concept. -- Chris Maunder

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

                                  Mike Dimmick wrote:

                                  C# doesn't have an integer keyword - it's Java.

                                  Just like C#, Java doesn't have integer keyword. Here is the list of Java keywords.[^]


                                  Programming Blog utf8-cpp

                                  1 Reply Last reply
                                  0
                                  • J John R Shaw

                                    I would have to see the rest of their work before deciding, unless they where expected to work alone. A degree does not guarantee that someone is a programmer, only that they are capable of learning. Until recently I did not have a degree and I have been a programmer for years. I did already have an associates degree in electronics, but I was not a technician long enough to claim it as a profession. Here is an idea: Give them a personality test, that way you will have a better idea of how good a programmer they have the potential of becoming.

                                    INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

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

                                    I didn't consider the possibility, maybe he just had a brain fart? I can remember writing what i was thinking one or two times. Granted he SHOULD have read over his code before presenting it... I can say I've presented code to my boss without fully testing it out of stupid young confidence.

                                    T J 2 Replies Last reply
                                    0
                                    • S StevenWalsh

                                      I didn't consider the possibility, maybe he just had a brain fart? I can remember writing what i was thinking one or two times. Granted he SHOULD have read over his code before presenting it... I can say I've presented code to my boss without fully testing it out of stupid young confidence.

                                      T Offline
                                      T Offline
                                      Teashirt2
                                      wrote on last edited by
                                      #18

                                      Bunch of bruts aren't you. Have some mercy for the young and inexperienced. In my work I sometimes see more creative work from people you would have fired.

                                      1 Reply Last reply
                                      0
                                      • S StevenWalsh

                                        I didn't consider the possibility, maybe he just had a brain fart? I can remember writing what i was thinking one or two times. Granted he SHOULD have read over his code before presenting it... I can say I've presented code to my boss without fully testing it out of stupid young confidence.

                                        J Offline
                                        J Offline
                                        John R Shaw
                                        wrote on last edited by
                                        #19

                                        That was more than a brain fart, but it would have done what it was designed to do. It was just a foolish thing to do. I have never had a boss that could really understand the code without me explaining it to him. Matter of fact I cust one for saying I did not understand the question, when the fact was he did not understand the answer. Of course they had just hired him and he eventialy learned that I knew what I was doing.

                                        INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                                        1 Reply Last reply
                                        0
                                        • M Mike Dimmick

                                          C# doesn't have an integer keyword - it's Java. I'm fairly sure that java.lang.Integer is a class, not a straightforward value type - that's still called int. That would make an Integer the equivalent of a boxed int in C#/.NET.

                                          Stability. What an interesting concept. -- Chris Maunder

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

                                          May have used # define integer int or typedef

                                          N 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