LinearArray@programming.dev to Programmer Humor@programming.devEnglish · vor 9 MonatenFull Stack Programmer Doing Frontendprogramming.devimagemessage-square95fedilinkarrow-up1666arrow-down133
arrow-up1633arrow-down1imageFull Stack Programmer Doing Frontendprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · vor 9 Monatenmessage-square95fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up12·edit-2vor 9 MonatenI’m terrified by this binary config file. Why?! Was he writing C and said “fuck it, memcpy”? Edit: I suppose it would be more like “fuck it, fprintf(f, (char*)my_config_object, sizeof(my_config_object))”
minus-squareTroy@lemmy.calinkfedilinkarrow-up2arrow-down1·vor 9 MonatenI mean, python has pickle and people use that to store config. It’s a weird practice, and totally unsafe, but it works well enough. This wouldn’t be that different.
I’m terrified by this binary config file. Why?! Was he writing C and said “fuck it, memcpy”?
Edit: I suppose it would be more like “fuck it, fprintf(f, (char*)my_config_object, sizeof(my_config_object))”
I mean, python has pickle and people use that to store config. It’s a weird practice, and totally unsafe, but it works well enough. This wouldn’t be that different.