Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Anorgasmia (Score 2) 82

I heard a story about a nun who had anorgasmia- meaning she couldn't experience pleasure of any sort (not just sexual). Someone did VNS surgery on her and had the implant send pulses to her pleasure center. That produced major changes- she was super happy, quit being a nun, decided to become a prostitute, and went to Venezuela(?). Eventually her pleasure center couldn't take being hammered by electricity anymore and she started to find it annoying. Eventually she had them remove it.

Comment Re:Answer (Score 4, Interesting) 336

(I work at Google and use C++ there, but what follows is my opinion)

What precisely don't you like about the C++ style guide? (This is almost identical to the internal guide)

- It is true that exceptions are verboten, but honestly it's not particularly limiting. Java gets exceptions right - something is truly "impossible" (in a crash-the-program you-have-a-logic-error sense) and thus you don't need to handle it, or else it's "expected" like an I/O issue and the language forces you to do something with it - either try/catch, or declaring that you're potentially passing it along. C++ doesn't have any such enforcement, which makes it very hard to reason about what a function may throw at you. You rely on everybody in the entire call hierarchy doing the right thing. Reminiscing about my Java days, the lack of exceptions does make some things somewhat more cumbersome to deal with - having to explicitly return a status object, for instance, to deal with plausible-but-atypical cases. But the Google guide is fairly apologetic in this area and basically says "sure, we'd use it if we had a brand-new codebase, but we don't..." and the reasons that follow for why exceptions are hard to integrate into a truly enormous codebase seem sound to me. What do you disagree with about this reasoning?

- There is certainly no rule about "allocate at the top, clean up at the bottom, never return from the middle". In fact, with unique_ptr and the like, there's even less reason to do those kind of things than there's ever been. The local variable part of the style guide actually explicitly encourages as-close-as-possible declaration, and the rest of the style guide is quite gung-ho about unique_ptr (we actually had an internal class for a long time that was sufficiently identical to unique_ptr that they were able to replace all uses and remove the custom type in just a few months). I can find no reference to any sort of prescription about the location of return statements.

- The standard libraries have actually been moving away from exceptions, haven't they? C++11 introduced 'noexcept' and added it to a bunch of methods, and the specs for a lot of other ones guarantee that the only exceptions are from the allocator (e.g. std::bad_alloc). To be clear there is no prohibition against *using* code (especially the standard library) that may throw exceptions.

In a nutshell the style guide is, in order, "be readable" followed by "be consistent". It is hilariously easy to write unreadable, bug-prone C++ code. Nobody cares if your code is perfect and correct, they care if the next guy along can modify or use it correctly and it is useful to have a style guide to make some of the more hard to reason about things impossible. How many different bits of code could the statement 'a = b;' potentially execute? (It's a lot - copy constructor, operator=, operator Foo(), etc.) The style guide limits it to just a few things you might have to consider, so that when you use some code someone wrote 6 years ago there's not so much to look at. C++ has references and pointers, which is great, but at least with pointers there's a hint that you might have "spooky action at a distance" so the guide mandates their use for out-params which seems perfectly reasonable since it's basically arbitrary which to use - and in practice, it's a really handy hint to have when you're reading. Unless you're passing an address, you know your copy can't be modified. IMO, way more readable.

If you've really been hanging up on recruiters because you object to the style guide, it is probably worthwhile to actually ensure that your understanding of it is correct and up to date. It has changed in recent years as C++11 has become better understood and it is fair to say that it is far more liberal to things like lambdas, template metaprogramming, operator overloading, copyable classes, etc - than it was a few years ago.

Comment Re:Good to see the FCC at least considered it. (Score 1) 133

This is how a corporation goes to heaven: First a hedge fund manager takes out a short term high interest loan from a bank through a shell corporation, then approaches the corporation's executive management and proposes [...insert references to stuff that sounds illegal but still boring as hell...] ... and since he's the first in line to get paid, he takes his management fees out and walks away with 10% of the initial loan value after the corporation has laid everyone off and entered the afterlife.

Comment Re:Seriously? (Score 5, Interesting) 110

The FAA and the model aircraft folks have an understanding - they have worked with the FAA for many years and kept their members in check (using, among other things, the carrot/stick insurance approach). Before the 2012 law that explicitly orders the FAA to work with the model aircraft folks to come up with reasonable rules, there's been an advisory circular ("this is our interpretation of the rules, just a heads up because we'll enforce them this way") since 1981 that's still basically the rules: AC 91-57. You'll note that they're hardly onerous and really there's been very few problems with the "traditional" model aircraft folks. An advisory circular isn't a rule as such - and in fact one of the court cases over the drones was the judge saying "you can't enforce an AC as an official rule" - but it is broadly speaking "intent to rule". The actual federal air regulations are quite nonspecific and allow a tremendous amount of leeway for the FAA to say exactly what the rule means - and unless the interpretation is deliberately capricious the administrative law judge (basically a trial for regulations, not laws) is bound to their interpretation so they almost always win. Best not to violate the AC, since that's how you know what this interpretation is that they'll hit you with.

The FAA trusts the AMA guys to do this right, and really they've done a remarkably good job and have a many-decade long track record. It's hard to build and fly model aircraft, and if it's a hobby it's much easier to do things "right" by joining a club and using their field and following the rules.

They're not the problem. No, the problem is the drone idiots who go on Amazon and buy a "point and fly" DJI Phantom or something and go to the park and fly it up to check out a police helicopter, or the planes in a major airport's approach path. They have no training, no sense, and no community that will keep them in line. They don't care about being accredited and having insurance - their level of commitment is a few hundred bucks and a couple hours' time.

Irresponsible drone use is ruining it for the rest of the hobbyists. There is responsible use, but since drones are so easy to use, there's a lot more irresponsible use than there was with traditional model planes. It's really that simple. They are causing a safety hazard and forcing the FAA's hand to more proper regulation than their laissez-faire "the AMA seems to be doing this properly" approach of the last 30 years until now.

I am a fixed-wing pilot, anything that can fly through my window at 140MPH pisses me off. Birds are bad enough, but at least they're not metal and we can't really control them. I trust the model aircraft guys to stay low and in their traditional fields and away from my airports. I don't trust the drone guys.

As for incorrect information... the GP was more accurate than you on balance, so maybe look a little deeper next time?

Comment Re:It's the same old lies from these H1B advocates (Score 1) 612

Everybody wants cheaper stuff. Are you ashamed of yourself when buying a cheaper consumer article ?

Were slaveowners ashamed of themselves for getting free labor? Probably not, but being "ashamed of yourself" isn't really a relevant question to pose to people who are proud of what they did.

Comment Re:Error in summary: (Score 2) 203

Well they started building the NYC subway system before planes existed and it opened for business less than a year after the Wright Brother's flight so there's a bit more legacy here than Atlanta. It's also a different scale as you could fit the Atlanta system 40 times over into the NYC system (by weekday passenger volume). Our secondary subway system is bigger than Atlanta's subway. We have a single line that, if it were its own entire subway system, it would still have more rides than the entire Washington Metro (#2 system), or Boston and SF (#4 and #5) combined. So to say it's a much more complicated (and thus harder to change) system is an understatement. It's also worth noting that they built the airport and subway so they could connect to each other, and that Atlanta is not an island, so there is a lot more freedom of placement.

That said... yeah, it is pretty bad. They could extend the N/Q out east but I don't think it's really going to cope with 100x passenger volume on those segments. The new express bus is pretty good, one or two stops from a few subway stations to the airport. But there should be a train.

Comment Re:Scientifically driven politics (Score 1) 347

FOIA requests can be used for targeted denial of service attacks, yes. Look at what this chick is doing to a public library: http://dc.uwm.edu/cgi/viewcont... She's just a dumb blonde (look at her kooky museum tour videos) but she's still managed to deluge the library with hundreds of FOIA requests (demanding shit like "all the data produced on all employees' computers over the past year", etc.) She's a lone kook not even employed by a major industry, and the library has to hire two full time employees just to respond to her FOIA requests. If they are legally required to respond to them, most small research teams would easily be shut down by a torrent of FOIA requests coming from deep-pocketed industries.

Comment CF: Comcast & Verizon wanted net neutrality (Score 1) 553

This is what Carly Fiorina said about net neutrality two days ago:

The dirty little secret of that regulation, which is the same dirty little secret of Obamacare or Dodd-Frank or all of these other huge complicated pieces of regulation or legislation, is that they don't get written on their own, they get written in part by lobbyists for big companies who want to understand that the rules are going to work for them.... Who was in the middle of arguing for net neutrality? Verizon, Comcast, Google, I mean, all these companies were playing. They weren't saying "we don't need this," they were saying "we need it."

I think my grandmother could have done a better job running HP.

Comment This got moderated as "Flamebait"? (Score 1) 1097

Organise a "draw Jesus sodomizing Mary" contest in Texas and you'll get crazy Christian jihadists doing the same thing. If you set up an event specifically designed to insult/offend/antagonise a particular religion, you're always going to get a response like this from someone.

A carload of Christians must have pulled up and busted some down-mods into this post. The guy uses British spelling but he's absolutely correct. Organizing a "Jesus sodomizing Mary" contest in Texas would be a suicide attempt.

Slashdot Top Deals

I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain"

Working...