Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



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

But if you could attach your own OnClick method to the button, only one method can be called when the user click on the button, which would be a huge problem for many gui objects.

Put the calls to the other ones in that method. Treat it as a stub method.

And I am not against a "listener registry" or whatever one wants to call it, it's just that a dev shouldn't have to deal directly with it for the vast majority of typical UI coding. Have a convenient front-door for the vast majority of "customers", and a back-door for specialized fiddling. You could stuff a hundred additional on-click events for that button into the listener registry if you wanted. A default on-click method doesn't prevent that. (Hopefully there is a priority code to control order of handling.)

Also, one could put a general event handler on the button's container, and do the other handlers that way, using reflection or environment info to know what widget and what action triggered it.

There are many options without having to deal with lambda's. Would you like to present a specific use-case to explore further?

(I've been trying to invent/define a table-oriented GUI engine that is mostly language-neutral. Most events can be handled using tablized attributes instead of imperatively coded behavior. Everyone's just used to hand-coded behavior out of industry habit. It's poor tool/labor factoring to re-invent a GUI engine for every different programming language. A good language-neutral GUI engine could be attached to any language.)

Comment Re:Stop with the hysteria (Score 1) 179

Isn't it a bit misleading to lump 20k+ suicides into that figure since they happened to choose a firearm to do it with?

Not at all. I'm comparing danger. As an American, you're over a thousand times more likely to die from the bullet of a gun held by an American than you are to die from anything ISIS does.

But you bring up a good point about suicide. Americans are thousands of times more likely to be a danger to themselves than they are to have ISIS be a danger to them.

So why all the fuss?

Comment Proponents [Re:Really?] (Score 1) 42

"If you tried [RoR], and cannot learn it, then programming just might not be for you"

I've seen too many similar statements from proponents of various frameworks/tools/languages/paradigms: "If you don't get X, you are stupid and should be flipping burgers."

After more than a decade of debating so called Golden Hammers and probing their justifications, I've concluded that people just vastly think differently and there are many ways to shave a cat (skinning them is too mean).

Some techniques just resonate with certain brains better. There is no reason to make it personal or mean.

I've met other Table Oriented Programming thinkers ("Tablizers"), and they love it also, but selling TOP to others has fallen flat.

They seem to prefer coding attributes (or what should be attributes) into what TO ME is verbose and hard-to-read code. But they LIKE reading that verbose code and even seem fast at it. Boggle. It's like Fred Flintstone preferring to stick with his feet-powered-car instead of getting a Honda. If Fred can get around well and quickly in his Footillac Deluxe, I guess I shouldn't care, as long as he doesn't force his car choice on me.

Hopefully each can find or make a shop where the other developers like and use your favorite tools also, and everybody is happy and productive with tools that fit their mind like a glove.

Sunshine, Unicorns, Rainbows, and YourFavStack

Peace! -Tablizer
       

Comment Re:Misleading (Score 1) 151

Which is my point about how we should view the Tesla autopilot, and even you agree that you are capable of that level of attention.

The tesla is only used on thie highway, and it generally drives perfectly fine. Do you think the guy who ran into a truck while watching Harry potter would have done that if the car drove like it was under the control of a brand new novice driver? Of course not, he'd had the car for quite some time, and had many hours experience letting it drive and it drove just fine.

While he SHOULD have treated it like a new driver; hour after hour, mile after mile of it doing everything right -- you won't stay in high alert. You can't. New drivers constantly trigger your high alert attention with their jerky movements, lane positioning, and other issues... if they do everything right for 3 months, you simply are not going to be on constant high alert. Its just not human nature. At best you'll be paying attention the way any relaxed passenger does; if your sitting there looking out the front window you'll see things, but that is NOT high alert. That is NOT ready to take over with instant notice. And if something distracts you, you'll be distracted because the driving is taking care of itself.

Sure, you absolutely can avoid going full retard and firing up a harry potter movie, and sitting in the seat passively watching the world sail by is going to catch a lot of tesla's mistakes. But if it misses a bend in the road and slams into a gaurd rail or crosses into oncoming traffic... that's going to happen FAST. And unless you are sitting there at high alert almost expecting a mistake like that, you won't react fast enough. And you can't sit on an interstate crossing the country for long stretches ready to jump in like that.

The average human being isn't wired for that.

The average human being can drive the car for long stretches because the constant micro adjustments continually engage them.

Scientists have written papers on this stuff.

Once I feel that the Tesla autopilot has "mastered it" through software updates and the like, then yes, I'll pay much less attention. But just like with a kid learning to drive, that won't happen until it's been proven to have mastered it.

Again... the guy who ran into a truck watching harry potter didn't buy a tesla and then pull out his DVD player. The car had convinced him, through thousands of miles of demonstration, that it was perfectly capable of driving itself,... until it wasn't.

I imagine that the sporadic attentiveness that you speak of is a direct result of knowing or assuming that the driver has everything under control. But, that's just it, no where has anyone said that the Tesla Autopilot has everything under control 100% of the time.

The car gets it right enough of the time, that it's proven to these owners that it does. If it made lots of little mistakes every time people turned it on people would pay at lot more attention.

Comment Re:Vs. Ion Drive [Re:points of interest] (Score 1) 346

Spewing ions is a problem: they're reaction mass and they have to be carried.

But the "power" in ion drives comes from the fast speed of the particles (ions), far quicker than rocket exhaust and near the speed of light. The weight of the material that gets converted into ions is relatively small, no?

Are you saying if a star-ship was built using an ion drive, it would have to carry a large chunk of stuff (relative to the ship) to eventually be ionized on the journey?

If the ship is 10% stuff to be ionized, and the ions spew out at almost the speed of light, then ionizing that chunk should make the ship be going roughly 10% of c when it's done, it seems.

Maybe I'm not considering some relativistic effects and stuck in Newtonian thinking?

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

Sounds like that would break static typing

How so?

Only the syntax of the listener doodad is annoying, the design works well.

If you get used to it, a lot of things "works well". I found it fundamentally unnatural. The info for a given button should be together under a class-like grouping, something like the following pseudo-code:

buttonX = new Button {
  title="Click me";
  container=panelZ;
  placemen=this.float("left");
  method onClick() {
    messageBox.display("Look Mom!");
  }
}

Comment Vs. Ion Drive [Re:points of interest] (Score 1) 346

If it's so wimpy, why not use ion drives? I thought it was roughly 100x more efficient than ion drives (in tests), and that's why space-travel enthusiasts were excited about it. Your statement seems to say otherwise.

A key difference between EM and ion drives is that ion drives spew radiation to produce thrust while the EM drive allegedly doesn't. While that may be interesting from a physics perspective, it's not a practical issue from a space travel perspective because spewing radiation (ions) is not a significant problem.

In other words, it's not the apparent "something from nothing" aspect that excites travel enthusiasts, but the allegedly efficiency, because moving fast in space requires a hell of a lot of energy.

EMD titillates (or teases) physicists because of the perpetual-motion-machine-like qualities, but it titillates wannabe space-travelers because it's allegedly far more efficient than anything we have, meaning we could approach the speed of light without mountain-sized fuel tanks/reactors.

Comment Re:Prepare to be (Score 1) 346

If it manages to violate conservation of momentum and that stands up to the inevitable scientific pig pile that follows, I'll be impressed.

One theory of how it works...
http://www.emdrive.com/theoryp...

I am not a physicist, and don't *really* understand what they are theorizing, except that they are suggesting that special relativity applies to the engine instead of newtonian mechnics. (which isn't really a surprise).

