A wonder happened and I accidentally understood the whole thing about pointers.
Thankfully before the test on Saturday.
Here I come Dynamic Data Structures!

  • 1
    A new one star programmer is born. ^^
  • 0
    @Fast-Nop Yeah! Let's chase the other stars. How do I get the 2nd star? ^^
  • 1
    @Kinky-Code that refers to C. If you have a pointer and dereference it via the leading asterisk, you have "*my_ptr". That's one star.

    But you can also have pointers to pointers, and to get to the actual data, you have to dereference it twice like in "**my_ptr_to_ptr". That's two star programming.

    However, once you get to three star programming, the next recommended literature would be about proper coding styles. ^^
  • 1
    @Fast-Nop Aaaah, now I understand. I just thought it would be like a hidden rating for Devs referring to a specific skillset and the first star would be pointers. Like 1 of 5 stars programmer xD
    So two star programming would be like this equivalent in Pascal:
    Pointer^.next^.value ?
  • 1
    @Kinky-Code yep something like this (my Pascal is a bit faint after 25 years). Mostly, you need two star programming if you hand over a pointer to a function by reference because you may want to modify it.

    Or if you have an array of pointers like function pointers or start addresses of something and hand over that array to a function - C is a bit fucked up here because arrays decay to pointers when you pass them into a function, thus losing the array boundary information.
Add Comment