Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

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: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:The ultimate ugly hack? (Score 1) 264

I wasn't talking about Duff's device anymore, just the general normal usage of switch statements and the fact that they fall through by default, instead of the more logical opposite choice of breaking by default and continuing only by choice with an explicit instruction. Someone replied that falling through was useful if a whole list of values needed the same treatment, but I think it would have been better to have a standard where a list of values (and possibly ranges) could be provided rather than a silly list of "case x:case y:case z:".

Obviously, if you wanted to use Duff's device with such a modified switch syntax, every case label would need a "continue" to fall through explicitly.

Comment Re:The ultimate ugly hack? (Score 1) 264

OK, I'll amend my position slightly: they should break by default (and continue as an explicit option) but you should obviously be able to provide a list of values instead of the ridiculous 50 consecutive "case 5:case 6: case 7:...". Better still, they might add ranges while they're at it.

Oh well, I don't imagine them changing the standard for that any time soon, but one can dream...

Comment Re:Such is C (Score 2) 264

I remember something similar, called Duff's device. Not two overlapping switch statements (I don't think that's possible), but an intertwined loop and switch. I don't see any references to lines in bitmaps, but it's entirely possibe that the same kind of construction was used for that purpose too.

send(to, from, count)
register short *to, *from;
register count;
{
        register n = (count + 7) / 8;
        switch (count % 8) {
        case 0: do { *to = *from++;
        case 7: *to = *from++;
        case 6: *to = *from++;
        case 5: *to = *from++;
        case 4: *to = *from++;
        case 3: *to = *from++;
        case 2: *to = *from++;
        case 1: *to = *from++;
                        } while (--n > 0);
        }
}

Comment Re:Such is C (Score 1, Insightful) 264

Ideally, you should include a generic version without any hackish optimizations, but it isn't strictly required if you don't think you'll ever change CPUs in the future.

And then your company upgrades its CPUs while you're long gone, and now they need to figure out who the hell wrote that crappy piece of code that keeps crashing on the new CPU, and some other programmer has to rewrite everything from scratch because they can't figure out how your code works and why it's not doing what it's supposed to be doing.

By the way, that other programmer may just be an older version of you who has completely forgotten what the younger version did there... (not that I have any experience with that, cough)

Comment Re:U.S. government is EXTREMELY CORRUPT. (Score 3, Insightful) 102

Tell that to people in the US who had their cash, car or even house seized because it might be connected to a crime. Traveling with $10000 cash? Surely that must be drug money, no matter how plausible your excuse is, we'll take it to buy game consoles, zambonis or margarita machines. You can always try to get it back by hiring a lawyer and going to court, good luck.

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.

Slashdot Top Deals

HELP!!!! I'm being held prisoner in /usr/games/lib!

Working...