Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Re:Perl (Score 5, Insightful) 536

A good language ... should do its very best to make sure you CAN'T code sloppily.

Exactly, just like a good spoken language should make sure you CAN'T use profanity.

...But then, what about when profanity is appropriate? What if you need an emphasis that is so fucking strong that simply changing the tone of voice doesn't suffice? What if your whole damned speech is in reference to something condemned by a deity, or referring to Mohammed the thief, who assumed the name of the prophet?

The point of any language is to express. For programming languages, the idea is to express instructions for two different processing styles simultaneously: the deterministic and predetermined understanding of the parser, and the non-deterministic and subjective understanding of colleagues. Similarly, spoken languages must account for the subjective understandings of every listener, some of which may have very different rules regarding obscenity.

There is much more to coding "cleanly" than mere syntax. Structure is equally important, and it must change as the system design demands. If the rules of a language are too strict, then the whole program starts to look the same, and it's more difficult for future interpreters to understand the intent of the program.

There is an art to writing clean code, just as there's an art to writing eloquent language. Strict rules don't always improve that art.

Comment Re:Step 1 (Score 2) 196

Cute, but no. One of my first stage jobs was with a great stage manager, who did several decades of concerts dating back to the Big Band era. He was nearly deaf from it, so before the first show of the season he called all of the techs together, handed out pairs of high-quality earplugs, and warned us that if he ever found us not wearing them without a good reason, we'd be fired.

At every show since then, I've either worn earplugs or an in-ear monitor whenever the main amps were on. It's also worth noting that the stage crew isn't usually in front of the speakers, so all together I'm usually listening to less than 70 decibels, even at the loudest gigs.

Protective equipment is not just there to make the lawyers happy. It's there so that a decade later I don't have to hire someone else to tune a system.

He probably ... is constantly going "Hunh?" to his wife.

Well, yes, but that's just because I'm inattentive, not deaf.

Comment Re:Step 1 (Score 1) 196

Ears are the worst in terms of durability, complexity, and as is the focus of my post, manufacturing consistency. Those criteria are all interconnected, also indicating that there is no good way to solve their problems well.

There is no other component for which so many things can go wrong. The ears serve as the intermediary between the analog vibrations and the sensation of hearing, comprised of millions of self-assembling cells whose function depends on trillions of chemical interactions executing perfectly. In reality, such perfection is rare. Most defects don't matter, but the sheer number of imperfections means that everyone's sense of hearing is different in some way.

Stretching the boundaries of definition a bit, even if the ears themselves are good enough, their connection to the consciousness may by different from one person to another. I, for instance, don't find the throb of bass to be pleasant, so my personal sound systems are tuned to my tastes, tapering off the low end. Others prefer that heavy bass, so their preferences for the rest of their sound system will be different from my own.

With such wide variation, attempting to declare that certain brands of equipment sound "good" or "bad" is a very subjective declaration, practically useless for anyone else. No matter how technically perfect the rest of your system is, you'll perceive a "bad" sound if it doesn't suit your ears' and brain's construction.

Comment Re: Step 1 (Score 1) 196

Accurate reproduction (typically meaning "none") at frequencies one or more octaves above the primary frequency, usually phase-shifted slightly.

I'd rather not get into the audiophile's favorite game of "my metric is better than yours", but AC is technically correct - there are qualities beside frequency response. Frequency distortion is one of those. The idea is that you play a particular frequency through the driver, and record the resulting vibration. Ideally, they match. Put in a perfect sinusoid, and you get a perfect sinusoid back.

In the real world, no driver is perfect. The cone may wobble a bit because the paper fibers aren't perfectly symmetrical, or the coil wires may be wound unevenly, or myriad other causes such that perfect waves going in become jagged before coming out. The result is effectively overlaying harmonic or phase-shifted noise on top of any given component frequency.

High-end audiophile manufacturers like to boast about their reproduction, but it really doesn't matter much. For most such distortion, your ears can't tell the difference, because your eardrum is less sensitive than the driver. Outside of the lab, you're also not going to have the perfect waveform going in, so the harmonic components will be physically interrupted by other frequencies. Supposedly, soldiers are ordered to break step when crossing certain bridges so as to avoid resonance damaging the structure. The idea is the same: When listening to a typical audio source, there won't be enough of a clear single frequency to create noticeable distortion, except in rare extremely-bad cases.

Comment Re:Step 1 (Score 5, Informative) 196

In my spare time, I've been an audio technician for the past 5 years. Before that, I was a DJ as a hobby, and I've been on stage crew occasionally for the last decade. My current professional job involves system engineering on a multi-million-dollar sound system.

At home, my headphones are a $30 Sennheiser over-ear pair, and I carry $15 earbuds that I can only describe offhand as "black".

It is my professional opinion that all of the audiophile bullshit is bullshit. On a low-end sound system using the cheapest components you can buy, the worst component is your ears. That's where all of your problems start, and you're trying to pay lots of money to compensate throughout the rest of the system.

