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

 



Forgot your password?
typodupeerror
Compare cell phone plans using Wirefly's innovative plan comparison tool ×

Comment Re: "Ghandi" quote updated (Score 0, Troll) 402

Does it matter? It's not reverseable anyway. Just live further north and away from the shoreline, problem solved.

Hey, in a few thousand years the current interglacial will probably come to an end, and our descendants will be glad we heated the place up in advance.

Not going to be much fun until then, though.

Comment Re:Third choice (Score 1) 275

Easy enough to say but last time I checked if you want to do anything with the current VR headset boom, you're pretty much going to have to use Windows. Steam's OpenVR initiative makes it sound like you don't, but a few months ago when I checked their Linux examples wouldn't even build.

Comment Re:Meh (Score 1) 178

Is there every any particular need to limit them, though? A couple decades ago it was uncommon to have more than one sound device on a machine. Now it's unusual not to have two or three. Designs and requirements change over time, and having to factor out singleton behavior that was never really necessary in the first place is kind of a pain in the ass. You could easily just create those things with thing factories when the program starts up, and pass them around to objects that need them. No artificial limits, and you don't have to factor out singleton behavior when you decide you want two things where you used to only have one.

I've found that design review boards are becoming increasingly hostile toward singletons, too. There was a narrow window where they'd at least consider one, back when people started talking about design patterns. These days it's next to impossible to get one approved, even if there's pretty good justification for it. You can always design around the need for a singleton, and usually the system design will be better without them.

Comment Meh (Score 5, Interesting) 178

I've yet to see a computer science professor with particularly excellent code, either. I run across assignments and example code from courses on a regular basis that fall into the "Never, ever do that" category of programming. Case in point, a relative of mine recently had some questions about a CS programming assignment. Part of the assignment description talked about design patterns and predictably went straight for the Singleton as an example. I'm pretty sure that's the only pattern that about 90% of programmers ever actually learn when reading about design patterns and it's so abused in the industry right now that you can basically never get one past a design review board.

Anywhoo, back in the '90's I worked for a company that was getting a B2 Certification for its operating system. My job basically consisted of reading the entire AT&T C standard library code, finding potential security flaws, writing tests for those flaws and then writing a report with the tests which would be delivered to the NSA. I found the remote buffer overflow in the AT&T telnet daemon a couple years before the same overflow was discovered in the Linux telnet daemon. So the NSA basically outsourced the hard work of finding all those exploits to the companies that were trying to get security certifications. It took three or four guys just a few months to go through all the stuff we had to look at. I'm sure we missed a bit, but I was much more confident in the security of their OS at the end of all that. Too bad they eventually went out of business, were acquired by IBM and their products were killed. You know, progress!

Comment Re:It's not what I call a scripting language. (Score 4, Funny) 396

agreed. Coming from Solaris to Windows, I find it horrid, just horrid. Some days, I would give my server for a workable "grep".

pipe to: where {$_.property -match "regex"}

Powershell has had a workable grep for a long time, but it's usually learning how objects work that typically obstruct new users.

Wow, that's elegant.

Comment Re:Speech as a crime (Score 2) 161

You do have a right to stop someone from saying things that a reasonable person would perceive as threatening.

And there's very little that someone hundreds of miles away from you can say over the internet that a reasonable person would perceive as threatening.

Someone in the same room with me, or standing in front of my house, saying "I'm going to punch you in the face for what you said!" is a true threat, the person has the imminent means and opportunity to carry it out. Someone in a different city tweeting "@tom_swiss I'm going to punch you in the face for what you said!" is not a threat. Their arms just aren't that long.

Comment Re:Oh yeah, that's money well spent (Score 1) 161

Can somebody tell me why motivation makes a difference?

Because intent matters.

Intent is a very different thing than motive. Motive, in your example is the reason why the first guy planned his murder: for gain, for the lulz, ethnic or religious or political hatred, whatever. The act is still one of deliberate intent, regardless of motive. Your second guy had no intent to kill.

Motive may matter when we turn to the question of how to rehabilitate a criminal. But it can play no rightful role in defining a crime.

Slashdot Top Deals

You are in a maze of UUCP connections, all alike.

Working...