Reputation
3,165
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 16 31
Newest
 Yearling
Impact
~183k people reached

Sep
12
comment Excessive use “this” keyword in Java
@SteveEvers Note however than when there is name clashing it may be useful, as when there is both a local variable and a method argument with the same name (typical of setters). But what name clash does this.localMethod() solve? Visually, local and static methods are styled differently by the IDE, so a person will never be confused; and the compiler is never confused about the two, so... what's the purpose again?
Sep
12
comment Excessive use “this” keyword in Java
@Telastyn Agreed, but note I mentioned a local method, not a local variable. Adding this to a local method is always cruft in Java. Plus it's against all common practices (including the official Java style guide from Sunacle), but I still I see it at my workplace, enforced by automatic code formatting :(
Sep
12
comment Excessive use “this” keyword in Java
I agree it's subjective. But I've seen the ridiculous extreme of having stuff like this.myLocalMethod() all over the codebase. What purpose at all does this accomplish in this case?
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
@anakata How do you know it's not about the programming language if you haven't tried it?
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
@JimmyHoffa Heh heh, well, I never said I didn't think it was witchcraft ;)
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
This doesn't really answer the question. You succeeded at the impressive feat of giving a vaguely general answer to a question about two languages you don't know :/
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
@MasonWheeler To use an analogy, mathematics is a hugely useful field in real life. So why aren't more people proficient at maths? Why are a lot of people scared of it, and think it's black magic and not really all that useful?
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
@MasonWheeler There are perfectly good reasons a language may be more useful than the rest, but still not widely used. I can think of many: existing user base, too radical a change, when "good is good enough", and also... when the better tool requires programmers who are more formally trained. So popularity is not a good measure of usefulness.
Aug
29
comment When does pair programming work? When to avoid it?
+1 Insightful answer. It seems sometimes Pair Programming advocates forget about us loners and introverts. And coincidentally, many people interested in programming are also introverts...
Aug
29
comment Changing a variable through a series of statements … What is this technique called?
Careful! Variables in mathematics are different concepts than in most (imperative) programming languages. For example, str = str * 3 from the original example is an equation in Maths! It doesn't mean "mutate str by multiplying it by 3", which would make no sense in Maths. In many ways, its "variables" are closer to immutable variables in programming languages.
Aug
20
comment Any languages use the '=>' and '=<' operators?
Haskell uses => for type class constraints. Though that's probably not an "operator" ;)
Aug
16
comment Zero-knowledge code hosting?
@apsillers Is that bad because a snoop could analyze the blocks and see that they have repeated content? (even if they don't know what that content is, though of course they could guess it's zeros, for example)
Aug
16
comment Zero-knowledge code hosting?
@apsillers I'd still need an explanation of how that works. The server cannot do anything with the encrypted diff, so would the client store the relation between the original and the diff? If you delete this tracking info from the client, are you somehow "corrupting" the storage on the server? (The server cannot do anything with the diff, because I don't think it can merge two chunks of encrypted info, even if it's told one is a diff of the other).
Aug
16
comment Zero-knowledge code hosting?
@Brian this is the specific claim: "SpiderOak's historical versions are space efficient. Even though your historical versions are encrypted and only stored on the server, SpiderOak detects the similarity between those historical versions and your new versions - only saving the parts that actually changed." I don't see how they can do this, if they have no way of inspecting the stored encrypted file... Unless somehow this is all solved on the client?
Aug
16
comment Zero-knowledge code hosting?
@Brian I took a look at SpiderOak's website and they make a claim I don't understand (which seems related to your comment about homomorphic encryption): they claim they do NOT know the plaintext file, but that they can "detect similarities between files" and only store "deltas" (if you resubmit a file with a change, for example). But your link states that there is currently no know way of doing E(f) + E(d) = E(f'). Is SpiderOak's claim bogus then?
Aug
12
comment Why Java doesn't make use of encapsulation with some classes?
With String, there is no "more correct" option. Both are correct. Though, as MichaelT says, the shorter one is preferred because of String interning.
Aug
8
awarded  Custodian
Aug
8
reviewed Approve Haskell memory efficiency - which is the better approach?
Aug
8
comment Java - Why do we call an array a “vector”?
@WorldEngineer Oh, I completely misunderstood, sorry. Yup, after your last edit I understand what you meant. Sorry for the confusion! You have my +1.
Aug
7
comment Java - Why do we call an array a “vector”?
@WorldEngineer Are we talking about math? I don't dispute a vector may be considered an n-tuple in some contexts, but when talking about Vector Spaces the proper technical term is "vector".