Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment A BASIC fan's step-by-step curriculum (Score 2) 215

Step 1: Show them the BASIC interpreter

Step 2: PRINT, INPUT, IF, GOTO, END

Step 3: Show them Python, C++, or even JavaScript, if you hate them

I know it's not really what a platform-builder wants to hear, but please use BASIC only for purposes for which it's the best tool. It's ideal for highlighting the often-missed initial concepts, such as the facts that statements are executed in order, variables can store information and change, and that certain statements can change the program flow. Those core ideas are so internalized by experienced programmers that they often won't understand how students could be missing them. From the student's perspective, it's perfectly reasonable that once statements are made anywhere in a program, the computer should pick which one to run based on what would make sense. It's also reasonable that a variable should be set once and never change, or should be usable before being set because "it's set right there!"

BASIC has one major advantage over every other language out there: absolutely no boilerplate, and absolutely no hidden intelligence in the interpreter. Everything that makes the program run is visible in the code, and everything in the code does something lesson-related in the most minimal programs. Contrast with C, which requires defining a main() function before the student knows what a function is. This simplicity and obviousness makes BASIC the perfect tool for demonstrating simple and obvious programs, but it's inelegant for learning any actual computer science concepts like memory management, design patterns, or data structures.

Those concepts are best covered in another language, which also highlights another important CS concept: The functional equivalence of all Turing-complete languages, but the effects of language choice on the difficulty of the project.

Comment Re:How did they notice that? (Score 1) 143

I once installed a new front bumper on a Honda CR-V.

I removed the front bumper cover, the grille... and found a screwdriver and a pack of cigarettes sitting in a depression on a piece of the frame. Knowing the history of the car, I'd never had anyone else do work in that area, so I'm guessing it was left there during some manual stage of manufacturing.

Comment Re:If "yes," then it's not self-driving (Score 1) 362

A driver's license is not really entirely about driving, which is why some jurisdictions refer to them as operator's licenses.

To operate a motor vehicle, you're showing competence in the vehicle's operation, For a normal car, that means mostly the in-motion controls and law knowledge, but there's also a section of most tests where you're required to demonstrate mastery of the machine and the ability to keep it in good condition, by demonstrating indicator lights, completing a knowledge test, passing emissions tests, and the like.

For a self-driving car, that vehicular mastery becomes more important. Do you know how to manually take control of the vehicle? Do you know in which situations you might be required to take manual control? Does your vehicle indicate that it receives reasonably-frequent data or logic updates, if needed?

In short, if you're the legal entity responsible for the vehicle, are you able to reasonably ensure its safe operation?

Comment Re:contamination? (Score 1) 135

Aside from the huge privacy issues, I'm even more concerned that they would screw up collecting it. Everyone sheds DNA. Who is to say that the DNA they collect is actually from the person they think it is? DNA gets all mixed together after it leaves a person's body.

That's what juries are for. The prosecution presents evidence that the defendant's DNA was found at the scene of the crime. The defense attorney then attacks the credibility of the evidence, for example by offering an alternative theory for why his DNA was there, or attacking the method of collection to raise doubt that it's actually his DNA the police collected. (He doesn't necessarily have to provide his own DNA sample. Defendants aren't obligated to prove their innocence.) Then the investigator explains why the collection method is sound. At the end of the day, the jury decides whether the defense has raised a reasonable doubt.

Comment Re:Nothing wrong here. (Score 3, Insightful) 135

This comment makes absolutely no sense. Where does probable cause come from, except from an investigation? How do you expect police to do their job if they're only allowed to start collecting evidence after they get a warrant, which must be supported by evidence?

The purpose of a warrant is to allow the police to breach your otherwise constitutionally-guaranteed reasonable expectation of privacy. A warrant permits police to search your home, person, vehicle, or other private space without your permission. Other than such private spaces, police don't need permission from anybody to investigate. They certainly don't need a warrant to search a crime scene, where you have no legally-protected reasonable expectation of privacy.

Comment Re:As the majority pointed out (Score 1) 135

so they follow you around until they see you throw away a cup, or a piece of gum, or sneeze and toss the tissue away in a public place. Then they amble up and help themselves.

That sounds like "police work" to me. I'd rather police spend their time doing things like staking out suspected criminals than doing what the NSA does.

