LinearArray to Programmer [email protected]English • 10 months agoFull Stack Programmer Doing Frontendprogramming.devimagemessage-square95fedilinkarrow-up1664arrow-down133
arrow-up1631arrow-down1imageFull Stack Programmer Doing Frontendprogramming.devLinearArray to Programmer [email protected]English • 10 months agomessage-square95fedilink
minus-squareTrailblazing Braille Taserlinkfedilink11•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-squareTroylinkfedilink0•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.