Prof. Sweetlove@beehaw.org to Programmer Humor@lemmy.ml · 3 years agoFor-loops in Java don't require any code in the body. I can't control what you do with that information.beehaw.orgimagemessage-square4linkfedilinkarrow-up135arrow-down10file-text
arrow-up135arrow-down1imageFor-loops in Java don't require any code in the body. I can't control what you do with that information.beehaw.orgProf. Sweetlove@beehaw.org to Programmer Humor@lemmy.ml · 3 years agomessage-square4linkfedilinkfile-text
Reposting this abomination from my Reddit Account because this is important information. Uncle Bob would be proud.
minus-squareAmylinkfedilinkarrow-up0·3 years agoThere’s always the classic C strcpy :) char *strcpy(char *dest, char *src) { char *p = dest; while (*p++ = *src++); return dest; }
There’s always the classic C strcpy :)
char *strcpy(char *dest, char *src) { char *p = dest; while (*p++ = *src++); return dest; }Oof.
Thanks I hate it