Comment Re:What about the public? (Score 1) 135

If this is something only the government can do legally, then what law gives them but not me the right to collect other people's DNA and have it analyzed without their permission?

The government could be prevented from collection by the Fourth Amendment... but the Fourth is based on preventing the state harassing a citizen, and "inadvertently shed" DNA rather implies that there was no inconvenience to the suspect, and thus no violation.

More to the point, is there any law preventing me or anyone else from doing this right now? I can see James O'Keefe with a cotton swab and vial chasing Elizabeth Warren across the Harvard campus.

Private citizens are prevented from harassing other citizens by various anti-harassment laws which vary by local jurisdiction. Chasing someone across the campus probably isn't allowed, but pulling a cup from the trash (once, so as not to be considered "stalking") is probably fine.

Comment Re:I'd expect lots of cross-over branding crap (Score 5, Insightful) 208

Why is this modded flamebait? Is it because there's no "pretty-accurate" mod?

I recall an article a while back about the huge corporate shift within LEGO when they started working with tie-ins. Yes, kids were quite content with building... but they're even happier to be building with their favorite pop-culture characters and settings. The bottom line was the bottom line. Ultimately, LEGO faced a decision whether they would keep their mediocre sales figures and their original characters, or whether they'd cash in their fanatic followers as targets for the movie marketing drones.

It turns out the latter choice wasn't nearly as bad as was feared. LEGO is iconic enough that they can hold their own in negotiations with brands. There are (almost) no remastered LEGO sets, no special promos, and no enforced storylines. Tie-in LEGO sets are still LEGOs, but with some familiar characters. Of course, LEGO still has their original material, which has seen a significant increase in sales because the tie-ins have served as a means to attract new customers. Perhaps surprisingly, LEGO has maintained its fanatic customer base, and yes, that often leads to supply shortages and expensive collector-oriented sets.

I'm afraid I can't find that article now, but here's an informative image.

Comment Re:Agreed (Score 1) 194

As I understand the location services built into iOS and Android devices, the phone will periodically send a list of nearby access points (with signal strengths) up to Apple or Google's servers, and those servers respond with a guess at the phone's location, which is often more accurate than the location received from cell towers, and more resilient than GPS. The servers know where access points are located due to data collected by mapping vehicles and the aggregated reports of clients' less-accurate reckonings.

I'm guessing that during the previous concert, the audience's phones were sufficient to convince the servers that the bands' APs were located in one particular place. When your phone tried to locate itself using those APs as a reference, it was told a now-incorrect location, because the server was unaware the APs had moved. Multiple APs being used as references could also end up with different locations, giving the erratic reporting you observed.

Comment Re:Default Government Stance (Score 3, Informative) 194

28 U.S. Code 534(a)(1), 47 CFR 2.701(b), and 47 CFR 15.9, to start.

Of course, let's not forget 47 CFR 15.15(c), which effectively says that interference is unavoidable and should be minimized, and when considered along with 47 CFR 15.5(c), you'll have a hard time convincing a judge (which is really what matters, legally) that the FBI's actions were actually illegal, unless the FCC has told them to stop. Good luck getting that to happen.

Comment Re:Stingray detector? (Score 1) 194

This is an awesome idea.

From the state's perspective, the worst that happens here is that criminals can avoid creating accessible evidence, but that comes at a significant cost for each private phone call, making their entire operation more costly. That in itself is a bit of justice, and a hindrance on coordinated criminal activity.

Normal law-abiding citizens can choose to be private or not, at a socially-acceptable low cost for the few times privacy might be desired. The truly paranoid law-abiding citizens can choose to be private every time, but their cost is the result of their own choice, not a government mandate.

Comment Re:Default Government Stance (Score 5, Informative) 194

Also consider the fact that the Constitution ofthe United States specifically limits the function of Government to that which is SPECIFICALLY ALLOWED by Law; any activity which is NOT specifically legislated for is in fact ILLEGAL for Government to carry out. As always, the Constitution wins out absent an Amendment, ergo warrantless wiretapping or active unlawful interference in communications is unconstitutional hence ILLEGAL.

The FBI's activities are specifically authorized by a host of laws. That you didn't bother to learn about them doesn't invalidate their existence.

Slashdot Top Deals

The test of intelligent tinkering is to save all the parts. -- Aldo Leopold

Working...