There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

tobogganablaze ,

If I had a penny for every pixel … I’d have around $1088. Which I would take, but really it’s not enough.

JPDev OP ,
@JPDev@programming.dev avatar

just edited to upscale the image

SpaceNoodle ,

I don’t think I’ve ever explicitly gone four deep. Two is common enough, and three happens on some rare occasions, but four seems like sheer madness.

Ephera ,

Dumb question, but when would you need two deep? Is it when you store a pointer as a field in a struct?

If so, isn’t that a massive footgun, because the pointer might go invalid at any point? 🫠

SpaceNoodle ,

Pointers to arrays or arrays of pointers are common examples.

Your pointers won’t just magically become invalid. You gotta fuck 'em up first.

MajinBlayze ,

<span style="color:#323232;">*char // I heard it from a friend
</span><span style="color:#323232;">**char //who heard it from a friend
</span><span style="color:#323232;">***char // who heard it from another
</span><span style="color:#323232;">"You were messing around"
</span>
xmunk ,

Once your pointer definition looks like a censored swear word you’re doing something awful.

In my entire programming career I’ve used int ** less than a handful of times and I’ve always been borderline about refactoring when I need it.

CanadaPlus , (edited )

Okay, but what if you’re dealing with a rather high-dimensional tensor? In some kinds of coding it can happen, and you usually don’t want to sacrifice performance when it does.

You can also do increasingly elaborate pointer arithmetic, but that seems worse, not better to me.

onlinepersona ,

I know a friend who can point you to a region in memory where you can insert your exploit. You’re welcome.

Anti Commercial-AI license

RonSijm ,
@RonSijm@programming.dev avatar

Me: building a fluent interface framework…
I already support a WrapperOf<T, T, T, T>
User: Can I have a WrapperOf<T, T, T, T, T> because I’m doing something weird?
Me: sigh god-damnit. You’re right but I still hate it.

https://programming.dev/pictrs/image/847ff9ff-1bb8-4a6a-9f86-24aa41e95b29.png

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines