Better HN
topnewbestaskshowjobs
Log inSign up

lzsiga

0 karma · joined May 13, 2019 (7y ago) · 8 submissions

Submissions

comment 1y ago · link · parent

I'm sure this article is useful and interesting, but the author lost me at the very first example program, where he wrote `@px++` instead of `(@px)++` (@ stands for asterix character).

comment 1y ago · link · parent

The proper way is not exporting implementation details at all, instead define opaque types in your header files like this: `typedef struct ssl_st SSL;`. This comes from OpenSSL, it means users can use `SSL *` pointers, but they don't know what those pointers point to.

Of course you can also have internal header-files within your own project, which you don't share with the end-users of your product.

comment 1y ago · link · parent

It is perfectly valid to use more than one header files: some of them can be public (meant to be seen by users of your library), others can be private or internal (only used by your own sources).

comment 2y ago · link · parent

Afaik, SOAP is a subset of all webservices; the rest is REST (i.e. XML without SOAP and non-XML).

comment 4y ago · link · parent

Off: floating point numbers can be used to store integer values, so equality comparison might be perfectly valid in some cases. For example, if the embedded Sql doesn't support 'int64_t' (only int32_t), itt might still support 'double' which can store 52-bit integers exactly.

comment 6y ago · link · parent

Something like that happened with `leftpad` in 2016.

comment 6y ago · link · parent

Off: Also there is the HTML Hell Page, which is older than many of the current web-developers but still contains the most relevant informations about web-design.

comment 6y ago · link · parent

I seem to have missed something:

Apple claims Location Services cannot be disabled because it is needed for Ultrawide Band (UWB) compliance.

And what about UWB? It cannot be disabled either? Do you have a say if someone wants to send you a file 'simply by pointing at your iPhone'?