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

 



Forgot your password?
typodupeerror
×

Comment Re:A BASIC fan's step-by-step curriculum (Score 1) 215

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.

Python works almost as well for this learning stage.

This is an example of a valid 2-line Python program:
x = 1+1
print x

Here is another valid program:
def oneplusone():
        return 1+1
print oneplusone()

This next program will crash at line 1 with "NameError: name 'oneplusone' is not defined":
print oneplusone()
def oneplusone():
        return 1+1

The one stumbling block with Python is that indentation matters. Copy-pasting your classmate's code into your program can easily break it.

Comment Re:Why Under the Sea? (Score 1) 149

That's called an immersed tube tunnel. The way it's done is they dig a trench at the bottom, lower concrete tunnel elements to form the tunnel and then cover the structure with rock and sand. This method has been used many times in the past and will be used in the future, for example here: http://en.wikipedia.org/wiki/F...

Immersed tunnels aren't always cheaper than boring or blasting through rock. For one thing, it is cumbersome and expensive to dig a trench in deep waters.

Comment Re: If they stick the landing... (Score 1) 75

US military application of existing GPS satellites can already achieve fixes down to 5cm. Centimeter-accurate positioning will never be allowed for civilian use, no matter how many satellite constellations you put up there.

I don't know about that. Is there anything malicious that a person could do with centimeter positioning that they can't already do with meter positioning?

Hell, I doubt that that there has ever been an instance where someone has managed to commit a crime because their GPS was meter-accurate, as opposed to for example 10-meter accurate or 100-meter accurate.

If I'm not mistaken the accuracy restrictions are mainly there to prevent foreign forces from developing munitions such as these: http://en.wikipedia.org/wiki/M..., but those restrictions will be extremely difficult to keep up when Russia, China, EU and others (India, Brazil, etc) have fully operational satellite constellations. You will pretty much need to get everyone to not compete on accuracy while there will be massive demand from the market for things like more accurate autonomous vehicles.

Comment Re: If they stick the landing... (Score 1) 75

I wonder how long it will take for the magnitude of that achievement to be noticed, let alone to sink in with T.C. Mits. I have a feeling that it will get mentioned, and Bill Nye will share a few words on CNN, but that it won't get much play in the mainstream press. We'll find out soon enough, I guess.

Keeping fingers crossed... ;-)

It probably won't, but the fruits of it will be noticed. I think the general public will like ubiquitous cell and data coverage, even in remote areas, or centimeter-accurate positioning. All of this stuff will be worldwide by nature.

Those are just two things that would be possible if it was cheap to launch and maintain thousands of satellites.

Comment Re:If all goes well. . . (Score 1) 228

Sigh. This is how it works:

Big corporation A: Would you please share your most private information with us?
Average person: No way, creeps.
Big corporation B: Would you please share your most private information with everyone on the planet and us?
Average person: OMGOMGOMG!!!! Am I gonna be a famous person?! HeretakemyinfoshowittoeveryoneNOWNOWNOW!!!! I swear once everyone realizes how awesome I am I'm definitely going to be famous and I'll be friends with famous people and I'll... Have you taken my information yet???! Here, here's a picture of my new awesome outfit! I should be a fashion model.

Slashdot Top Deals

If all else fails, lower your standards.

Working...