Relative Content

Tag Archive for headers

Anti-pattern? Double header and exposed implementation detail

Consider that I’ve implemented SHA-256 hashing in C as incrementally updated IUF (init-update-finalize) working context and 3 subroutines. To efficiently use it in multi-threaded applications, users may want to avoid heap allocation using malloc or calloc, etc. and declare the working context on the stack using a structure type I’ve provided in the header.

How to POST CSV with XMLHttpRequest

I would like to send a CSV file via POST in a XMLHttpRequest, but I am unsure of two things. First is there anything to distinguish a CSV file from a string split up by comma’s? And what sort of Content-Type am I supposed to put in to the setRequestHeader?

How to POST CSV with XMLHttpRequest

I would like to send a CSV file via POST in a XMLHttpRequest, but I am unsure of two things. First is there anything to distinguish a CSV file from a string split up by comma’s? And what sort of Content-Type am I supposed to put in to the setRequestHeader?

Why are header files bad design? [duplicate]

This question already has answers here: Are header files actually good? [closed] (7 answers) Closed 10 years ago. this says header files are bad design, but I don’t know why. The answers specified there are about the inefficiency of header file when building. Why it is bad design is not really touched upon. As far […]