Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Easier to Analyze or Change == More Maintainabl (Score 2) 247

So I have a method that brute forces something, then I go back and figure out how to do it with a better big 0, and the functionality doesn't change, but that still isn't refactoring, because ... ?

Because it violates the standard definition of "refactoring".

Refactoring is about changing the structure of the code, and not the algorithms used within the code. The goal is typically to reduce coupling, increase cohesion, and (frequently) to improve testability.

Replacing an algorithm with a better algorithm isn't "refactoring", it's "rewriting".

Taking your giant brute-force method and breaking it into smaller parts in a cohesive unit (source file, class, package, etc.) with lowered coupling (perhaps by genericizing previously tightly-coupled bits), in such a way that the individual units have a smaller testing surface -- but is otherwise the same algorithm -- then you've refactored the code, by definition.

Yaz

Comment Re:Virtual Self Defense (Score 0) 467

when you're going to shoot someone, you can see them and know what you're aiming at. I guess you didn't think of that.

I didn't think of that because I dismiss inherently ridiculous thoughts. All that happens is that a persons OWN WORDS are pointed out to others.

It's far more like I have a magic shield that reflects anything shot at me back at the attacker. Guess then who is responsible for the amount of damage received back...

You totally should be able to do something about it, and that something should not require you to become a private investigator, politician, lawyer, judge, and security guard.

Too bad that is the reality is that in fact that is the case. It is utterly unrealistic to expect ANY kind of public service like a police force to scale to handle the amount of trolling that actually exists - every other person on earth would have to be employed to handle this.

You claim it's a hardship to have to be " a private investigator, politician, lawyer, judge, and security guard". Well guess what, the internet solves that issue by training you how to be all of those things online, if it matters to you.

This behavior pattern - acting before thinking it through

And YOUR behavior, of failing to act until it is far too late, is what leads to things like gangrene and amputation in real life. It is FAR batter to take informed action quickly than action that comes far too late, or to become lost in analysis paralysis.

YOU were the one to claim that self-defense means you must be "a private investigator, politician, lawyer, judge, and security guard." How can you go through those stages WITHOUT thinking it through? The very act of doxxing or shaming is inherently not done without thought, because it requires thought to complete.

Nothing about what I've just said demands "having inherent trust in the system to do everything for you".

Except that you are advising in waiting for action that will, by the natures of scale of the problem, never come. It's hard to imagine what good that will do anyone, except for serving trolls very well indeed.

Comment How? Reaction is equal and opposite. (Score 1, Insightful) 467

The Salem witch trial methods would still have killed many innocents even if witches did exist

But all that we are seeing in THIS case is someone pointing out what people are saying to others. So the harm done is directly proportional ONLY to the persons own actions.

Someone moderately clever will post horrifically offensive content under someone else's name, then "catch" the designated offender and post their info and purported crimes to social media.

So since that might happen one in 500 million times of ACTUAL trolling - so we should do nothing at all about real trolls that we can actually combat. Even though it can be disproved...

The good of the many and all that. We should not back down from preventing common crime because of a hypothetical.

Comment Re:Doxing is asking for trouble. (Score 1) 467

I don't understand this "AC" hatred here in ./

We hate ACs because AC is mostly used for trolling.

All you need to get a slashdot account is a throwaway email address.

If you have an account, then you become accountable: we can tell whether what you say today matches what you said yesterday. Absent that, we have every reason to believe that you are just some malicious asshole.

I know... I know... this is ./, you cannot expect people to think twice before posting

...and it's lucky I didn't expect it from you, or I might be upset now.

Comment The Metaphor (Score 5, Insightful) 467

The Salem Witch Trials were good thing. After all, there might have been some real witches there.

In this case you have people literally flying around on metaphorical brooms on Twitter.

If there had been actual witches eating children, are you saying they should have done nothing? Because that's what you are saying should be done in the case of people talking on Twitter about how they want to rape his daughter.

We aren't talking about witch-hunts here against people who have done nothing. We are talking about bringing consequences to people who in fact HAVE done something and expect nothing to happen as a result.

Comment Virtual Self Defense (Score 0) 467

This is why we have police departments.

Come on, you realistically expect the police to handle every case like this?

