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

 



Forgot your password?
typodupeerror
×

Comment Re:What's the point? (Score 1) 511

So when I see a void*, I know that the documentation is really important.

def pickymethod(self, pickyobject):

"""Here there be dragons, beware"""

Although really you should write the module around Aprime, an interface, and then say that both A and B implement interface Aprime.

Problem is, A and the module that handles it is existing code used in multiple projects. IO don't want to do a cut/paste job and I don't want to risk breaking the other projects. B is from another existing module used by other projects. I REALLY just want to derive a Bprime that can serve as an A or a B as needed by the legacy modules.

Python does a decent job with multiple inheritance, but even so, it can get ugly so I might prefer duck typing and a compatible class.

Comment Re:Debbil in de details (Score 1) 421

Based on the assignment and the response, flippancy is clear. Or did you suspect his neighbors somehow opened a rift in time to acquire a pet dinosaur? Perhaps they are witches?

Me lot? How many of me do you think there are? How about they blow the dust from their brains and act on credible threats rather than obvious non-threats? How about they do their job? How about they actually handle the situation like real adults instead of calling the cops every time someone sneezes?

Submission + - Choose Your Side On The Linux Divide

snydeq writes: The battle over systemd exposes a fundamental gap between the old Unix guard and a new guard of Linux developers and admins, writes Deep End's Paul Venezia. 'Last week I posted about the schism brewing over systemd and the curiously fast adoption of this massive change to many Linux distributions. If there's one thing that systemd does extremely well, it is to spark heated discussions that devolve into wild, teeth-gnashing rants from both sides. Clearly, systemd is a polarizing subject. If nothing else, that very fact should give one pause. Fundamental changes in the structure of most Linux distributions should not be met with such fervent opposition. It indicates that no matter how reasonable a change may seem, if enough established and learned folks disagree with the change, then perhaps it bears further inspection before going to production. Clearly, that hasn't happened with systemd.'

Submission + - Toward a Quantum Theory of Gravity? (huffingtonpost.com)

GlowingCat writes: One of the main problems in attempting to calculate gravitational interactions with gravitons has been that the calculations produced unphysical infinities at almost every step. Bern and colleagues, however, managed to enormously simplify the calculations by showing that, at least in some cases, gravitons can be replaced by two copies of gluons — the carriers of the strong nuclear force. If this double-copy-of-gluons relationship holds in general, this clue could potentially lead to a dramatic breakthrough in the search for a quantum theory of gravity.

Comment Re:What's the point? (Score 1) 511

You can also cast things around until the compiler and IDE buy it and wait for the SEGV.

It's on the developer to know when they can and cannot get away with it.

If you don't KNOW if class A and Bs X methods are actually compatible, what in the hell are you doing passing them around? You're supposed to know that. If you have a case where it may or may not be true and it's all OK, wrap it in a try..except and pick up the pieces at runtime.

This would be a lot less of an issue if multiple inheritance was better supported, but it's not.If it was, I could write the module explicitly around class A. Later, given a class B that should work fine with the module, I could derive Bprime inheriting from A and B and it would be fine.

Comment Re:What's the point? (Score 1) 511

You question the conscientiousness of the programmers in the first paragraph and assume it in the second.

You should see the crazy type casting that happens in production code to please the IDE and/or compiler. It may or may not be the right thing.

Then there's the cases where it is actually OK if not all objects passed in support all of the methods. Not Applicable might be the right outcome of a method call if the caller is prepared for that possibility.

Comment Re:Do they? (Score 1) 329

I would say more compromise is needed, particularly for smaller operations where one more or less person is significant to the operation, but at the same time, if the operation is large enough to claim they have permanent openings and need H1-Bs to fill them, they should jump for joy at the return of a pre-vetted professional.

Perhaps if employers made more concessions to work-life balance in the first place they wouldn't find themselves in this position today.

Comment Re:Because they could't sue the Government (Score 2) 212

Actually, approval does not in practice require the new drug to be as good as or better than the original in any way. It has to show the basic safety and be more effective than placebo.

In many cases, the inexpensive generic isn't even tried before jumping to the expensive option unless the patient brings it up or, in some cases, insists.

My objection is not to the me too drugs in and of themselves, it is to the order they are tried in practice.

The insurance companies are right (for once) to push back when the generic isn't even considered first. They are wrong to keep pushing when the doctor has any articulable reason to go with the more expensive drug for that particular patient, especially when the patient was on the generic and had a problem that the me too might solve.

Slashdot Top Deals

Somebody ought to cross ball point pens with coat hangers so that the pens will multiply instead of disappear.

Working...