Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:Easier to Analyze or Change == More Maintainabl (Score 3, Interesting) 247

I once took over 30,000 lines of code that had been written by a subcontractor and trimmed it to around 4000 LOC. And you better believe it ran faster! Not because refactoring is magic, but because once all the mind-numbing almost-repetition was mucked out you could actually see what the code was doing and notice that a lot of it wasn't really necessary. Ever since then I have always maintained that coders should never ever copy and paste code. I've had people disagree, saying that a little bit of copying and pasting won't hurt, but I say if it's really such a little bit then you shouldn't mind re-typing it. Of course if you do that very soon you start putting more effort into devising ways to stop repeating yourself, which is exactly the point. Repeating yourself should be painful.

That's I think a reliable litmus test for whether you should refactor a piece of software. If it's an area of code that's been receiving a lot of maintenance, and you think you can reduce the size significantly (say by 1/3 or more) without loss of features or generality you should do it. If it's an area of code that's not taking up any maintenance time, or if you're adding speculative features nobody is asked for and the code will get larger or remain the same size, then you should leave it alone. It's almost common sense.

I don't see why anyone would think that refactoring for its own sake would necessarily improve anything. If an automotive engineer on a lark decided to redesign a transmission you wouldn't expect it to get magically better just because he fiddled with it. But if he had a specific and reasonable objective in the redesign that's a different situation. If you have a specific and sensible objective for reorganizing a piece of code, then it's reasonable to consider doing it.

Comment Re:Bad idea (Score 2) 671

Well, this is the thing about civil disobedience. The classic formula is to keep up awareness of your issue by forcing the government to go through the embarrassing and drawn-out process of prosecuting and punishing you. I'll bet they had to drag Thoreau kicking and screaming out of that Concord jail cell when some joker finally came along and paid his poll tax for him. Holding court for his admirers in the town pokey no doubt suited his purposes nicely.

In that spirit, this announcement is very effective. When was the last headline you read about Edward Snowden? If he comes back for a long and drawn out trial that'll show he's pretty hard core about this civil disobedience thing -- if leaving a cushy, high paying job in Hawaii with his pole-dancing girlfriend to go to fricken' Russia wasn't enough.

It occurs to me, though, that this situation is a lot like what I always say about data management systems: the good ones are easier to replace than the bad ones. Likewise the better governments, the ones with at least some commitment to things like due process, are much easier to face down with civil disobedience than ones where being a political threat gets you a bullet in the head, like Ninoy Aquino or Boris Nemtzov. If Snowden *does* come back, and if he ends up "detained" in limbo somewhere, then it'll be time for everyone to go into the streets and bring the government down.

Comment Re:Brain drain (Score 1) 167

Everyone likes getting paid. And all things being equal, everyone likes getting paid *more*.

But one thing I've noticed is that the people who are most dissatisfied with their current pay also happen to be the most dissatisfied with their working conditions overall, particularly how they feel treated. The feeling seems to be that if they ought to get more pay to put up with this shit.

Now I wouldn't suggest to any employer, particularly in tech, to economize by offering low salaries. You want to attract and retain the best people you can. But this suggests to me that many employers would do themselves a favor by paying a little more attention to worker happiness. If you're paying people approaching (or even more than) $100,000, there's bound to be a lot more cost effective ways to goose worker morale than handing out raises they'll perceive as significant.

But oddly many employers seem to think paying someone's salary is a license for handing out indignities. This doesn't even qualify as penny wise pound foolish.

Comment Re:What is Parody? (Score 1) 255

What is gasoline if not a liquid? And what is liquid but a fluid? Therefore I should be able to run my car on hot air. So not all fair use is parody, nor is everything an author has to put up with fair use.

Fan fiction falls into that last category. Some authors encourage it, which is gracious; others are paranoid about it, which is understandable. But ultimately no matter how they feel about fan fiction they're going to have to put up with it. A successful work of fiction fires peoples' imaginations, and in the Internet era that means they're going to share their imaginings with like-minded people. Trying to police fan-fiction in a world where anyone can set up a blog or social media account to share it is like spitting into a hurricane force wind.

But even though a successful author pretty much has to put up with fan fiction whether he likes it or not, it's ridiculous to think that any author is somehow obligated to promote it. That just a fan-fiction author's fantasy. Authors have lives too, and there is not enough hours in the day for an author to police the stuff, much less to negotiate business deals for the people who write it. It's considered bad manners to even ask an author for the name of his literary agent, because an agent is supposed to work for an author, which he won't be able to do if he's swamped with requests from wannabes.

