339
you are viewing a single comment's thread
view the rest of the comments
[-] thomasdouwes@sopuli.xyz 23 points 1 year ago

Not sure about here but is was a hot take on reddit:
Pointers are not that hard and really useful

[-] jvisick@programming.dev 10 points 1 year ago

I can’t imagine anyone but a total novice disagreeing with this.

I can understand finding pointers hard at first, but I can absolutely not understand trying to argue that they aren’t useful.

[-] thomasdouwes@sopuli.xyz 1 points 1 year ago* (last edited 1 year ago)

There were a lot of “pointer hard” memes back r/programmerhumor. Probably a lot of beginner's over there.

I guess I cheated by already having an understanding of how the computer works before starting C.

[-] AdmiralShat@programming.dev 4 points 1 year ago

Pointers are absolutely hard for beginners, and it is arguably hard to learn when and where to actually use them properly

[-] tryptaminev@feddit.de 1 points 1 year ago

What is so difficult to learn about pointers? I am not a programmer, i just used to dabble in C++ and a bit of C# and java for school and now python for uni. I found pointers in c++ much more straightforward, then memorizing when a function is doing call by value or call by reference. I still hate java for doing it half half and not letting you do it differently.

[-] mindbleach@sh.itjust.works 2 points 1 year ago

They're easy when they work. If you screw up, you have to fold your brain in half to figure out what you're trying to do, what you've actually done, and what to do instead.

Nevermind the compiler throwing errors because the syntax is awful and it won't tell you what it expects.

[-] NightAuthor@lemmy.world 1 points 1 year ago

Learning pointers feels like one of those things, if you’re physically capable of learning it, then it just takes having it explained in a certain way, or seeing a certain implementation and then it just clicks.

this post was submitted on 01 Sep 2023
339 points (96.2% liked)

Programming

17691 readers
134 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS