HackerTrans
TopNewTrendsCommentsPastAskShowJobs

JosephusAMiller

no profile record

comments

JosephusAMiller
·6 maanden geleden·discuss
In the moment, it doesn't feel off, that's the most disconcerting aspect. It's the things that don't seem so critical or important that get you as well. Registration on a random site, and for a temporary reason was what got me once. In this case the browser extension seemed almost like an afterthought at the time for the author.
JosephusAMiller
·6 maanden geleden·discuss
> Recoding SQLite in Go is unlikely since Go hates assert()

I've heard it said you shouldn't use asserts in production code, but handle errors and exceptions instead? That said, can't you just 'if !condition() {panic...}' to simulate the behavior? Or are they talking about something specific about Golang?