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. Smart programmers

Smart programmers

Scheduled Pinned Locked Moved The Lounge
c++rubycomarchitecture
48 Posts 16 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.
  • R Rajesh R Subramanian

    So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

    //A day has passed by... this must be definitely an invalid session
    if(m_thisDay != date.T_day)
    Disconnect(SESSION_PREV, FORCE);

    And this is just the beginning :((

    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

    K Offline
    K Offline
    Kevin McFarlane
    wrote on last edited by
    #17

    Rajesh R Subramanian wrote:

    No documentation whatsoever

    Quite a common scenario - as with my current app. which I inherited. Plus zero code comments as well. :mad:

    Kevin

    R 1 Reply Last reply
    0
    • K Kevin McFarlane

      Rajesh R Subramanian wrote:

      No documentation whatsoever

      Quite a common scenario - as with my current app. which I inherited. Plus zero code comments as well. :mad:

      Kevin

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #18

      Kevin McFarlane wrote:

      Plus zero code comments as well.

      No documentation? I can live with it. But come on! Code commenting is not *that* hard to do. I won't accept an excuse, whatsoever. Those bastards deserve a slow and painful death.

      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

      K 1 Reply Last reply
      0
      • L Lost User

        Rajesh R Subramanian wrote:

        I find this gem comment with relevant code:

        Every Indian programmer has be redirected to Correct Forum[^] regardless of how many awards they receive. ;P :laugh:

        "Sometimes the greatest journey is the distance between two people" - Nice quote from a Nice Indian Movie

        R Offline
        R Offline
        realJSOP
        wrote on last edited by
        #19

        And some Indian programmers are so hopelessly clueless that they can't tell the difference between a programming question and a programming rant.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        L 1 Reply Last reply
        0
        • N NormDroid

          Before you took the job did you ask to see the team and look at the code you'll be working on? I always do.

          www.software-kinetics.co.uk

          R Offline
          R Offline
          realJSOP
          wrote on last edited by
          #20

          norm .net wrote:

          did you ask to see the team

          What good would that do? All Indians look the same, so it would be like looking in a mirror.

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          R N 2 Replies Last reply
          0
          • R realJSOP

            And some Indian programmers are so hopelessly clueless that they can't tell the difference between a programming question and a programming rant.

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #21

            And some people are busy enough to notice a joke icon and are much more busy to click on the correct forum link provided.

            "Sometimes the greatest journey is the distance between two people" - Nice quote from a Nice Indian Movie

            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              Kevin McFarlane wrote:

              Plus zero code comments as well.

              No documentation? I can live with it. But come on! Code commenting is not *that* hard to do. I won't accept an excuse, whatsoever. Those bastards deserve a slow and painful death.

              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

              K Offline
              K Offline
              Kevin McFarlane
              wrote on last edited by
              #22

              Rajesh R Subramanian wrote:

              Those bastards deserve a slow and painful death.

              I agree. :) Management and/or Team Leader ought to keep on top of that sort of thing. Ideally there should be code reviews but in environments where there isn't (the vast majority) there should at least be some minimal standards.

              Kevin

              E 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                //A day has passed by... this must be definitely an invalid session
                if(m_thisDay != date.T_day)
                Disconnect(SESSION_PREV, FORCE);

                And this is just the beginning :((

                Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                D Offline
                D Offline
                Dy
                wrote on last edited by
                #23

                I've been in a similar position. As frustrating as it might be, take comfort from the fact that the work is unlikely to dry up any time soon. Unless the customer decides enough is enough....

                - Dy

                1 Reply Last reply
                0
                • R realJSOP

                  norm .net wrote:

                  did you ask to see the team

                  What good would that do? All Indians look the same, so it would be like looking in a mirror.

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #24

                  John Simmons / outlaw programmer wrote:

                  All Indians look the same

                  Are you confusing India with Japan? :)

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  N 1 Reply Last reply
                  0
                  • G Graham Bradshaw

                    norm .net wrote:

                    look at the code you'll be working on? I always do.

                    They let you look at what is probably proprietary code before you've signed the contract? You must look very trustworthy!

                    N Offline
                    N Offline
                    NormDroid
                    wrote on last edited by
                    #25

                    I'm not being picky here, but you can hardly copy the system by glancing a page of code :wtf:. I always ask to see the system and the codebase I'll be working on, it saves you and the future employer at lot of time when it comes to the start date and you don't feel it's the job for you on day one after looking at the code.

                    www.software-kinetics.co.uk

                    G E 2 Replies Last reply
                    0
                    • R realJSOP

                      norm .net wrote:

                      did you ask to see the team

                      What good would that do? All Indians look the same, so it would be like looking in a mirror.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      N Offline
                      N Offline
                      NormDroid
                      wrote on last edited by
                      #26

                      John Simmons / outlaw programmer wrote:

                      so it would be like looking in a mirror.

                      I hope not Johnny Boy, I'm not Indian :rolleyes:.

                      www.software-kinetics.co.uk

                      1 Reply Last reply
                      0
                      • R Rajesh R Subramanian

                        John Simmons / outlaw programmer wrote:

                        All Indians look the same

                        Are you confusing India with Japan? :)

                        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                        N Offline
                        N Offline
                        NormDroid
                        wrote on last edited by
                        #27

                        :laugh: don't matter to John he tars everyone with the same old brush.

                        www.software-kinetics.co.uk

                        R 1 Reply Last reply
                        0
                        • N NormDroid

                          I'm not being picky here, but you can hardly copy the system by glancing a page of code :wtf:. I always ask to see the system and the codebase I'll be working on, it saves you and the future employer at lot of time when it comes to the start date and you don't feel it's the job for you on day one after looking at the code.

                          www.software-kinetics.co.uk

                          G Offline
                          G Offline
                          Graham Bradshaw
                          wrote on last edited by
                          #28

                          norm .net wrote:

                          you can hardly copy the system by glancing a page of code

                          But to make the decision, you surely need to see quite a more than one page anyway?

                          N 1 Reply Last reply
                          0
                          • R Rajesh R Subramanian

                            So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                            //A day has passed by... this must be definitely an invalid session
                            if(m_thisDay != date.T_day)
                            Disconnect(SESSION_PREV, FORCE);

                            And this is just the beginning :((

                            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                            E Offline
                            E Offline
                            El Corazon
                            wrote on last edited by
                            #29

                            needs more comments... "well... duh!" after invalid session and "I hate DST" after the lines shown... ;P hehehe, sorry... just had to.... ;)

                            1 Reply Last reply
                            0
                            • N NormDroid

                              :laugh: don't matter to John he tars everyone with the same old brush.

                              www.software-kinetics.co.uk

                              R Offline
                              R Offline
                              Rajesh R Subramanian
                              wrote on last edited by
                              #30

                              :laugh: Yes! Sometimes, I've seen him trying to get out a joke desparately, but then he gets out an old fart. But he's one of my fav CPians you see.

                              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                              N 1 Reply Last reply
                              0
                              • R Rajesh R Subramanian

                                :laugh: Yes! Sometimes, I've seen him trying to get out a joke desparately, but then he gets out an old fart. But he's one of my fav CPians you see.

                                Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                                N Offline
                                N Offline
                                NormDroid
                                wrote on last edited by
                                #31

                                Rajesh R Subramanian wrote:

                                But he's one of my fav CPians you see.

                                I like Johns, straight to the point - no holds barred attitude.

                                www.software-kinetics.co.uk

                                1 Reply Last reply
                                0
                                • G Graham Bradshaw

                                  norm .net wrote:

                                  you can hardly copy the system by glancing a page of code

                                  But to make the decision, you surely need to see quite a more than one page anyway?

                                  N Offline
                                  N Offline
                                  NormDroid
                                  wrote on last edited by
                                  #32

                                  You can get a gist of whats in store, especially if you see i,j,k and lacking any OO, I've asked to see code many at time and have never been refused (yet).

                                  www.software-kinetics.co.uk

                                  1 Reply Last reply
                                  0
                                  • R Rajesh R Subramanian

                                    So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                                    //A day has passed by... this must be definitely an invalid session
                                    if(m_thisDay != date.T_day)
                                    Disconnect(SESSION_PREV, FORCE);

                                    And this is just the beginning :((

                                    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                                    J Offline
                                    J Offline
                                    Jim Crafton
                                    wrote on last edited by
                                    #33

                                    Bah! Tell 'em to dump it for a REAL mawnnster framework[^]! :)

                                    ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

                                    R 1 Reply Last reply
                                    0
                                    • N NormDroid

                                      Before you took the job did you ask to see the team and look at the code you'll be working on? I always do.

                                      www.software-kinetics.co.uk

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

                                      norm .net wrote:

                                      Before you took the job did you ask to see the team and look at the code you'll be working on? I always do.

                                      Never been in a position to see the code before officially joining the team, but it may be good - after all I have never seen a code base I like :)

                                      Programming Blog utf8-cpp

                                      1 Reply Last reply
                                      0
                                      • R Rajesh R Subramanian

                                        So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                                        //A day has passed by... this must be definitely an invalid session
                                        if(m_thisDay != date.T_day)
                                        Disconnect(SESSION_PREV, FORCE);

                                        And this is just the beginning :((

                                        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                                        D Offline
                                        D Offline
                                        Delphi4ever
                                        wrote on last edited by
                                        #35

                                        I feel your pain...Espesially about the not documentaion. Not a single page. 1000s of source files, but no documents. Not. Even. One.

                                        R 1 Reply Last reply
                                        0
                                        • R Rajesh R Subramanian

                                          So, after I've joined my new employer, they welcomed me with an incomplete mawnnster framework, written in C++. No documentation whatsoever, multi threaded, expected to run on more than one operating system, friendly variable names like s, t (this is a string), pp1, pp2, etc., A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                                          //A day has passed by... this must be definitely an invalid session
                                          if(m_thisDay != date.T_day)
                                          Disconnect(SESSION_PREV, FORCE);

                                          And this is just the beginning :((

                                          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                                          E Offline
                                          E Offline
                                          El Corazon
                                          wrote on last edited by
                                          #36

                                          Rajesh R Subramanian wrote:

                                          A complaint was that the connection drops out exactly at 12 in the night. Half a day is gone and then I find this gem comment with relevant code:

                                          I know it won't make you feel better, but this is a common problem here. One of the most common time formats we accept is time since midnight with a some nanosecond level of accuracy I always forget.... anyhow, because the time includes no date, you sometimes have to do a little extra math when it comes to elapsed time... or not as in some cases. elapsedTime=currentTime-lastTime; // get elapsed time since last pass if (elapsedTime<0) exit(1); // we passed midnight, panic, exit! That is more common than you would believe, sometimes even with the comments intact. Of course worse still are those who leave off the if statement at all, and accept time as gospel. When you see time move backwards in data review, you know someone forgot to handle the midnight roll-over. :sigh: Of all the time errors you can imagine, midnight roll-over I have fixed more often than any other. :sigh:

                                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                                          R 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