LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 10 months agoFull Stack Programmer Doing Frontendprogramming.devimagemessage-square96fedilinkarrow-up1686arrow-down133
arrow-up1653arrow-down1imageFull Stack Programmer Doing Frontendprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 10 months agomessage-square96fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up12·edit-210 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·10 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.