this post was submitted on 19 Mar 2024
1299 points (98.9% liked)

Programmer Humor

19171 readers
1131 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] xmunk 1 points 6 months ago

Pointers are almost always a bad idea - but you'll probably get a lot of mileage out of having a handful of them in a large project... there's an impulse with new C++ devs to do everything with pointers and use complex pointer arithmetic to do weird array offset and abuse predictable layouts to access stack variables etc.... pointers are fine when used with moderation.