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


Forgot your password?
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:yeah i've heard of this... (Score 3, Interesting) 27

plastic-eating microbes could get loose and destroy everything made of plastic...But, that's just science fiction.

For 30 odd million years after trees evolved, nothing could eat dead wood. Dead trees piled up and their accumulated weight created the coal deposits that Trump knows and loves so well today.

Then after a few handy mutations, a microbe learned to eat wood. These microbes then learned to cohabitate in the gut of insects we now call termites in order to get around better. Together they eat houses.

Could happen with plastic.

And guitars.

Comment Re:Functional Programming Considered Harmful (Score 1) 374

I've been using functional languages for the past 10 years to put out successful commercial products and didn't even know it was supposed to be [problematic as described]

The real test is when you leave that company and somebody else has to read and maintain your code.

If I wrote my code using just my favorite paradigms and techniques, it would probably kill the future maintainer.

Comment Re:Functional Programming Considered Harmful (Score 1) 374

I tried a websearch the other day on "functional programming considered harmful" and found remarkably few hits...

That's old-school. Try searching "Functional Programming Sucks". Most won't know about the "considered harmful" reference when issuing criticism.

(By the way, they never objectively proved goto's are "harmful". Their model is merely an assumption about how human programmer brains work. I don't necessarily entirely disagree with the model, but it's never been scientifically validated.)

I've had heated debates at the wiki (now half-defunct) with FP fanboys. I will agree there may be legitimate niches, but the value of it is greatly over-hyped as a general-purpose technique. As I've stated elsewhere in this topic, most "realistic" examples are a result of comparisons to bad API's and/or languages. They are often defending FP against strawmen.

Comment GUI Example [Re: It has its uses] (Score 1) 374

Of course in GUI development, Lambda can also be very convenient.

Example? I've only seen examples that expose weaknesses in Java and/or its GUI libraries.

For example, if the distinction between on object and class were blurred, then each GUI push-button could and should have an OnClick method. (Language could include an option to add or change the method away from object declaration.)

Instead, one has to "register" the on-click code with a "listener" via a lambda. Why the fock should a typical coder have to care about a fricken GUI listener? That should be under-the-hood guts, or at least something you only care about (mostly just inspect) if there is a tricky bug. The coder mentally associates the on-click behavior with its button, and the GUI API should reflect that common sense. Java's doing it wrong; lambda's are merely a band-aid over bad design in that case.

"We forgot to think this through so instead we randomly shoehorn behavior into the gui via lambda's"

I've seen other "justifications" for lambda's that are usually a kludge over bad languages and/or libraries.

Comment Re:structs and fundamental OO (Score 1) 374

Structs do, however, make the critical aspects of an object oriented approach practical in c. They can carry data, function pointers, etc., and they can be passed around.

You are just reinventing machine language where data, instructions, and address pointers can be mixed willy-nilly. Higher-level languages merely try to introduce discipline and consistency to such practices.

Comment Re:Realistic examples missing (Score 1) 374

Regarding data parallelism: most rank-and-file big-scale data chomping is expected to be done by the database. For example, if you request "ORDER BY" in an SQL query, the database engine may indeed use parallelism under the hood to sort. But that's typically not a concern of the app developer or query writer. The DB engine builder worries about that. (It does help to know a bit about parallelism when considering query performance profiles.)

Comment Re:Driverless (Score 1) 273

Sure public transportation is fine. You said Uber and Lyft.

Dude, I'm not the Emperor of the World. I'm making my predictions of the future. Whether you like it or not, whether I like it or not, I predict that Uber and Lyft and such services are going to become more common in the future (especially if there are self-driving cars). It's too bad you don't approve, I guess, but there it is.

(In principle a city or county could operate a service similar to Uber or Lyft. Perhaps that would make you happier?)

They have at least thought of these things?? Wow, drink the kool-aid some more.

If I'm understanding you correctly, you believe that Tesla is spending thousands of dollars per car to provide the hardware for self-driving, without having thought of common problems like driving in snow in the winter. They've been testing this stuff for years, but presumably you believe their testing was flawed and/or inadequate. I'd be interested to find out from you what Tesla did wrong, and why they are wrong to think that their hardware is adequate.

Would you say the Tesla hardware is completely useless, or would you say that there are some circumstances under which the Tesla hardware can do a useful job of driving the car? Also, in your opinion, are the various videos of self-driving Teslas all faked? And the videos where a Tesla equipped with "Autopilot" takes action on its own to avoid an accident, are those faked?

Comment Re:Robots are good (Score 1) 236

Yeap but when the free money came to Michelle, did she complain? Nope, she accepted it happily.

She contradicted herself: she said tax refunds are good, but ALSO complained about the deficit a decade later. In other words, a hypocrite. If cornered, she'll blame it all on Democrat spending bills and ignore GOP spending bills. If cornered on that, she tout the great benefits of the GOP bills and rant on the "badness" of the Dem ones. Same ol' same ol'.

Comment Re:Already available - GNU libceo (Score 1) 236

No, use set lists, like VB.Net does. Pseudocode example:

select on x
case 1,2,7
case 3,8,12,41
case 54
case else
end select

I don't know if they can be 100% equivalent, but usually pretty close.

I find it conceptually far cleaner. ( even does ranges.)

Slashdot Top Deals

Work continues in this area. -- DEC's SPR-Answering-Automaton