17
rui725
8y

Why is pointers... bit shifting.. malloc.. anything that is regarding embedded development is so hard to grasp...

Comments
  • 8
    Pointers are the best thing ever invented in the history of programming:)

    Just to clarify: are you ranting about your coworkers that have problems with it, or about difficulty to understand how it works?
  • 1
    @sinisas difficulty to understand the concept...
  • 2
    @AndSoWeCode thanks for giving a mini tutorial..
  • 1
    Do you guys have other topics which can help me understand more and be more familiar with at least an intermediate level as embedded developer.
  • 5
    I remember learning pointers..
    Didn't get a fucking thing UNTIL one day I was working on an RTS game and thought to myself; "it sure would be nice if i could change what this variable pointed to"

    Tldr; one day you will have that moment and you'll think pointers are the greatest thing ever.
  • 1
    If you learn binary math and the basics of how computers work, these are some of the easiest concepts there are.
  • 2
    @AlgoRythm yea I guess it’s more of a logic circuits kind of advancement right?
  • 3
    @rui725

    Ok I wrote something for you:
    https://codeshare.io/ayPDJz
  • 2
    @sinisas wow I seriously thank you for giving a code that explains the process of pointers :)
  • 1
    Really, it's not that difficult, you just have to take the time to understand well what happens when you use them but after, it's like natural
  • 1
    I remember my first malloc for a 2 dimensional array in C... Took me 2 days to figure out what the fuck was going on in the StackOverflow code snippets I found 😆
  • 0
    Because you're a dirty muggle. 😀
  • 1
    Mmh...hard if you have no background in computer architecture.
    Study the CPU first and how it deals with memory , then come back and tell us if it's difficult anymore.
  • 1
    I sometimes wish other languages used pointers.
  • 1
    @bdhobare I think I know some stuff about computer architecture from logic gates to scheduling algorithm.. but I just dont know how does it relate to embedded dev

    @iSwimInTheC I think they have that covered using List or Collections..but to use the memory address as a reference value I dont think that it is possible in other language

    @StefanH agreed but yea I also liked to learn how are these relate to embedded dev or game dev.. just picturing the bigger picture would help understand why they exist..
Add Comment