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. Why String?

Why String?

Scheduled Pinned Locked Moved The Lounge
comquestion
70 Posts 49 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.
  • M Michael Kingsford Gray

    'Back in the day, A$ was even pronounced, "A-string."' Absolute intercoursing-bullshit.

    D Offline
    D Offline
    DerekT P
    wrote on last edited by
    #31

    Everybody every programmer I knew pronounced it that way. Even professional Fortran and Cobol programmers recognised the convention from their early Basic days. (Who didn't learn programming via Basic?)

    M R 2 Replies Last reply
    0
    • D DerekT P

      Everybody every programmer I knew pronounced it that way. Even professional Fortran and Cobol programmers recognised the convention from their early Basic days. (Who didn't learn programming via Basic?)

      M Offline
      M Offline
      Michael Kingsford Gray
      wrote on last edited by
      #32

      I did not learn programming from BASIC, for one. As it has not been invented when I learned programming. Is that a valid answer? I accept your correction that you are not aware of any BASIC programmer who did not pronounce it "that way". But that is not my lookout. I began with FORTRAN, an a CDC6600. I subsequently learned BASIC from its inception, and made a large portion of my long professional career from programming in it. But, I have NEVER heard of this vocalisation until you raised it. I have been a professional FORTRAN programmer since 1973, and a COBOL programmer since 1975. Yet I do not recognise this so-called 'convention' in one fraction of an iota. Not with me, nor any of my compartriates. Strange, that. I still call "bovine faeces".

      D P 2 Replies Last reply
      0
      • R Roger Wright

        Here, this[^] may help...

        Will Rogers never met me.

        M Offline
        M Offline
        Mike Hankey
        wrote on last edited by
        #33

        On order thanks.

        VS2010/Atmel Studio 6.0 ToDo Manager Extension
        Version 3.0 now available. There is no place like 127.0.0.1

        1 Reply Last reply
        0
        • A AspDotNetDev

          I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

          Thou mewling ill-breeding pignut!

          E Offline
          E Offline
          englebart
          wrote on last edited by
          #34

          The next project I start or join on the "ground floor" will ban String/Text as a datatype. Everything declared as a String could and should have a more descriptive data type. Which API is more descriptive? assign(String, String) OR assign(EmployeeId, DepartmentId)

          A 1 Reply Last reply
          0
          • M Michael Kingsford Gray

            I did not learn programming from BASIC, for one. As it has not been invented when I learned programming. Is that a valid answer? I accept your correction that you are not aware of any BASIC programmer who did not pronounce it "that way". But that is not my lookout. I began with FORTRAN, an a CDC6600. I subsequently learned BASIC from its inception, and made a large portion of my long professional career from programming in it. But, I have NEVER heard of this vocalisation until you raised it. I have been a professional FORTRAN programmer since 1973, and a COBOL programmer since 1975. Yet I do not recognise this so-called 'convention' in one fraction of an iota. Not with me, nor any of my compartriates. Strange, that. I still call "bovine faeces".

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

            I've heard it that way. In fact, that's also the way my colleagues referred to it.

            1 Reply Last reply
            0
            • L Lost User

              Back in the day, Computers were made of rope and wood , and each character was knotted onto a length of string. Sometimes the string would unravel. Hence the early programmers mantra - did it compile? I'm a frayed knot.

              MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

              D Offline
              D Offline
              DarthDana
              wrote on last edited by
              #36

              Love it! :-D A string walks into a bar...

              1 Reply Last reply
              0
              • M Michael Kingsford Gray

                'Back in the day, A$ was even pronounced, "A-string."' Absolute intercoursing-bullshit.

                M Offline
                M Offline
                MikeD 2
                wrote on last edited by
                #37

                Michael K Gray wrote:

                Absolute intercoursing-bullsh*t.

                I see your bullsh*t and raise you a pile of horsesh*t Whilst possibly not quite as old long term developer as you I learnt basic in around 81 and remember that A$ was always pronounced A String So whilst it may be a slight exaggeration to say that it was always known that way it certainly was a common way to talk about it. Even on this side of the pond

                D 1 Reply Last reply
                0
                • A AspDotNetDev

                  I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                  Thou mewling ill-breeding pignut!

                  S Offline
                  S Offline
                  svella
                  wrote on last edited by
                  #38

                  http://en.wikipedia.org/wiki/String_(computer_science)[^]

                  1 Reply Last reply
                  0
                  • D DerekT P

                    Everybody every programmer I knew pronounced it that way. Even professional Fortran and Cobol programmers recognised the convention from their early Basic days. (Who didn't learn programming via Basic?)

                    R Offline
                    R Offline
                    RefugeeFromSlashDot
                    wrote on last edited by
                    #39

                    Then there are people like me who never heard of it pronounced that way until we read it here. In the DEC world it seemed be pronounced A-dollar. A% was pronounced A-percent on those rare times when one couldn't tell from the context whether we meant an integer or floating-point variable. Perhaps it's an architecture difference; those of us who started in the mini world vs. those who started in the micro world.

                    1 Reply Last reply
                    0
                    • A AspDotNetDev

                      I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                      Thou mewling ill-breeding pignut!

                      B Offline
                      B Offline
                      BrainiacV
                      wrote on last edited by
                      #40

                      I guess it is time for this grizzled olde tyme programmer to edjumacate the youngin's. Back when core (ya know, that pre-RAM stuff) was still being strung by hand and was measured in single digit K's (you know what a K is doncha? --a millionth of a gigabyte, or thereabouts...) To teach the programmers who had just emerged from the primordial slime about a sequence of characters instead of the pure numbers that they were used to, they came up with the idea of describing them as akin to beads strung on a "string". "A whale of a tale, and it's all true, I swear by my tattoo."

                      Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                      1 Reply Last reply
                      0
                      • R Roger Wright

                        Here, this[^] may help...

                        Will Rogers never met me.

                        S Offline
                        S Offline
                        spencepk
                        wrote on last edited by
                        #41

                        Too bad it doesn't come in 55-gallon drums :(

                        1 Reply Last reply
                        0
                        • M Michael Kingsford Gray

                          I did not learn programming from BASIC, for one. As it has not been invented when I learned programming. Is that a valid answer? I accept your correction that you are not aware of any BASIC programmer who did not pronounce it "that way". But that is not my lookout. I began with FORTRAN, an a CDC6600. I subsequently learned BASIC from its inception, and made a large portion of my long professional career from programming in it. But, I have NEVER heard of this vocalisation until you raised it. I have been a professional FORTRAN programmer since 1973, and a COBOL programmer since 1975. Yet I do not recognise this so-called 'convention' in one fraction of an iota. Not with me, nor any of my compartriates. Strange, that. I still call "bovine faeces".

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

                          Funny that, both the VIC-20 and BBC Micro manuals used exactly that convention. I guess that it depends which BASIC you learned and from which course or manual. These varieties of BASIC only read the first two characters of variable names, although you could make your code more readable using more.

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

                          1 Reply Last reply
                          0
                          • A AspDotNetDev

                            I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                            Thou mewling ill-breeding pignut!

                            D Offline
                            D Offline
                            Dominic Amann
                            wrote on last edited by
                            #43

                            Because a string denotes a sequence of arbitrary characters, whereas text connotes readable language of some kind.

                            1 Reply Last reply
                            0
                            • A AspDotNetDev

                              I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                              Thou mewling ill-breeding pignut!

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

                              Numbers aren't strings of digits but "Strings" are strings of characters. Base numeric data types are all of fixed size, but text data always had the problem of being of indeterminate length and required a terminator (as in C), a size and data (as in Pascal) or padded fixed length (early databases).

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

                              1 Reply Last reply
                              0
                              • M MikeD 2

                                Michael K Gray wrote:

                                Absolute intercoursing-bullsh*t.

                                I see your bullsh*t and raise you a pile of horsesh*t Whilst possibly not quite as old long term developer as you I learnt basic in around 81 and remember that A$ was always pronounced A String So whilst it may be a slight exaggeration to say that it was always known that way it certainly was a common way to talk about it. Even on this side of the pond

                                D Offline
                                D Offline
                                DarkTizzy
                                wrote on last edited by
                                #45

                                Absolutely A-String FTW! Although I much prefer G$. :cool:

                                R 1 Reply Last reply
                                0
                                • A AspDotNetDev

                                  I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                                  Thou mewling ill-breeding pignut!

                                  U Offline
                                  U Offline
                                  User 8102478
                                  wrote on last edited by
                                  #46

                                  Has to do with the internal representation. A string is an array of char. A number (int, float etc) is a 4-64 byte binary. A string is typically though of as variable length, whereas a number is a definite size. To look at a number as a sequence of digits, you are actually converting from a binary representation to a string. That sequence of digits is a sequence of char, which is to say its actually a string.

                                  1 Reply Last reply
                                  0
                                  • A AspDotNetDev

                                    I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                                    Thou mewling ill-breeding pignut!

                                    U Offline
                                    U Offline
                                    User 8230845
                                    wrote on last edited by
                                    #47

                                    I've been programming since 1979 and that is always how I heard it pronounced "A-Sting" I also to this day call the $ a String and the ! a Bang etc.

                                    1 Reply Last reply
                                    0
                                    • E englebart

                                      The next project I start or join on the "ground floor" will ban String/Text as a datatype. Everything declared as a String could and should have a more descriptive data type. Which API is more descriptive? assign(String, String) OR assign(EmployeeId, DepartmentId)

                                      A Offline
                                      A Offline
                                      aojepojefpoejafpeoj
                                      wrote on last edited by
                                      #48

                                      Right, because assign(int, int) or creating a wrapper for string named EmployeeId is much better.

                                      1 Reply Last reply
                                      0
                                      • A AspDotNetDev

                                        I was just thinking that it seems a bit odd that "string" is so commonly used by programmers to refer to some text. I would think "text" would be more appropriate. If we are using "string" just because it refers to a string of characters (aka, a sequence of characters), then why not also call numbers "strings" (as they are strings/sequences of digits and some other characters)? Any theories as to why "string" prevailed?

                                        Thou mewling ill-breeding pignut!

                                        M Offline
                                        M Offline
                                        Member 8348554
                                        wrote on last edited by
                                        #49

                                        Why a duck? brian

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          Back in the day, Computers were made of rope and wood , and each character was knotted onto a length of string. Sometimes the string would unravel. Hence the early programmers mantra - did it compile? I'm a frayed knot.

                                          MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                                          K Offline
                                          K Offline
                                          Kythen
                                          wrote on last edited by
                                          #50

                                          You know what makes that even more amusing? You're actually correct! The ancient Inca used knotted strings called quipu[^] as a sort of calculator. :cool:

                                          L 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