Forgot your password?
typodupeerror

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

by Actually, I do RTFA (#47757599) Attached to: If Java Wasn't Cool 10 Years Ago, What About Now?

Python does a decent job with multiple inheritance,

Eh, so does C++.

The only time C++ really has trouble is if A and B share the names of methods/variables. And the reason they will have trouble is that there is no solvable way to not have trouble. Not for a computer. Not for a programmer.

Although, I don't see how you can possibly go wrong, if you can write to the module that contains A creating an interface A implements, and changing the code that the module uses to use said interface.. There's no difference for backwards compatibility. (Unless you don't believe in namespaces, and have to worry about truely unique names everywhere.)

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

See, that's not something that is easy to search for in code reviews. Because, there is no validation that I did not write: *** Off the edge of the world: Sea Serpents Around ***

And if you cannot trust other programmers to use fucking interfaces, you cannot trust them to use the right magic strings.

Comment: Re:This doesn't compute...or does it (Score 2) 111

by Actually, I do RTFA (#47751861) Attached to: Is Dong Nguyen Trolling Gamers With "Swing Copters"?

Then I thought, well perhaps designer spends years designing a game with all sorts of clever ideas then copiers use them all a few days after release. I have to ask, though, is this what happens?

What happens is that the developer has dozens of ideas, and the 30th one actually works. People like it; people play it. It has the right "stuff" that it becomes a success. Finding that combination is what takes years. Actually producing that one game may have only taken the amount of time it takes a copier.

Although tuning very well also takes a lot of time.

Surely a game must spend some time before becoming popular enough to copy, during which it builds a following and has first mover advantage. Copiers can't copy those advantages

Well, I mean, Candy Crush is a cheap knockoff. Sometimes, marketing muscle beats out organic growth. Hell, Zynga used to threaten (and follow through on threats to) to just clone games if they would not sell, and then popularize the Zynga version through their marketing. They then would crush the original.

Hell, there are lists, both in games and in the world, where people think that the original is a cheap knockoff.

My favorite example is Hydrox vs. Oreo, but numerous others exist.

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

by Actually, I do RTFA (#47751803) Attached to: If Java Wasn't Cool 10 Years Ago, What About Now?

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

You can do a lot of things. But having a code that says "danger, this code requires a lot of care to touch." is a good thing. Casting things through a void* or something like that is an excellent example of how you can detect that when reviewing or working on code. Plus, that's the exception. So when I see a void*, I know that the documentation is really important.

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

I don't understand why. Fundamentally, it seems superior to have a computer check for bugs for you. That's what static code analysis is all about.

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.

Because I'm human, and made a mistake? Because when I wrote the code they were compatible, but then someone changed the definitions of one of the classes without knowing it would break my assumed usage because they weren't aware of everywhere that the code would be used in the entire codebase. Because there are multiple developers on a project?

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.

But it actually is pretty well supported, especially in this case. I mean, actual multiple inheritance is always a shitshow. But interfaces are totally well supported and easy to use. I don't understand what issues you think arise from using interfaces. But I can say that what you describe is pretty much what should happen. Although really you should write the module around Aprime, an interface, and then say that both A and B implement interface Aprime.

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

by Actually, I do RTFA (#47745421) Attached to: If Java Wasn't Cool 10 Years Ago, What About Now?

Duck typing is a mixed bag.

Curious, let's see how.

You can make the requirements clearer in comments and the doc string.

I suppose that's the admitted disadvantage? That I can type more to have limitations enforced by humans instead of machines.

t also has great advantages in being more concerned with attributes than declared type or lineage. It allows modules to deal with classes that weren't even imagined when they were written.

You mean like interfaces would let you do?

Comment: Re:C++ is not the language you start with (Score 4, Insightful) 548

Pascal was a good choice of learning language. Now that OOP has proven out, Java is a good choice. Stay away from the rest until you're competent in one of those two.

If you don't start out dealing with hand-managed memory, you don't learn how memory works. Which means you do stupid shit later.

Comment: Re:heh (Score 1) 579

by Actually, I do RTFA (#47721887) Attached to: Study: Ad-Free Internet Would Cost Everyone $230-a-Year

n many sites you'll be met with messages such as: We've noticed that you have an Ad Blocker, as we're depending on advertisement revenue to provide you with free services - we will kindly ask you to turn your Ad Blocker off and reload the page to see your content.

I don't think I've ever seen that message.

Comment: Re:sure it would (Score 3, Interesting) 579

by Actually, I do RTFA (#47721501) Attached to: Study: Ad-Free Internet Would Cost Everyone $230-a-Year

And we could still have e-comerce on the web, we could still use sites like Amazon rather than having to drive miles to get to a limited selection and pay higher prices at a local "friendly" bookstore. But somehow there would be no advertising.

The idea that Amazon, or any of e-commerce, would disappear in the absence of ads on the web is really really strange. Do you know that Amazon makes their money off selling things and content, not ads? They buy goods for lower prices then they sell them, and make money on a "markup". And the same is true of all e-commerce sites?

Like, eBay takes a cut of transactions. It doesn't show ads.

Comment: Re:Where the fuck is the EU? (Score 1) 194

by Actually, I do RTFA (#47666209) Attached to: Snowden: NSA Working On Autonomous Cyberwarfare Bot

Every US citizen is yelling for their constitutional rights broken by the NSA. But no Europeans complain about what the NSA is doing to THEM.

Well, that would be counterproductive. See, we get upset when the NSA spies on us But we love when the NSA spies on not us. The best strategy for EU residents is to shut up an hope we go too far in shutting down the spying.

I mean, I pay the NSA to spy on not us. That's their fucking job.

Comment: Re: That's a problem we have (Score 1) 560

by Actually, I do RTFA (#47664115) Attached to: Apple's Diversity Numbers: 70% Male, 55% White

Most student loans will cover unpaid internships.

Also, yeah it sucks, but what's the pragmatic solution. Financially well-off parents means better childhood health and better education, almost certainly leading to a better qualified future candidate. All other things being equal.

Comment: Re:Stupid (Score 2) 560

by Actually, I do RTFA (#47664003) Attached to: Apple's Diversity Numbers: 70% Male, 55% White

who does the best work. If you don't think this is true, ask yourself whether you'd rather have a semi-competent pilot flying your airliner because the airline was forced to accept hiring quotas, or whether you'd rather have the very best pilot available controlling the airliner on which you are a passenger.

Competent is fine by me. I don't care if they are Charles Lindburgh reincarnated or just some guy who can keep it, metaphorically, between the lines. In fact, I'd rather the pilot was cheaper and the savings passed on to me. (Which also seems to be what the airlines have done)

Now, unqualified/incompetent is a different matter. But, not the best does not imply unqualified.

Comment: Re:its interesting, but only if you dont use faceb (Score 1) 130

Facebook isnt interested in you as a person, theyre interested in you as a product.

Why would it be otherwise?

Ethically: Because someone read Kant.

Financially: Because it will likely lead to a longer lived network, that makes more money over 90+ years, but less money in the first decade.

At work, the authority of a person is inversely proportional to the number of pens that person is carrying.

Working...