Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re: Bring on the lausuits (Score 1) 580

by Captain Splendid (#49138081) Attached to: Republicans Back Down, FCC To Enforce Net Neutrality Rules
Add that to the long list of other things you don't know.

LOL. Care to make it interesting? Unlike most assholes here, I don't just say shit to make myself feel good, I'll back it up with cash. Care to wager some money that the GOP will take the White House in 2 years?

Comment: Re: Bring on the lausuits (Score 1) 580

by Captain Splendid (#49131565) Attached to: Republicans Back Down, FCC To Enforce Net Neutrality Rules
In a normal world, your argument would be persuasive. But since the GOP has spent the last 30 years jumping every shark they can get, the problem isn't whether Dems can win 2016, it's the whether the GOP can untangle itself from the crazy long enough to not scare off most "independent" voters.

Comment: Re:Use recursion when the problem is recursive (Score 1) 252

by spaceyhackerlady (#49018529) Attached to: AP Test's Recursion Examples: An Exercise In Awkwardness

Yes, they did.

In another job interview I was asked to write a program to generate prime numbers. I clarified a couple of requirements ("is memory usage an issue?"), and implemented the Sieve of Eratosthenes. It works, you know why it works, any idiot can read the code and understand it, and if testing shows you need something better (in some sense), you know where to start.

...laura

Comment: Use recursion when the problem is recursive (Score 1) 252

by spaceyhackerlady (#49015017) Attached to: AP Test's Recursion Examples: An Exercise In Awkwardness

Regardless of the final implementation, there are problems where the simplest, clearest solution is a recursive one. You type it in to the computer as fast as you can type, it compiles and runs correctly the first time, and then, if you need to change it, you have a place to start.

On a job interview some years ago I was asked to write C code to reverse a string. I wrote it recursively: interchange the first and last elements, then reverse what's inside.

They liked my creativity. I got the job. :-)

...laura

Optimization hinders evolution.

Working...