this post was submitted on 30 Jan 2025
315 points (97.3% liked)

Programmer Humor

20305 readers
746 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 2 years ago
MODERATORS
 

Have to add that we work exclusively in strongly-typed languages. Kinda want to see how it plays out, but I can't help but argue with him, so I think I'll just go.

you are viewing a single comment's thread
view the rest of the comments
[–] ulterno@programming.dev 24 points 5 days ago (1 children)

So, using void * for everything?

[–] Nalivai@lemmy.world 8 points 4 days ago (1 children)

I worked as a subcontractor with a lead architect that used casting to void * as an only method of sending data. Argument to a function? Void *. Return value? Void *. Multithread pipe? Cast to a void *, no big deal. 80% of my job was investigating segfaults. 20% was heavy drinking to prevent suicidal thoughts.

[–] ulterno@programming.dev 5 points 4 days ago

I do mainly C and C++ and for a while, I had to check out some JS code...
I wouldn't want to take your place.

The only case I remember using a void* in is when passing a function as an argument for a callback, to an RTC peripheral. Even then, the function was returning a void.