This is no different from having a reasonable right to self defense to protect your life. If you are being harassed online you should be able to do something about it, because chances are the police will not are at least not nearly as expediently as you can. The earlier you take action, the more you cut off the really bad stuff.

that's a reason to fix what's broken about our system

What if what is broken is having inherent trust in the system to do everything for you?

Sounds like it is being fixed.

Comment Re:c++? (Score 1) 407

Care to explain why C++ does not fulfill "Alan Kay's definition of OO"?
It has classes, but method dispatch is tied to the class hierarchy ... I doubt Alan Kay made any statement about that. ... so if you want to really adopt an OO style you need to use multiple inheritance and pure abstract base classes,
This is complete nonsense as it has no influence on method dispatch.

Comment Re:Hmmm .... (Score 3, Insightful) 127

Like what? It's designed to detect gravitational waves. It's not designed to detect not-gravitational waves. Since we can't produce artificial gravitational waves (the detector would be almost pointless if we could, since it's meant to prove the existence of gravitational waves), we can't use a known test to confirm it's detecting gravitational waves and only gravitational waves, but since all our theory and all our observation says it should be detecting them and only them, it's fairly safe to assume it's actually doing so (assuming no systematic errors: a large assumption, but not an unreasonable one if everyone involved did their job). In fact, if what it detects isn't gravitational waves, it's almost more interesting, because that means it's detecting something else which isn't accounted for in our theory. If it detects nothing at all, well, that too would be interesting, since (again) our theory says it should. Either way, interesting.

Comment Re:Bad idea (Score 4, Insightful) 671

The number of grammatical cases is irrelevant. Question: What's the difference between a grammatical case without stem changes and a postposition (opposite of a preposition? Answer: A space.

  That which is challenging, apart from stem changes, is the same thing that is challenging with helper words in general: when to use what with what. Picture a person learning English and trying to remember what to use with what. "I was scolding her.... over it? for it? about it? to it? around it?" "We were unhappy.... over it? for it? about it? to it? around it?" "She was dedicated.... over it? for it? about it? to it? around it?" And so forth. It's the same for people trying to learn which declension case to use in which context. But if the declensions are just suffixes without stem changes, then they're no different from postpositions. And often stem changes where they occur follow pretty predictable rules, often for pronunciation reasons.

Comment That is what the author wish (Score 1) 208

Seeing what Microsoft has done in the last years and how the amrket is going , they will almost certainly go for the following :

* subscription based, forget the 15$ or whatever you paid for minecraft, they will ask 1$99 every month.
* separate set and special mods which allows more than color/form only microsoft, and only for money
* everybody else relegated to basic coloring, texture and form mod, no "command" block type mod adding new function.
* not possible anymore to have your independent server. After all you could do some stuff which would tarnish the image of MC2.0 "microsoft". And there is the money from the server subscription, like 20$ a month.
* API even more obsfucated than for MC 1.0, but with DMCA take down if you deobsfucate it and attempt to add your own command mod
* going away from Java


Yeah i am quite a cynic.

Comment Re:Strange (Score 1) 80

LACP would, indeed, fulfill the purpose but relies on you being able to obtain LACP support on upstream connections from your ISP. LACP must be enabled and known about on both ends for it to do anything.

It's not always true that you could get support on upstream connection, but they are many, and multiple, types of bonding that provide similar facilities.

However, in terms of being able to get disparate connections that can be conjoined without specific support on the other end or high-end hardware, there are fewer - but non-zero - ways of doing that too.

Comment Re:And the mods? (Score 1) 208

I do not know much about minecraft mods but I still seem to remember they are Java as well. If they port minecraft into MS tech (DirecX and C# presumably) what happens to the community mods?

Probably DirectX and C++. And in fact, Microsoft would most likely buy some other game which is close to what they want, then task the studio with making it into Minecraft 2. There are loads of Minecraft clones out there, the trick is finding one which is both technically competent and developed by someone willing to work for Microsoft and sell them their baby.

The existing mods wouldn't work with the new game, obviously. But many Microsoft games have been modded fairly extensively, and Microsoft has even released the sources to one of their games when they were done with it (Allegiance.)

Slashdot Top Deals

Old programmers never die, they just hit account block limit.

Working...