« first day (2 days earlier)    last day (15 days later) » 

1:10 PM
"new String[]{"Call", "SMS",..} " and "As for even more interesting example of why using strings is bad..."

But note that you version contains all those exactly same strings!
The only difference Is that I prefer to keep them together on top of the file so that when I just open it I say "aha! I got following default menus defined" or "Shit! I forget to add this menu item I've planned".


"We have significantly different measurement of duplication. You seem to count raw lines of code whereas I count lines of code with (business) logic."
 
 
7 hours later…
8:09 PM
As I was initially afraid I'm not able to persuade you. Still here is one more round

I'll start with the end:
> I probably could even send code of "onContextSelected()" function in response to such question and he could figure it out by himself if his not an idiot, even if he has no idea about programming.
>
>Ideally I would probably have something like:
>
>private var menus:Array =
>[["Call", function () { return [Uri.parse("tel:" + Uri.encode(number)), Intent.ACTION_DIAL]}],

Once again you write a code as if there is no visiblity check at all and this is exactly the places where most of
 
 
2 hours later…
9:54 PM
"he reason why I'd create a different menu item is that I believe that in the real world it is different pieces of logic. "

But you still seem to ignore the fact that this is the same different logic that you are accusing me of in half of your message. I never said that logic duplication is good. It's ridiculous that you teaching me about DRY... Please fine single one REAL place where I have logic duplication in my entire project.

But as I said. To not expand our conversation to rapidly lest stick to one misunderstanding at the time. First you mention about.
*same "duplicated" logic I wanted to say ;)
 
 
1 hour later…
11:27 PM
I think it is time to agree to disagree :)

In my opinion your just ignore most important parts of my arguments and concentrate on something less relevant. Most probably my behavior in your eyes looks similarly wrong. Anyway, I think it is obvious by this point that neither of us can persuade the other one so it seems to make no sense to continue this discussion.

Goog luck
 

« first day (2 days earlier)    last day (15 days later) »