Better HN
topnewbestaskshowjobs
Log inSign up

asoo

6 karma · joined Apr 11, 2019 (7y ago) · 4 submissions

Submissions

comment 7y ago · link · parent

Article completely ignores the fact that most shipping companies are already "slow steaming" because it's cheaper.

comment 7y ago · link · parent

You'd need to lock both accounts... but even then. Doing any kind of accounting operations without being atomic, transactional or idempotent is just wrong. Even with single call - acct2.add() could fail and you're left with broken state. If this is in-memory state then you don't need asyncs at all. If it's not, Locks just give you false sense of safety.

comment 7y ago · link · parent

Use DND. If i'm being productive i always pause notifications.

comment 7y ago · link · parent

`document.querySelectorAll('a[href*="model"]')`