Because you know, electric cars can't be set to charge during the night, and electricity companies don't encourage owners to do exactly that with plans that make it cheaper.
There are testing techniques that don't require you to test every possible scenario, but, in lack a of simpler them, every independent code condition.
100% code coverage does not imply that you have 100% coverage of the possible outcomes, for example:
int dereference(int *x) {
return *x; }
void testDereference() {
int x = 5;
testFrameworkAssertTrue(dereference(x) == 5); }
This test provides 100% code coverage, but the code will still have undefined behaviour in a whole lot of cases.
The number of people on the internet who think that testing is a substitute for proof and/or that it can magically eliminate all bugs is pretty terrifying.
In order for a regression test to catch a bug, you need to have either 1) predicted that that bug might occur, and written a test for it, or 2) encountered the bug before and written a test for it.
You can't magically have tests that cover every possible scenario.
You mean "It's 2015 and developers still introduce bugs"... and frankly... no fucking shit. Yes, coding is hard. Every time you change code (and I'm sure the URL bar parsing code changes pretty regularly) you stand a chance of introducing a bug.
That's exactly what I came here to say. It's really that simple. Stick me in an office (preferably with one other, two will do). Keep things quiet, but with a rubber duck available if you really need it, that'll make me 10 times more productive.
I live in an area with 50Mb/s connections available. I pay for 12, because it's plenty for everything I do. I don't really see any reason to have a faster connection frankly. I'm sure with higher quality video streaming that goal will move, but your assertion that 100Mb/s should be the standard is very off for today.
Remember, some people said that when Sega and Nintendo owned the whole market and Sony came along. Still more said it when Sony and Nintendo owned the market and Microsoft came along.
The best way to accomplish that seems to be to be to lock all four wheels and use the steering to control direction while the vehicle slowly slithers to a stop.
Wrong
Not only do you have less control over direction when the wheels are locked than when they're unlocked, but your car will stop more slowly.
Because America is trying to convince the rest of the world that it's a developed nation. If your argument for that is "well, we're marginally better than the 3rd world" then perhaps you're aiming too low.
Well, we have a working system like this in Finland. I can't attest to your stealing $100 example, but a speeding ticket there is €30 for a poor person, or €103,000 if you're a Nokia executive.
Where by "no where near the bottom" you mean "worse than pretty much all of the developed world", because that's what that table shows. I mean, you're looking at 4 times as many fatalities per person as the UK, and twice as many per mile driven.
Actually, re modern ABS, it's much much smarter than that. It's lifting the brakes when it detects that the wheels have locked, just enough to unlock them, and then finding the ideal traction spot for you. Pulsing was just the first (fairly naïve) implementation.
The poorer the driving conditions the less well ABS works. In heavy snow, having the wheels lock up more or less at random and not stay locked makes directional control when stopping really difficult.
If the wheels lock up, that's because you braked too hard. ABS unlocks them for you, giving you more directional control. If you want better directional control still, don't brake so hard.
Lawyer, maybe. Government, no. I just renewed my drivers license online.
That's lovely for you. As a foreign national, I'm currently in the process of trying to renew my US drivers license. It's so far taken 2 months, and reams of paper. It's taken so much bullshit and paper pushing in fact that my license expired during the process.
I pay my taxes online (income and real estate).
Certainly last time I filed my taxes in the US, there was a lot of paper involved, though I admit that was mostly through interaction with lawyers, not the government. The first time I filed them, I certainly was required to file with paper - eFiling was not available due to my foreign national status.
The last time I set foot in a government office, I didn't have to pick up a pen. There was a stylus to sign my name.
Sure, and then they printed out 3 sheets of paper and stapled them together to hand to you as a temporary driving license, rather than recording the fact that you had a license in a database, and sending you an email receipt as proof if something goes wrong and the police think you don't have one.
I don't buy that 1 or 3 are valid at all. There are other punishments that can be used to serve as a deterrent. And frankly, taking vengeance from someone I find barbaric.
Prison has far too many consequences to be used simply as a deterrent - it literally destroys someone's life (they will likely lose their job and their house, they will probably struggle to ever get a job again, and hence to ever have any kind of life). It should not be used casually. Separating someone from society who is actually dangerous is the only legitimate use for it that I can actually think of.
Being compiled on your computer doesn't imply that the binary matches the source code. Your compiler may be maliciously inserting code into other binaries.
Depends entirely on the location. In many (the UK, and Texas for example, which seem relevant to the example), the rule is that you must stop if it's safe to do so. If it's not safe, you may cautiously proceed through the junction.
So in this case, it seems like it was completely safe to stop, and therefore, yes, it effectively was a stop light.
Because you know, electric cars can't be set to charge during the night, and electricity companies don't encourage owners to do exactly that with plans that make it cheaper.
Oh wait, yes they can, and yes they do.
Which is great news! Texas is ahead of the world now in being prepared for the huge increase in electricity usage that good electric cars will cause.
There are testing techniques that don't require you to test every possible scenario, but, in lack a of simpler them, every independent code condition.
100% code coverage does not imply that you have 100% coverage of the possible outcomes, for example:
int dereference(int *x) {
return *x;
}
void testDereference() {
int x = 5;
testFrameworkAssertTrue(dereference(x) == 5);
}
This test provides 100% code coverage, but the code will still have undefined behaviour in a whole lot of cases.
The number of people on the internet who think that testing is a substitute for proof and/or that it can magically eliminate all bugs is pretty terrifying.
In order for a regression test to catch a bug, you need to have either 1) predicted that that bug might occur, and written a test for it, or 2) encountered the bug before and written a test for it.
You can't magically have tests that cover every possible scenario.
You mean "It's 2015 and developers still introduce bugs"... and frankly... no fucking shit. Yes, coding is hard. Every time you change code (and I'm sure the URL bar parsing code changes pretty regularly) you stand a chance of introducing a bug.
No, your maths is wrong. It implies that you can improve their efficiency by 50%. 1/.66 = 1.5.
That's exactly what I came here to say. It's really that simple. Stick me in an office (preferably with one other, two will do). Keep things quiet, but with a rubber duck available if you really need it, that'll make me 10 times more productive.
I can happily stream 1080p youtube over my 12Mb/s connection. Again, if you're unable to stream video over 50Mb/s, you're not getting 50Mb/s.
If you can't stream over 50Mb/s, you're not getting 50Mb/s. BluRay video is between 16 and 32Mb/s.
As always, the cable company is screwing you with "up to" 50Mb/s, rather than the actual advertised speed.
I live in an area with 50Mb/s connections available. I pay for 12, because it's plenty for everything I do. I don't really see any reason to have a faster connection frankly. I'm sure with higher quality video streaming that goal will move, but your assertion that 100Mb/s should be the standard is very off for today.
Remember, some people said that when Sega and Nintendo owned the whole market and Sony came along. Still more said it when Sony and Nintendo owned the market and Microsoft came along.
The best way to accomplish that seems to be to be to lock all four wheels and use the steering to control direction while the vehicle slowly slithers to a stop.
Wrong
Not only do you have less control over direction when the wheels are locked than when they're unlocked, but your car will stop more slowly.
Because America is trying to convince the rest of the world that it's a developed nation. If your argument for that is "well, we're marginally better than the 3rd world" then perhaps you're aiming too low.
Well, we have a working system like this in Finland. I can't attest to your stealing $100 example, but a speeding ticket there is €30 for a poor person, or €103,000 if you're a Nokia executive.
Where by "no where near the bottom" you mean "worse than pretty much all of the developed world", because that's what that table shows. I mean, you're looking at 4 times as many fatalities per person as the UK, and twice as many per mile driven.
Actually, re modern ABS, it's much much smarter than that. It's lifting the brakes when it detects that the wheels have locked, just enough to unlock them, and then finding the ideal traction spot for you. Pulsing was just the first (fairly naïve) implementation.
What accidents? The following cars will also have an emergency braking system, and as a result, stop in time.
The poorer the driving conditions the less well ABS works. In heavy snow, having the wheels lock up more or less at random and not stay locked makes directional control when stopping really difficult.
If the wheels lock up, that's because you braked too hard. ABS unlocks them for you, giving you more directional control. If you want better directional control still, don't brake so hard.
Lawyer, maybe. Government, no. I just renewed my drivers license online.
That's lovely for you. As a foreign national, I'm currently in the process of trying to renew my US drivers license. It's so far taken 2 months, and reams of paper. It's taken so much bullshit and paper pushing in fact that my license expired during the process.
I pay my taxes online (income and real estate).
Certainly last time I filed my taxes in the US, there was a lot of paper involved, though I admit that was mostly through interaction with lawyers, not the government. The first time I filed them, I certainly was required to file with paper - eFiling was not available due to my foreign national status.
The last time I set foot in a government office, I didn't have to pick up a pen. There was a stylus to sign my name.
Sure, and then they printed out 3 sheets of paper and stapled them together to hand to you as a temporary driving license, rather than recording the fact that you had a license in a database, and sending you an email receipt as proof if something goes wrong and the police think you don't have one.
Sure, we can levy fines, but if the person is rich, they just pay them and it doesn't matter to them.
So determine the size of the fine based on a proportion of their income or their wealth (or some combination of the two).
If they are poor they can't pay them anyway so what do we do then?
Get them to repay the damage they've caused to society in some other way. Community service springs to mind.
I don't buy that 1 or 3 are valid at all. There are other punishments that can be used to serve as a deterrent. And frankly, taking vengeance from someone I find barbaric.
Prison has far too many consequences to be used simply as a deterrent - it literally destroys someone's life (they will likely lose their job and their house, they will probably struggle to ever get a job again, and hence to ever have any kind of life). It should not be used casually. Separating someone from society who is actually dangerous is the only legitimate use for it that I can actually think of.
Is he a danger to society? If not, he shouldn't be in prison.
Try interacting with a lawyer or a government. I can guarantee you, everything is going to involve paper.
Being compiled on your computer doesn't imply that the binary matches the source code. Your compiler may be maliciously inserting code into other binaries.
Depends entirely on the location. In many (the UK, and Texas for example, which seem relevant to the example), the rule is that you must stop if it's safe to do so. If it's not safe, you may cautiously proceed through the junction.
So in this case, it seems like it was completely safe to stop, and therefore, yes, it effectively was a stop light.