this post was submitted on 05 Aug 2024
261 points (94.2% liked)

Programmer Humor

19187 readers
1305 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
261
Do you know who can help? (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 24 points 1 month ago (1 children)

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.

[โ€“] [email protected] 6 points 1 month ago* (last edited 1 month ago)

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.