If you want a pair of headphones that sound great to you, forget about brand names and fancy features. Sit down with a pair of cheap headphones, and listen to the tones in music/tv/whatever that you find most pleasing. Some folks like to hear the deep rumble of heavy bass, while others (like myself) prefer the crisp clarity of vocals that the high end provides. Still others like the nostalgia of 60's disco and AM radio, so they'll have both high- and low-end, but cut out midtones entirely. Know your ears and your tastes, and that will tell you what frequency response you'll be happiest with.

Next, think about features. This should not be a difficult decision, as it mostly just relates to lifestyle. If you ride a bus or train to work and listen to audiobooks, noise canceling is probably a decent choice. Otherwise, it's probably not worth the price. A good fit is more important for keeping unwanted noise out, so if you're in the market for earbuds, look for ones with adjustable rubber. On my traveling pair, I actually have different rubber cones for my ears, because my ears are different sizes. My wife doesn't like in-ear styles, so she carries a pair of folding on-ear headphones in her purse. That was a criterion when we bought them.

Finally, go to Google, and research candidates. Brand doesn't matter nearly as much as having the right headphones for your ears. Buy a cheap pair with the right criteria and try it out. As a general rule, all headphones are made with thin wire and fragile construction that falls apart at the slightest trauma. That's the nature of the beast. Expensive brands just tack on bigger profit margins.

Comment Re:Important Caveat (Score 1) 560

The question at hand is

"whether the act of entering the password to decrypt the contents of a computer was an act of self-incrimination"

What I find interesting is that the answer is "no", implying that merely unlocking an encrypted disk does not in any way imply a criminal action. That would also necessarily mean that having an encrypted disk is affirmed by judgement to not be a criminal action

Comment Re:Except, of course, they have to prove you can (Score 4, Insightful) 560

As an accused boot-licking pro-establishment government-and-big-business shill, I agree.

As a relatively sane individual who tends to think for myself, I also agree.

As someone with passing familiarity with 4th-amendment case law, I also agree.

This guy was a first-class idiot. An encrypted hard drive is little different from a locked safe. A court can order you to open it to reveal evidence, but the police need sufficient probable cause to convince a judge to issue that order. Saying "All the evidence is in there and I have the key" is pretty convincing probable cause that there's important relevant evidence in the safe (or disk). Saying nothing is a good way (and the only really safe way, as far as I know) to ensure that you're not giving the cops any additional assistance in proving your guilt.

Comment Re:Let me be the first to say it. (Score 1) 97

So... was it patented? Was there, in fact, any legal protection to prohibit Disney from using the technology, or was it left unpatented by an inventor who didn't care? If the latter, would the state of robotics be as advanced today without Disney making the control systems from that little bird widely known? Even if it were patented, did the patent broadly cover all use of such technology, or merely the specific implementation as used in the bird?

I know that's a lot of questions to have to research before inciting an angry mob to go after the big-business bogeyman, but those are important questions to have answered. Go ahead; your pitchfork will wait here until you get back. You might want to extinguish the torch for now, though.

Comment Re:Not sure what the "secrecy" fuss is (Score 2, Insightful) 222

Secret negotiation provides an easy way to have a candid discussion, without worrying about vague implications of precise wording that one's political opponents will quote out of context and turn into the next hot election issue.

For example, in a negotiation, a diplomat can say "we don't need the unions to have disproportionate control over production costs", in reference to potentially giving unions control over tariffs. In public, that diplomat can then be quoted as saying "we don't need the unions", and he's lost a large number of supporting votes right there. If he's a Democrat, his career's over, because he didn't toe the party line giving unions full control over everything commercial.

Right now, I'd wager there's even a few Slashdotters getting mad at me because I used their precious unions in an example. Such is the danger of public discussion.

You're right, though, that Congress routinely fails to say "no", on the assumption that full and fair negotiations have already taken place. That's the big problem: there's never any push for politicians to do what's right rather than just reinforce the party.

Comment Re:The headline is juicy, but hides a real problem (Score 1) 212

I find it amusing that every reply so far has focused on the rhetorical question at the end of your post, even though you hit the real issue on the head.

Sure, this equipment is nicely sorted and in usable condition, but is there a distribution network on the receiving end? Are there actual storefronts, or merely front companies for stripping operations? From TFA:

Benson was previously convicted of exporting similar hazardous waste to Nigeria in 2011, and was appealing against his conviction – unsuccessfully – while continuing to illegally export televisions and freezers to West Africa, the Environment Agency said.

It seems Mr. Benson has made a habit of this tactic, and should already know that his methods run afoul of export laws. It's not a case of the big bad government out to stop the little guy from bringing luxury to the third-world savages, but rather just another guy who thinks that ignoring laws makes for a good business model.

Slashdot Top Deals

Saliva causes cancer, but only if swallowed in small amounts over a long period of time. -- George Carlin

Working...