253 karma · joined October 16, 2013
So far as none trivial but solvable problems - there's going to have to be communication with all vendors operating delivery drones. Each drone will have to be aware of other drones by other companies and their flight-paths in the area and avoid collisions.
The biggest problem that I can see is the customer and public themselves. What is to stop someone stealing drones? Or plain vandalism of them? Follow it in a car to it's destination and you know it's going to have to come low enough down for a quick grab. Otherwise if there's some controlled drop off point, air rifles or crossbows or other publicly available small projectile weapons.
I think I personally could do with doing something like this in my free time.
And so far as google and streams, well that's their opinion and fits into their particular style. There's plenty of dev houses that would tell you to avoid C style string manipulation due to the dangers of stack overflows etc.
Anyway I'm not wanting to fall into a C vs C++ argument, I'm merely pointing out that it's very possible for someone to pick up C++ without having the slightest bit of knowledge of C to begin with. I sure didn't know any C to start with.
Printf and the cstdlib - eh yeah I'll hand you that, if someone had no concept at all that a language called C existed prior to C++ this would be confusing without explaining it to them. But a newbie should not be looking at C++ code that uses the cstdlib or printf anyway, they should be looking at streams and true C++ code to begin with.
In my personal opinion you want to balance bounties against how much money that the person could receive using the exploits, vs the amount of trouble they could potentially get into.
And you only have to look at Russia to see what happens when supply completely dwindles to addicts of hard drugs, the krokodil epidemic is truly horrifying.
My point is just that a free for all on all drugs no matter what harm they cause could be disastrous for society as a whole, as you mention there are plenty of people that currently use alcohol to escape their problems that are in difficult places, especially in poorer demographics. Imagine if they could get hold of heroine or methamphetamines on a whim.
It's a fine balance and I personally cannot see a good way to strike one that will keep everybody safe and happy.
There are plenty of drugs which if used responsibly I could see being legal though, marijuana, ecstasy and some hallucinogens to name a few. If taxed the government could stand to make a lot of money from them as well.
Heroine is a prime example. Whilst the argument could be given for "Educated use" you must take into account that the greater population at large will not educate themselves, and will come to harm - mainly through addiction.
Cigarettes are a nice example. We spend vast quantities of money on health care for people who smoke - the information is there, everybody knows that it causes cancer, yet huge amounts of people do it. We would be better off as a planet if everyone just stopped.
Whilst incarceration clearly is not the correct response to addicts, some form of regulation is needed to protect idiots from themselves.
I think this title could benefit from something similar. It's a fine line to walk though, they have to be different enough to not just be a rehash.
Also I wonder about the ethical connotations of turning off the machine as was suggested at the end. At what point is life "life". If the simulated beings are truly perfect, would turning it off be the largest genocide ever committed?
for(const auto &i : data) {
ofile << i << std::endl;
}
The for loop definition there with the auto keyword. The rest has been standard for donkeys years.