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. I was going to write an article about how pointers aren't confusing

I was going to write an article about how pointers aren't confusing

Scheduled Pinned Locked Moved The Lounge
json
54 Posts 26 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.
  • H honey the codewitch

    Until I realized in the process of trying to explain them that they probably are. Just because I find something intuitive doesn't mean I can make it intuitive to others. :doh: The secret with pointers is to enjoy the freedom they bring you rather than fearing the danger they present. Aside from that, the rest is details.

    Real programmers use butterflies

    Greg UtasG Offline
    Greg UtasG Offline
    Greg Utas
    wrote on last edited by
    #4

    This site already has quite a few articles about pointers. I haven't read any of them, but some have been favorably received. Maybe looking at some of them would give you ideas as to what more you could say.

    Robust Services Core | Software Techniques for Lemmings | Articles
    The fox knows many things, but the hedgehog knows one big thing.

    <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
    <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

    1 Reply Last reply
    0
    • K Kris Lantz

      My confusion with pointers started very early this morning, since I read the subject as, 'printers aren't confusing.' Time for coffee...

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

      Au contraire printers are very confusing. ;P

      R 1 Reply Last reply
      0
      • L Lost User

        I tried to explain them to an IBM systems programmer but for some reason he would not accept the concept. Even though all the code he worked with (assembler) made use of base registers. His main beef was "C is a high level language so it shouldn't need them".

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #6

        Except C is a "mid-level" language, and nobody considers it a high level language who has actually used "high-level" languages. It's funny when people form strong opinions around their misconceptions. Human beings in general are ridiculous creatures. :laugh:

        Real programmers use butterflies

        L 1 Reply Last reply
        0
        • H honey the codewitch

          Until I realized in the process of trying to explain them that they probably are. Just because I find something intuitive doesn't mean I can make it intuitive to others. :doh: The secret with pointers is to enjoy the freedom they bring you rather than fearing the danger they present. Aside from that, the rest is details.

          Real programmers use butterflies

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

          Do they allow fiction writing on CP?

          I'm not sure how many cookies it makes to be happy, but so far it's not 27. JaxCoder.com

          H 1 Reply Last reply
          0
          • M Mike Hankey

            Do they allow fiction writing on CP?

            I'm not sure how many cookies it makes to be happy, but so far it's not 27. JaxCoder.com

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #8

            What's so confusing about them? They point to a memory location. Think of an address as an index into a big array of bytes. No big. =)

            Real programmers use butterflies

            W D M M 4 Replies Last reply
            0
            • H honey the codewitch

              Except C is a "mid-level" language, and nobody considers it a high level language who has actually used "high-level" languages. It's funny when people form strong opinions around their misconceptions. Human beings in general are ridiculous creatures. :laugh:

              Real programmers use butterflies

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

              honey the codewitch wrote:

              Human beings in general are ridiculous creatures.

              Yeah, just look at a few naked ones. :laugh:

              W 1 Reply Last reply
              0
              • H honey the codewitch

                Until I realized in the process of trying to explain them that they probably are. Just because I find something intuitive doesn't mean I can make it intuitive to others. :doh: The secret with pointers is to enjoy the freedom they bring you rather than fearing the danger they present. Aside from that, the rest is details.

                Real programmers use butterflies

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

                They're not confusing at all. ( I removed the link ) use the wikipedia instead : [Pointer (dog breed) - Wikipedia](https://en.wikipedia.org/wiki/Pointer\_(dog\_breed))

                I'd rather be phishing!

                N W 2 Replies Last reply
                0
                • L Lost User

                  honey the codewitch wrote:

                  Human beings in general are ridiculous creatures.

                  Yeah, just look at a few naked ones. :laugh:

                  W Offline
                  W Offline
                  W Balboos GHB
                  wrote on last edited by
                  #11

                  And, as any hungry lion or tiger can tell you: "They're slow. No claws. No fangs. And you don't even get much hair stuck in your teeth."

                  Ravings en masse^

                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                  "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                  1 Reply Last reply
                  0
                  • H honey the codewitch

                    What's so confusing about them? They point to a memory location. Think of an address as an index into a big array of bytes. No big. =)

                    Real programmers use butterflies

                    W Offline
                    W Offline
                    W Balboos GHB
                    wrote on last edited by
                    #12

                    In a way, back to what you noted in your original post: How different people just see and understand things differently. Way back in elementary school (do they still have that?) I was exceptionally good in math, and by second grade, reading. Science was a joy. Handwriting, to this day, childlike. Also, despite being able to express myself bother verbally and in written prose with some eloquence (when the mood shines), when being taught grammar (as in parts-of-speech), the more they taught the less I knew. Associating names and faces, and pure memorization in general is a horror for me - but I know where things were in (for example) a 60,000 line application I wrote some many years ago. I had no trouble with C pointers because I learned assembly, first. I've heard that normally it can be quite a thing to grasp for learning C for those who haven't been elsewhere introduced. The point (ah yes, yet another pun) is that we all get dealt a hand and play those cards as best we can - at least for some of us. So - and this works out well for us as we're a herd-species - we all have different expertise and shortcomings that, when melded within the group, form a gestalt.

                    Ravings en masse^

                    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                    "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                    1 Reply Last reply
                    0
                    • H honey the codewitch

                      What's so confusing about them? They point to a memory location. Think of an address as an index into a big array of bytes. No big. =)

                      Real programmers use butterflies

                      D Offline
                      D Offline
                      dandy72
                      wrote on last edited by
                      #13

                      ...and that, right there, is pretty much all you need to know. For some reason I was overthinking the whole thing when I started learning about them. And it's only like 2 years into college that I finally wrapped my head around the whole, basic, fundamental idea. Never had a problem with them since. That being said, I haven't done anything pointer-related in over a decade...

                      H 1 Reply Last reply
                      0
                      • H honey the codewitch

                        Until I realized in the process of trying to explain them that they probably are. Just because I find something intuitive doesn't mean I can make it intuitive to others. :doh: The secret with pointers is to enjoy the freedom they bring you rather than fearing the danger they present. Aside from that, the rest is details.

                        Real programmers use butterflies

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

                        That points me to.... ääähm.... no can't explain it ;)

                        It does not solve my Problem, but it answers my question Chemists have exactly one rule: there are only exceptions

                        1 Reply Last reply
                        0
                        • D dandy72

                          ...and that, right there, is pretty much all you need to know. For some reason I was overthinking the whole thing when I started learning about them. And it's only like 2 years into college that I finally wrapped my head around the whole, basic, fundamental idea. Never had a problem with them since. That being said, I haven't done anything pointer-related in over a decade...

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #15

                          I think that's a common trap. It doesn't help that misusing them causes faults because I think that makes them intimidating but all a fault is is an unhandled exception. Fear is a huge stumbling block to growth. It doesn't help that I've seen lots of articles (not necessarily here) rag on pointers and state that they're scary in so many words, probably from authors that never got comfortable with them themselves. A lot of times it's no different than accessing an array.

                          Real programmers use butterflies

                          M 1 Reply Last reply
                          0
                          • L Lost User

                            Au contraire printers are very confusing. ;P

                            R Offline
                            R Offline
                            raddevus
                            wrote on last edited by
                            #16

                            If you ever PCL, then you know...blech! X|

                            1 Reply Last reply
                            0
                            • H honey the codewitch

                              Until I realized in the process of trying to explain them that they probably are. Just because I find something intuitive doesn't mean I can make it intuitive to others. :doh: The secret with pointers is to enjoy the freedom they bring you rather than fearing the danger they present. Aside from that, the rest is details.

                              Real programmers use butterflies

                              A Offline
                              A Offline
                              Amarnath S
                              wrote on last edited by
                              #17

                              The most famous pointer of them all is ... Google. How? Well, given a search string, Google points us to the location(s), meaning website(s), where that search string is present. Agree?

                              J H 2 Replies Last reply
                              0
                              • A Amarnath S

                                The most famous pointer of them all is ... Google. How? Well, given a search string, Google points us to the location(s), meaning website(s), where that search string is present. Agree?

                                J Offline
                                J Offline
                                Johnny J
                                wrote on last edited by
                                #18

                                Amarnath S wrote:

                                Well, given a search string, Google points us to the location(s), meaning website(s), where that search string is present. Agree?

                                If you're lucky... :doh:

                                Anything that is unrelated to elephants is irrelephant
                                Anonymous
                                -----
                                The problem with quotes on the internet is that you can never tell if they're genuine
                                Winston Churchill, 1944
                                -----
                                Never argue with a fool. Onlookers may not be able to tell the difference.
                                Mark Twain

                                1 Reply Last reply
                                0
                                • A Amarnath S

                                  The most famous pointer of them all is ... Google. How? Well, given a search string, Google points us to the location(s), meaning website(s), where that search string is present. Agree?

                                  H Offline
                                  H Offline
                                  honey the codewitch
                                  wrote on last edited by
                                  #19

                                  I'd say the links it returns are the pointers, but you do you. :)

                                  Real programmers use butterflies

                                  D 1 Reply Last reply
                                  0
                                  • H honey the codewitch

                                    What's so confusing about them? They point to a memory location. Think of an address as an index into a big array of bytes. No big. =)

                                    Real programmers use butterflies

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

                                    Pointers are powerful and easy to use can lead to disaster when not used correctly, as can be seen when trying to debug a pointer problem.

                                    I'm not sure how many cookies it makes to be happy, but so far it's not 27. JaxCoder.com

                                    H U 2 Replies Last reply
                                    0
                                    • M Mike Hankey

                                      Pointers are powerful and easy to use can lead to disaster when not used correctly, as can be seen when trying to debug a pointer problem.

                                      I'm not sure how many cookies it makes to be happy, but so far it's not 27. JaxCoder.com

                                      H Offline
                                      H Offline
                                      honey the codewitch
                                      wrote on last edited by
                                      #21

                                      Yeah. There is that. It's easier to use them correctly though if you understand them intuitively. These days most of my pointer problems are caused by things i forget to initialize. :doh:

                                      Real programmers use butterflies

                                      1 Reply Last reply
                                      0
                                      • H honey the codewitch

                                        I'd say the links it returns are the pointers, but you do you. :)

                                        Real programmers use butterflies

                                        D Offline
                                        D Offline
                                        Daniel Pfeffer
                                        wrote on last edited by
                                        #22

                                        honey the codewitch wrote:

                                        links it returns are the pointers

                                        So is Google a pointer factory, or a pointer dictionary?

                                        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                        H 1 Reply Last reply
                                        0
                                        • D Daniel Pfeffer

                                          honey the codewitch wrote:

                                          links it returns are the pointers

                                          So is Google a pointer factory, or a pointer dictionary?

                                          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                          H Offline
                                          H Offline
                                          honey the codewitch
                                          wrote on last edited by
                                          #23

                                          That's a fantastic question. :-D

                                          Real programmers use butterflies

                                          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