Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Re:Illegal labor (Score 1) 88

If picking fruit paid more and had more benefits than programming, I would have no problem picking fruit on the side.

If jobs picking fruit paid that much, the fruit would be so expensive that nearly nobody would buy it, and therefore nearly nobody would grow or sell fruit. I don't think destroying the agricultural industries of the US will be considered an acceptable solution by anyone.

Comment Re:Abolish NASA, and deregulate aerospace. (Score 1) 156

not quite the average toddler's level of understanding.

Project much?

Spoken like one with no clue at all of NASA's decades of hostility to private enterprise in space. Google for "OTRAG" for one example of a potential competitor that they pulled out all the stops to kill off.

-jcr

Comment Re:Uh huh. (Score 2) 88

Getting the actual people there (and back) is the costly part. "Stuff" doesn't require four or five levels of fail-safe. "Stuff" doesn't need to take a shit or get sick or argue about politics.

Then the solution seems pretty straightforward: send only "stuff" up there for the first few years.

Once the "stuff" has organized itself (because robots) and is looking pretty good, then send up some human beings, if you still want to. They can walk right into to their prefab moon-hotel.

Comment This method never fails (Score 1) 217

Here's how to calculate a 100% accurate estimate 100% of the time, when your manager asks you to predict how long it will take to implement feature X:

1. Tell your manager you'll get the estimate for them as soon as you've done the necessary research
2. Go back to your desk
3. Write down the current time
4. Implement the feature
5. Subtract the time you wrote down in step (3) from the current time. This is your 100% accurate estimate of how long it took you to implement the feature
6. Email your manager, and let them know the estimate value. If you're feeling like it, you can also let them know that the feature is now implemented (although this may make them feel like the estimate you gave them is no longer particularly useful, so treat cautiously there)

Comment Re:Not just software. (Score 1) 217

For example, if the last time you did it, it took 3 weeks, a good prediction is that this time it's going to take 3 weeks.

Hopefully it will take less, because this time I will be able to take the code I wrote last time and just re-use it, possible with some minor modifications, rather than designing and implementing it all from scratch.

(Or if I can't do that, then either it's a new task and there wasn't actually any "last time I did it", or I did a lousy job last time of designing my code to be re-usable. Software development is mainly about automating previously manual processes so they can be repeated more quickly/easily in the future; that applies to the process of writing the software itself also)

Comment I couldn't get past "how do you write a game"? (Score 5, Interesting) 417

When I was learning about functional programming in college, I got about as far as learning about the avoidance of side effects, at which point I started asking myself, "how would one write a video game in an FP language if you're not supposed to e.g. update the player's on-screen position in response to a keystroke"? The answer I got was to either generate an entire new game-state for each update (which seemed unwieldy), or work around the problem using monads, which admittedly I never really understood. I went back to procedural programming since that looked like the more straightforward way to implement the kinds of programs I wanted to write.

My question now is, do people ever actually write video games using functional programming? And if so, how would an FP-based arcade-style video game realistically handle things like updating the state of the player and the monsters at 60fps, as the game progresses?

Comment Re:Money stores value (Score 1) 149

The American Revolution is proof that you are wrong, as they won the war using only paper money.

Might want to brush up on your history a bit. They won despite the paper money, which was a major hindrance. Google for the phrase "not worth a continental". When the constitution was written, the memory of America's first hyperinflation was very fresh in their minds, which is why the gold and silver clause in the constitution forbids fiat currency.

-jcr

Slashdot Top Deals

"There is nothing new under the sun, but there are lots of old things we don't know yet." -Ambrose Bierce

Working...