this post was submitted on 12 Jun 2023
30 points (100.0% liked)

Programmer Humor

32461 readers
1132 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Reposting this abomination from my Reddit Account because this is important information. Uncle Bob would be proud.

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 6 points 1 year ago (1 children)

Well now I just wanna see more for-loop one-liners!

[โ€“] [email protected] 3 points 1 year ago

There's always the classic C strcpy :)

char *strcpy(char *dest, char *src) {
    char *p = dest;
    while (*p++ = *src++);
    return dest;
}