Comment Re:Hillary is a divisive figure *among Democrats* (Score 2) 538

Well, it's an open question of who's living in a fantasy world. I'm actually old enough to remember these people. Show me a Republican today who'd be as aggressive as Nixon on regulation. Who would sign the Clean Water Act, or the Fair Credit Reporting Act, or appoint someone like Elliot Richardson the head of HEW. Nixon also took the single most intrusive act of economic intervention ever by an American president (including FDR): the wage-price freeze. It's fair to say that there's nobody in national politics anywhere on the spectrum that would undertake a step like that. For one thing it was hopeless; there is no way to stop incipient runaway inflation without restricting the money supply and reducing government deficit spending so as to induce a temporary contraction of the economy.

Comment Re:Hillary is a divisive figure *among Democrats* (Score 1) 538

A generation ago, Hillary was on the left fringe of the Democratic Party. She has not moved right, the Party has moved left.

A generation ago, Paul Wolfowitz was on the left fringe of the Democratic party. People change.

Nelson Rockefeller was to the left of Hillary. So was Richard Nixon.

Comment Hillary is a divisive figure *among Democrats* (Score 5, Interesting) 538

That may surprise people here. The Republicans have done a good job painting her as the quintessential ultra-liberal Democrat, but really she is no such thing. She is, in fact, from the right wing of the party and could have been an establishment Republican a generation ago. She is widely reviled by the left over her vote on the Iraq War Authorization of Military Force (although to be fair, Joe Biden voted for it too and he's seen as generally reliable on liberal issues, as long as he doesn't open his mouth).

On the other hand she's the first really plausible female presidential candidate for a major party, and I think a lot of people who want to see that milestone project a great deal of their hopes on her. But what makes her plausible in the first place is her acceptability to the establishment.

And what makes her acceptable to the establishment is her competence and personal accomplishments; being married to Bill helps. But the Ivy League education, experience in high profile NGOs and partnership in a major law firm mean she's seen as serious by "serious people". But in this case that should be held against her here. She's not like old Uncle Joe (Biden), whose heart is in the right place but who the hell can tell where his mind might go a-wandering; Hillary is someone you expect to have her head in the game. She knew damn well that conducting official business on non-government servers is exactly what people do when they're breaking the law.

I'm neither a Hillary partisan nor a Hillary hater. On the political spectrum I tend to fall a little to the right of the most vocal Democratic base and to the left of the establishment "DLC" wing that dominates the party at the national level. When the Secretary of State does something this fishy, that's a big deal. I think there should be something like a special prosecutor appointed, even though when the words "Clinton" and "special prosecutor" are uttered in the sentence the word "circus" can't be far behind. But then if the special prosecutor finds no indictable offense I'd be happy with that result.

Comment Re:Crime (Score 2, Interesting) 538

Not really. The really one remaining significant difference between the parties is that public shaming is still a career-ender in the Democratic party. There's no post-scandal career phase as an evangelical preacher, Fox news commentator, or both waiting for guys like Anthony Wiener or William J. Jefferson (the freezer cash guy).

Comment Re:FCC? (Score 1) 194

The device was approved by the FCC. However the approval process is not in this case transparent. We don't know whether the FCC took into account whether the device's capacity to create interference, or whether they may have played favorites.

One thing we can be certain about is that the FCC didn't worry about Constitutional or laws that protect citizen privacy, and certainly not the use of the devices without a warrant. That's not their bailiwick.

So to summarize the FCC approved this device but we don't know if they did their job. We can be certain they didn't do *more* than their job.

Comment Re:Brain drain (Score 4, Interesting) 167

Well... maybe there's some kind of model in which you would actually look forward to seeing your colleagues in person.

Personally, I've done in both ways. When my partner and I sold our business to a company that was on the other side of the country, I no longer had a two hour a day commute, which was awesome. I also didn't have a team I saw in person every day, which I very quickly grew to miss. And I'm not the most sociable person in the world. I'm more than glad to spend a few days or even weeks working by myself. But as weeks stretched into months, with only emails, teleconferencing, and the occasional cross-country flight, I grew to hate telecommuting. It's great to be able to do it even a couple of days a week, but if I had the choice of woking in bathrobe in the spare bedroom ALL the time or spending two hours in the car EVERY day, I'd go with the commute.

If I were starting another company, I think one of my priorities would be to make being there fun, stimulating, and personally rewarding. I'd make it possible to telecommute, but if people began to see it as their primary mode of working I'd consider that a red flag.

Slashdot Top Deals

Our business in life is not to succeed but to continue to fail in high spirits. -- Robert Louis Stevenson

Working...