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

 



Forgot your password?
typodupeerror
Compare cell phone plans using Wirefly's innovative plan comparison tool ×

Comment Re:Lambda's plug poor OOP language design (Score 1) 148

I'm more concerned about how others would use them when I have to read or maintain their code. I've seen some really ugly JavaScript because people misuse anonymous functions (in part because JS also has a poor OO model/syntax). Using methods instead keeps things a bit more disciplined in my opinion.

By the way, a correction:

Original: "Flexible methods can usually do that same thing."

Fixed: "Flexible methods can usually do the same thing as lambdas."

Comment Lambda's plug poor OOP language design (Score 1) 148

With better OOP Java wouldn't need stinkin' lambdas. Lambda's just give spaghetti coders more ways to write cryptic "cutesy" code. Flexible methods can usually do that same thing.

For example, if Java blurred the distinction between instances and classes, then one could attach an OnClick() method directly to a UI button object instead of pushing it to a listener doodad, which is silly and unnatural.

If the guts of a button object want to register the button's method(s) in a listener object via instantiantion forwarding (up the tree) or reflection; so be it, but the UI coder shouldn't have to care, that's usually internal UI engine guts that one should only have to study for debugging event handling.

Parent forwarding is when a parent method of the same name could specify BEFORE or AFTER to automatically run before or after the child method. (Without BEFORE or AFTER, the child method just overrides it so that it doesn't run.) Perhaps I'm using the wrong terms.

Comment Re:and they're abandoned in 10... 9... 8... 7... (Score 1) 129

The problem is that nobody can predict the future. Can you point to any currently popular language and say with reasonable certainty that it will be viable 15 years from now?

By the way, Java may now start dying due to Oracle's aggressive lawyers, and McAfee's by-default re-scanning the Java libraries every time you sneeze, and twice if don't.

Comment PHB Alert [Re:Simple or disposable apps] (Score 1) 129

It's long been true that maintenance is a bigger cost than original coding and that doesn't appear to be changing. It's counter-intuitive, but true.

I've been asked to fix or change Excel-based "applications" built by non-techies, and they were a maintenance nightmare.

If it's a short-term project, that's fine. But in the longer run, roll-your-own-pasta for anything lasting will actually require more developers. Pay the piper now or triple later.

Comment Re:No news! (Score 1) 75

Yes, it's just you. Facebook is hugely popular among people like those you mention. If you're not like that, and you don't want to read their political articles about FEMA death camps and how Hillary is a secret Satanist and how important Safe Spaces and Trigger Warnings are, and you don't like all the news articles Facebook itself presents to you in its feeds, then maybe you shouldn't be using Facebook.

Slashdot Top Deals

Statistics are no substitute for judgement. -- Henry Clay

Working...