HNHacker News
TopNewBestAskShowJobs

lzsiga

0 karma · joined May 13, 2019

submissionscomments
lzsiga··on Obscure feature + obscure feature + obscure feature = compiler bug
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).
lzsiga··on Obvious things C should do
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.

lzsiga··on Obvious things C should do
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).
lzsiga··on How Did REST Come to Mean the Opposite of REST? (2022)
Afaik, SOAP is a subset of all webservices; the rest is REST (i.e. XML without SOAP and non-XML).
lzsiga··on Uncle Bob and Silver Bullets (2017)
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.
lzsiga··on CoreJS: State of the project? Looks like dead. Any official fork?
Something like that happened with `leftpad` in 2016.
lzsiga··on Websites have evolved back to static HTML/CSS/JS files
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.
lzsiga··on Apple Explains Mysterious iPhone 11 Location Requests
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'?