• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    9 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.