If you can follow the math and the judge the theory, have at it...

Comment Re:Misleading (Score 1) 151

The amount of attention required, which is basically just keeping an eye on the road and what's going on around you, is exactly what is required when teaching someone to drive.

A 'driving instructor' scenario is quite different; for starters its their paid job to *evaluate your driving* -- which is very different from being a passenger. So they are constantly evaluating your speed, control, position and how you perform each manuver; they may be taking notes on it. They do it for 20-30 minutes at a time, with breaks, usually in city traffic, etc, etc.

They aren't doing it for hours on end on road trips.

As a parent teaching a child, if they are still new then yeah you can be very attentive because you are basically driving as surrogate through them and they are doing all kinds wrong, but once they've pretty much mastered it, and you are comfortable with their driving and your just in the car so they can practice, your mostly a passenger and just at heightened alert sporadically or if you notice something; or are trying to help them with a particular maneuver.

It's what I do when I'm a passenger in the front seat of the car, for hours on end. It's exactly what my spouse does when she's the passenger and I'm driving, for hours on end.

That's just it, no your not.

Your are sporadically attentive and you don't even realize when you aren't being attentive. Yes, my wife will call out a light change if she thinks I'm not reacting to it, or a cyclist if she thinks I might not see it, etc, etc. But she'll also send text messages, look something up online, play with the radio, space out and look out the window.

I definitely appreciate that she's a 2nd set of eyes; and she absolutely makes a positive contribution the total situational awareness, and i don't even dispute that some of the time she's 'ready to take over', but not 'every minute of every trip', not even close. She takes breaks from paying attention all the time; she'll be on higher alert in a new city in weird traffic when helping me navigate; but on some highway we've been on a hundred times...she'll pull out her phone and see what's playing at the theatre without giving it a 2nd thought.

Slashdot Top Deals

"If it ain't broke, don't fix it." - Bert Lantz

Working...