LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 9 months agoFull Stack Programmer Doing Frontendprogramming.devimagemessage-square96fedilinkarrow-up1682arrow-down132
arrow-up1650arrow-down1imageFull Stack Programmer Doing Frontendprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 9 months agomessage-square96fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up12·edit-29 months agoI’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·9 months agoI 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.