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

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re:as usual faith in humanity is gone... (Score 2) 153

by hey! (#49362099) Attached to: Commercial Flamethrower Successfully Crowdfunded

Having fun isn't necessarily stupid. Having fun with flamboyantly dangerous things isn't necessarily stupid. It's endangering unwilling bystanders that's stupid.

Some people like to build and shoot powerful crossbows, or even replicas of medieval siege weapons. These are extremely dangerous and useless things. The dangerous power of a trebuchet to throw an upright piano 150 yards is part of the charm.

But a trebuchet is something that takes certain amount of thought and sacrifice to obtain and use. This flamethrower thing is more like a powerful handgun. There's been a recent fad for ridiculously overpowered handguns, which pack superfluously fatal power into a convenient, affordable form factor. The recent brouhaha over "armor piercing" ammunition was a side effect of a manufacturer selling a cut-down semi-automatic carbine as a "handgun", even though if you look at videos of people using them they're obviously terrible as handguns. This raised the question of whether 5.56 NATO ammunition should be regulated as "handgun ammunition", and in the end I think the decision not to was reasonablee. These aren't cop-killing or military handguns. They're extremely dangerous toys designed to get your rocks off.

There are some who'd say that because these guns are dangerous and impractical they should be banned. But I don't agree. "Impractical" isn't the same as "useless" because getting your rocks off is a legitimate use for a thing. I think people should be able to enjoy their ridiculous firearms as long as they do it at some kind of appropriate range. I also think there's a real danger though from stupid people who will go plinking in the woods with the things like they were BB guns.

That's really the only problem I have with this flamethrower, whether it's gold, chrome, or gunmetal gray. Any idiot can buy one, but it'd take someone reasonably intelligent and determined to find a place where it can be used safely. I'm not against people buying them, but I am for coming down hard on people who use them where they're a danger or public nuisance.

Comment: Re:This Guy's Talents Should be Put to Good Use (Score 4, Interesting) 165

by hey! (#49361119) Attached to: Prison Inmate Emails His Own Release Instructions To the Prison

Well, in the end you have to ask "did he get away with it?". Or, given that he turned himself in later, "did he have some purpose in escaping that he fulfilled?"

Intelligence is a multi-dimensional phenomenon. It includes things like thinking through unintended consequences before acting that quite clever people are sometimes bad at.

Comment: Re:It's good if they don't code like 90s C++ devs (Score 1) 280

by drinkypoo (#49360941) Attached to: Ask Slashdot: What Makes Some Code Particularly Good?

If that's all the variable is used for, won't the compiler optimize it out of existence anyway? Or is that too fancy yet?

I think a lot of people don't really understand how the compiler actually works. Not even at a basic level.

Well, no, I don't. That's why I asked. It sounds like the answer to my question is yes?

Comment: Re:Boorish (Score 1) 633

by drinkypoo (#49360799) Attached to: Jeremy Clarkson Dismissed From Top Gear

But as for taking production back to Wolfsberg, last I checked there were still lots of VWs made in Mexico.

Right. Don't buy them. They specifically moved the Golf back to Wolfsberg. Be careful, though, because I think they moved it back to Mexico more recently. You can get e.g. a "VAG VIN Decoder" app for Android, or just memorize which place in the VIN to look at and a handful of plant codes. Then you'll know precisely where the vehicle was produced.

Comment: Re:It's good if they don't code like 90s C++ devs (Score 1) 280

by drinkypoo (#49360541) Attached to: Ask Slashdot: What Makes Some Code Particularly Good?

If adding a variable aids readability, add the fucking variable! Shove all the results into a meaningful, readable variable name and then shove *that* into your function argument, not some long series of nested function. It's not the 90s. You don't have to save memory! Memory is there to make your code readable. Use it!

If that's all the variable is used for, won't the compiler optimize it out of existence anyway? Or is that too fancy yet?

Comment: Re:Wouldn't Want To Be In The Same Room With Her (Score 1) 291

I got my job just because the company I work for had over twenty developers that were all male, and it looked bad on their EEO report.

Not because you were the most qualified applicant? That means the company you work for hired you not because they should have, but because they were strong-armed into it. In fact, they should not have had to have hired you, they should have been able to hire the best-qualified applicant.

Comment: Re:This whole issue needs to be buried (Score 1) 291

The reality is that society needs children.

The reality is that you are asking employers to pay for that, but making children isn't their business. If society needs children, then society should pay for children, through income redistribution. Oh wait, guess what? We already give people a tax break for having children. I've known people who made more than me but paid no taxes because of their children. Now you want employers to pay again?

Of course the rules should apply equally to both genders. You could argue that people who don't have kids should get more time off,

Or you could argue that people who do have kids don't deserve to get paid for their time off. A person who doesn't have kids is worth more to their employer. If people can't afford to survive while they have kids (they can) and we need more people (we don't) then it would be worth it to pay people to have kids. Big problem with that is there are too many humans on this planet already, at least while we operate in our current mode. You want more people made, but that's the opposite of what we need.

Comment: Re:Boorish (Score 1) 633

by drinkypoo (#49360499) Attached to: Jeremy Clarkson Dismissed From Top Gear

If I want a car assembled correctly, I buy one which was put together in Germany

You mean like all those VWs built in Mexico?

No, completely unlike those VWs built in Mexico, which are built like shit. The only thing more embarrassing to my heritage than how shit UAW puts together cars is how shit Mexico puts together cars. It's interesting that you mention Volkswagen because Mexicans are known to be particularly bad at that. When VW brought USDM Golf production to Mexico, reliability plummeted. When they took production back to Wolfsberg, it came right back up to the German standards that we know and love.

Anyone who buys a VW built in Mexico is a moron. All of my imports to date have been built in their designing nation, and came over here on a boat fully assembled. Started with imports with a 240SX, then I had an Impreza GC5, couple of 300SDs (still have one) and an A8. That last has electrical problems but the mechanicals are good, anyway. And there's the rub with VW; their electrical is a bit garbage, even out of Germany.

Comment: Re:Good Luck (Score 4, Insightful) 317

by orasio (#49357197) Attached to: Amazon Requires Non-Compete Agreements.. For Warehouse Workers

In any case, you would need Amazon to actually enforce it.
While they do have more money for legal fees, they would risk a big PR issue if they tried to prevent some guy from working at Walmart after quitting Amazon. Also, the first guy with such a problem wouldn't have a lot of trouble finding someone to help them with legal fees, if only for the publicity.

This is probably just a scare tactic, to discourage people from leaving them, it is unethical, but not really enforceable.

Comment: Re:Good code (Score 4, Interesting) 280

by orasio (#49356481) Attached to: Ask Slashdot: What Makes Some Code Particularly Good?

For newly written code, things like readability, testability, and maintainability all can come in to whether it is "good" or not

For legacy stuff, Good code is code that works. Who cares how easy it is to read or test as long as it works?

The second one should also include "immutable". If it's hard to understand it will evolve easily to non working, and time spent on improvements can start to creep up very fast.

I have worked in very clever, solid code, but not easy to read. It was then maintained and extended by average, but competent programmers down the road, and turned into a big mess, only because it was so hard to understand.

In my experience, good code is easy to read, above all. That will make it easy to extend it coherently, find bugs and stuff. Also, if it doesn't work OK, it's easy to find out why. The single metric that saves time, money, and improves quality down the road is readability. Eveything else should be suject to that.

And, about the last point in the "article", "efficient", it's nonsense. Premature optimization is the root of all evil. You should _always_ follow the second rule of optimization (see http://c2.com/cgi/wiki?RulesOfOptimization ).

Comment: Re:Not being PHP (Score 1) 280

by orasio (#49356379) Attached to: Ask Slashdot: What Makes Some Code Particularly Good?

PHP can be good or bad, like any other code. Lately it's getting better.
As an example, do you think this looks bad? Looks pretty good to me.

  https://github.com/symfony/sym...

I have some awful, unreadable examples I could share in Java, PHP, Javascript and even C, but chosen language no longer forces you to write bad code. Maybe Perl, but I haven't seen it lately.

Comment: Re:what will be more interesting (Score 1) 633

by drinkypoo (#49354595) Attached to: Jeremy Clarkson Dismissed From Top Gear

Tell me about it. The other day I tried really really hard and I just couldn't manage to not buy a TV.

The default is to charge you the fee whether you have a tuner in your household or not. This may be less ridiculous now that they provide a lot of other services, but it was also true back when they didn't.

The universe is an island, surrounded by whatever it is that surrounds universes.

Working...