3

I'm posting here to make sure what I'm doing is ok.

I've been going through questions asking about bitwise rotation, and adding comments with a link to a community-wiki question with a community-wiki answer.

I kind of re-purposed that question, rather than the newer question where I posted a more detailed answer, partly because both the question and answer were community-wiki, so I felt justified in changing them. My goal here is to increase the chance that people will copy-paste rotate code into their apps that compiles to a single instruction, rather than a branch or cmov like gcc makes for the code from Wikipedia. If I was doing this for rep, I'd be linking directly to my answer, not the community-wiki answer.

The next-best option would have been to post a question and answer it myself, right? Rather than change the code in the high-voted and accepted non-wiki answer on another question.

Trying to mark all the how-do-I-bitwise-rotate questions as duplicates of one best-practices answer seems unlikely to work. It's unlikely that 4 more people will come along and mark it, too.

Questions I've touched so far:


7
  • Ok, I think I see what you're doing, but do you feel confident it will really deter the dupes ? Aug 17, 2015 at 19:34
  • 1
    @Coffee: No, I don't think it will stop new dupes. I'm just asking for some oversight while I go and add links to my answer all over the place in the existing dupes. Like I said, the goal is make sure people that google on C rotate get to what I believe is the current best recommendation for coding it. No undefined behaviour with any inputs, and a single rotate insn generated by current compiler versions found in stable-release OSes. (gcc 4.9.2, clang 3.5). (Older gcc/clang only see the rotate if the count is a compile-time constant.) Aug 17, 2015 at 19:40
  • 1
    I also updated en.wikipedia.org/wiki/… Aug 17, 2015 at 20:17
  • 2
    My gut feeling is that editing other peoples answers in this way might be problematic as you're sort of making the original authors voice your assertion (which might be correct) whether they share your point of view or not. Similarly changing the CW to start with "see my answer" makes it look like "my" refers to the original author. I can appreciate your intentions, but maybe there is a better way, for example flagging as duplicates and using meta to get 4 more people to support the dupe votes which shouldn't be hard if what you assert to be the best practice indeed is.
    – jpw
    Aug 17, 2015 at 23:03
  • @jpw: I left comments in every case where there was a good visible place to leave one, for exactly the reason you gave: that stepping on other people's answers isn't ideal. I'll think about the wording of the CW answer, too. I wasn't totally happy with my phrasing either. Aug 17, 2015 at 23:08
  • @jpw: I cleaned up the wiki to not say "my" anymore. You're right, that was silly and self-aggrandizing or confusing. Thanks again for the feedback. Do you think it's worth the effort of getting people to help flag the actual duplicates? I'm inclined not to bother, but for any fresh rotate questions that come along, I'll certainly flag them as dups of the best-practices Q&A while they're still fresh. Aug 18, 2015 at 0:10
  • 1
    You can always solicit close vote requests in a chat room as opposed to hoping that someone else with > 3k rep will stumble onto the same question. I recently made a UserScript (install / usage info) to generate a close vote request for the question you're viewing and send it to a chat room of your choosing.
    – user4639281
    Aug 18, 2015 at 0:54

0

You must log in to answer this question.

Browse other questions tagged .