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. Don't they know what an array is?

Don't they know what an array is?

Scheduled Pinned Locked Moved The Weird and The Wonderful
cssdata-structureshelpquestioncareer
30 Posts 19 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.
  • P PIEBALDconsult

    Arrays are magical objects that only the high priests can call into being and manipulate.

    0 Offline
    0 Offline
    0x3c0
    wrote on last edited by
    #5

    And every now and again developers must be sacrificed in order to summon them.

    OSDev :)

    OriginalGriffO 1 Reply Last reply
    0
    • 0 0x3c0

      And every now and again developers must be sacrificed in order to summon them.

      OSDev :)

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

      I can think of a few you can have - do they have to be virgins? (buyer collects, sold as seen and definately without warrantee)

      No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

      "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

      R P 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        I can think of a few you can have - do they have to be virgins? (buyer collects, sold as seen and definately without warrantee)

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

        R Offline
        R Offline
        ragnaroknrol
        wrote on last edited by
        #7

        OriginalGriff wrote:

        do they have to be virgins?

        Not a very limiting factor...

        OriginalGriffO 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I can think of a few you can have - do they have to be virgins? (buyer collects, sold as seen and definately without warrantee)

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

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

          Yes, first-time sacrifices only.

          1 Reply Last reply
          0
          • R ragnaroknrol

            OriginalGriff wrote:

            do they have to be virgins?

            Not a very limiting factor...

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

            Maybe not in the states, but in europe software developers are next only to film and pop stars in the "shagabillity" stakes! Unless they are VB developers, obviously. </lie mode>

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

            "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

            N 1 Reply Last reply
            0
            • U User 4483848

              I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

              A Offline
              A Offline
              akash dhar
              wrote on last edited by
              #10

              It's a normal practice that the company does... they just find their own way to develop something interesting and land up into something weird... Post it in some newspaper it is a sure shot horror....

              syth.feana

              1 Reply Last reply
              0
              • U User 4483848

                I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

                Brian C HartB Offline
                Brian C HartB Offline
                Brian C Hart
                wrote on last edited by
                #11

                Member 4487083 wrote:

                I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

                You're right; that is completely retarded.

                Sincerely Yours, Brian Hart

                1 Reply Last reply
                0
                • U User 4483848

                  I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

                  U Offline
                  U Offline
                  User 357305
                  wrote on last edited by
                  #12

                  Oh trust me, this code (may be in JSON format would help?) is MUCH better for passing stuff across the process border and through shared memory then defining all the data in structures in IDL file and implement custom COM marshaller. Then any single access to this data structure causes almost 1000 disk read operations (it reads TLB from DLL) - I had to debug it, and it is not fun. Once again, if they use this ~ for passing data across the process border - I would not blame them - yes, I would use SafeArray instead, but still I would not blame these guys.

                  W 1 Reply Last reply
                  0
                  • U User 4483848

                    I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

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

                    What language is it in?

                    U 1 Reply Last reply
                    0
                    • U User 4483848

                      I'm working with some really bad code at the moment. There is some code which joins a load of values (integers) with '~', and then it passes it to a function. So it would be something like 1~5~12~3 etc. In the function it then splits this values on the '~' to get each value. It would be so much more readable, efficient, and less frangile if they had used an array. It amazes me how these people do their job. The other code in the project isn't much better either, actually the other problems are more difficult to fix. I hate blaming other peoples code, but I think that's what I will need to do.

                      V Offline
                      V Offline
                      VickyC
                      wrote on last edited by
                      #14

                      Does the language support lists?

                      U 1 Reply Last reply
                      0
                      • L Lost User

                        What language is it in?

                        U Offline
                        U Offline
                        User 4483848
                        wrote on last edited by
                        #15

                        C#

                        L 1 Reply Last reply
                        0
                        • V VickyC

                          Does the language support lists?

                          U Offline
                          U Offline
                          User 4483848
                          wrote on last edited by
                          #16

                          VickyC# wrote:

                          Does the language support lists?

                          It's C#.

                          L 1 Reply Last reply
                          0
                          • U User 4483848

                            C#

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

                            Then ~ does not join ints, it complements them; do you mean they passed a string with "~" as delimiter?

                            P 1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              Maybe not in the states, but in europe software developers are next only to film and pop stars in the "shagabillity" stakes! Unless they are VB developers, obviously. </lie mode>

                              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

                              N Offline
                              N Offline
                              Nagy Vilmos
                              wrote on last edited by
                              #18

                              OriginalGriff wrote:

                              Unless they are VB developers, obviously

                              Then they trump even Brad Pitt!!


                              Panic, Chaos, Destruction. My work here is done.

                              R 1 Reply Last reply
                              0
                              • L Lost User

                                Then ~ does not join ints, it complements them; do you mean they passed a string with "~" as delimiter?

                                P Offline
                                P Offline
                                phannon86
                                wrote on last edited by
                                #19

                                That's the impression I got.

                                He who makes a beast out of himself gets rid of the pain of being a man.

                                1 Reply Last reply
                                0
                                • U User 357305

                                  Oh trust me, this code (may be in JSON format would help?) is MUCH better for passing stuff across the process border and through shared memory then defining all the data in structures in IDL file and implement custom COM marshaller. Then any single access to this data structure causes almost 1000 disk read operations (it reads TLB from DLL) - I had to debug it, and it is not fun. Once again, if they use this ~ for passing data across the process border - I would not blame them - yes, I would use SafeArray instead, but still I would not blame these guys.

                                  W Offline
                                  W Offline
                                  Wes Jones
                                  wrote on last edited by
                                  #20

                                  that's extending a quite a bit of credit, lol!

                                  1 Reply Last reply
                                  0
                                  • N Nagy Vilmos

                                    OriginalGriff wrote:

                                    Unless they are VB developers, obviously

                                    Then they trump even Brad Pitt!!


                                    Panic, Chaos, Destruction. My work here is done.

                                    R Offline
                                    R Offline
                                    ragnaroknrol
                                    wrote on last edited by
                                    #21

                                    You are both horrible liars. Come on, we all know the standard programmer package involves a guy living in mom's basement at 20-something who plays World of Warcraft, goes to ren faires and hasn't touch a female pink part in 20 something years. The upgraded "I'll code for food" programmer has a wife, 2 kids, a mortgage and wishes he had gone into business school. For the premium package you get the choice of it being male or female, and the programmer is actually happy in the job. Most business do not opt for this upgrade.

                                    L OriginalGriffO B 3 Replies Last reply
                                    0
                                    • R ragnaroknrol

                                      You are both horrible liars. Come on, we all know the standard programmer package involves a guy living in mom's basement at 20-something who plays World of Warcraft, goes to ren faires and hasn't touch a female pink part in 20 something years. The upgraded "I'll code for food" programmer has a wife, 2 kids, a mortgage and wishes he had gone into business school. For the premium package you get the choice of it being male or female, and the programmer is actually happy in the job. Most business do not opt for this upgrade.

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

                                      ragnaroknrol wrote:

                                      You are both horrible liars.

                                      I think they are quite good at it! :laugh:

                                      1 Reply Last reply
                                      0
                                      • R ragnaroknrol

                                        You are both horrible liars. Come on, we all know the standard programmer package involves a guy living in mom's basement at 20-something who plays World of Warcraft, goes to ren faires and hasn't touch a female pink part in 20 something years. The upgraded "I'll code for food" programmer has a wife, 2 kids, a mortgage and wishes he had gone into business school. For the premium package you get the choice of it being male or female, and the programmer is actually happy in the job. Most business do not opt for this upgrade.

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

                                        Obviously, you are not a european software developer! (Or you are a VB developer...) ;P

                                        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

                                        "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
                                        • U User 4483848

                                          VickyC# wrote:

                                          Does the language support lists?

                                          It's C#.

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

                                          OMG!!! all the way I have been thinking it is some good old FORTRAN or PASCAL !!!

                                          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