Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Take advantage of Black Friday with 15% off sitewide with coupon code "BLACKFRIDAY" on Slashdot Deals (some exclusions apply)". ×

Comment Re:one question (Score 1) 360

I agree. Just like in life you learn from your own mistakes and the mistakes of others. Many times I want to just rewrite the code from scratch because I think it will be faster, but in doing so I would miss opportunities to learn from others mistakes. If I make the same mistake myself, then I haven't learned and it is my fault. If I don't give myself the opportunity to learn from it then I'm more likely to repeat the error or something similar. Anyone that thinks that won't work on the code of others is someone that thinks that their shit doesn't stink. I would not consider hiring them to work for me.

Comment Re:The nice thing about Python (Score 1) 72

Let me preface this by saying that I love Python and it is currently my language of choice for doing almost everything (I prefer C for things that need to be really fast). I have an anecdote regarding a whitespace issue. I had an infinite loop that was supposed to sleep after it did the work if there was work to do. The sleep was there, but it was off by one indentation so the program was consuming 100% CPU, think: {some arbitrary code...} while True: if condition: do something elif condition2: do something2 else: do something3 # if conditions aren't met sleep until there is work to do sleep interval So the sleep was in the else block causing the program to rip through CPU (fortunately there were 4 on the machine, so it was really only 25%), but the point is that things like this can be hard to see. This is a perfect example of trade-offs, IMO. You either have to deal with the scoping with extra parenthesis or you have to pay more attention to the indentation.

Comment In other news... (Score 5, Funny) 578

Fox has filed suit against all electronics manufacturers that have installed a fast-forward function on digital media playing device. Audio cassette manufacturers must remove fast-forward and rewind capabilities because users could skip a recorded radio broadcast commercial by flipping the tape, rewinding, then flipping the tape again.

Comment Re:Answers. (Score 1) 705

But the problem with having regulation is that, eventually, the "keeper of the net" will become corrupt and find ways to control the flow of data and get rich doing so or worse yet be controlled by the government.

Why Android Is the New Windows 424

An anonymous reader writes "Windows' dominance of the PC market has been good in many ways: reduced hardware costs, increased IT literacy and a standard development platform to name a few. Perhaps Android will bring similar benefits. But unless Google are very careful, it is likely to bring some of the same problems, too."

"Spock, did you see the looks on their faces?" "Yes, Captain, a sort of vacant contentment."