this post was submitted on 30 Jan 2025
309 points (97.5% liked)

Programmer Humor

20265 readers
1429 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 22 points 2 days ago (1 children)

So, using void * for everything?

[–] [email protected] 4 points 1 day 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 3 points 1 day 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.