HNHacker News
TopNewBestAskShowJobs

nitram1

5 karma · joined May 22, 2018

submissionscomments
nitram1··on TypeScript’s quirks: How inconsistencies make the language more complex
Array access is a good example.

Many type-safe languages throw an exception if you attempt to access an element in an array that is out of bounds but javascript just returns undefined.

Typescript ignores the fact that accessing an arbitrary element of an array could return undefined. If it did not ignore this fact then it would force you to deal with the potential undefined value retrieved from any array access (i.e you'd need to write a runtime check)

nitram1··on Ending PHP Support, and the Future of Hack
I think it depends on whether the improvements facebook hopes to achieve by dropping support for php outweigh the drawbacks of losing 3rd party package compatibility
nitram1··on Facebook Locking Out GDPR Users Until They Consent
They're not planning on removing encryption. It was under facebook's ownership that encryption was added to the platform