Coverage can prove that code is not tested but cannot prove that code is tested.
Tests can prove that bugs exist but cannot prove that bugs do not exist.
1,833 karma · joined June 30, 2012
Coverage can prove that code is not tested but cannot prove that code is tested.
Tests can prove that bugs exist but cannot prove that bugs do not exist.
> Error codes fail the test of “zero overhead for common cases; pay for play for uncommon cases”:
> There is calling convention impact. You now have two values to return (for non-void returning functions): the actual return value and the possible error. This burns more registers and/or stack space, making calls less efficient. Inlining can of course help to recover this for the subset of calls that can be inlined.
> There are branches injected into callsites anywhere a callee can fail. I call costs like this “peanut butter,” because the checks are smeared across the code, making it difficult to measure the impact directly. In Midori we were able to experiment and measure, and confirm that yes, indeed, the cost here is nontrivial. There is also a secondary effect which is, because functions contain more branches, there is more risk of confusing the optimizer.
> This might be surprising to some people, since undoubtedly everyone has heard that “exceptions are slow.” It turns out that they don’t have to be. And, when done right, they get error handling code and data off hot paths which increases I-cache and TLB performance, compared to the overheads above, which obviously decreases them.
[1] https://www.congress.gov/bill/116th-congress/senate-bill/220...
I get that putting up ballot boxes that pose as "Official" should/may be illegal, but the ballots that go into those boxes are going to get delivered and counted.
I use Cookie AutoDelete and YouTube doesn't give me any problems for discarding its cookies. But maybe one of the uBlock Origin annoyance filter lists I use is taking care of the nag screen.
Firefox: https://addons.mozilla.org/en-US/firefox/addon/cookie-autode... Chrome: https://chrome.google.com/webstore/detail/cookie-autodelete/...
As for stringification, JSON's data types are mismatched with pretty much everything that isn't JavaScript to some degree. If you need to serialize a 64-bit integer to JSON, you serialize it as a string because the parser on the other end is probably going to try to parse it as a double-precision floating point number. Once you've started serializing numbers as strings anyway, it's not too far to "serialize every scalar as a string".
For ebooks there's this:
> Macmillan’s claim of only making $1.15 per book is incredibly misleading, Potash argued. “Seventy-nine percent expired and were removed from library catalogs because the two-year limit occurred first—not because they were checked out 52 times,” he said. In reality, the average is about 11.5 lends. According to Potash, the cost to the library is $6.07 every time someone borrows a Macmillan book.[1]
[1] https://www.vice.com/en/article/pa78wv/one-of-americas-large...
> In forty-eight states and D.C., the winner of the plurality of the statewide vote receives all of that state's electors; in Maine and Nebraska, two electors are assigned in this manner and the remaining electors are allocated based on the plurality of votes in each congressional district.[1]
[1] https://en.wikipedia.org/wiki/United_States_Electoral_Colleg...
Exceptions aren't an implementation detail. They're part of the API contract. Checked exceptions make this explicit, but people don't like that because error handling is hard and pretending that errors don't happen is easy.
[1] https://en.wikipedia.org/wiki/List_of_United_States_cities_b... (sort by total property crime)
> What do you mean, "why has it got to be built?" It's a bypass! You've got to build bypasses!
[1] https://en.wikipedia.org/wiki/Payment_card_number#Structure
> The initiative encourages production of high value products and services, like aerospace and semiconductors, to help achieve independence from foreign suppliers.[1]
Someone should be observing the voter taking the strip of paper, but it would be done in a way to prevent them from observing which one was taken by the voter.
2. It's not, aside from that it is more easily automated. "Helping" certain voters fill out their mail-in ballots is already an easy way to manipulate an election.