Please create an account to participate in the Slashdot moderation system


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 5, Interesting) 52

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) 382

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) 382

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) 382

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) 382

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) 382

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:Robots are good (Score 1) 251

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) 251

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

I don't want to be young again, I just don't want to get any older.