Login Password

Steve West

Activity stream

  • Steve West posted on the forum topic Swap function in the group AvatarProgramming Ideas:   2 years ago · View

    Not at all. XOR is one of the fundamental logic gates. It’s extremely fast. I guarantee that this is implemented all over the place inside any modern CPU. The trade-off comes when other people need to look at your code. If someone knows the trick, then they’ll understand it. If they’ve only been writing simple [...]

  • Steve West posted a new activity comment:   2 years ago · View

    You should bring this up in the ”Improve Bettercodes” group. That’s where ideas specific to this site should be sent. You also can use the Feedback button itself to send feedback.

    In reply to - Kevin Zimmerli posted on the forum topic how do you create a new group? in the group Programming Ideas: T Chai, I agree that the feedback button is annoying. I wish it were either at the top or bottom of the page,and didn’t scroll with it. · View
  • Steve West posted on the forum topic Swap function in the group AvatarProgramming Ideas:   2 years ago · View

    This is most easily accomplished using the exclusive-OR (XOR) operator.

    A = A ^ B
    B = A ^ B
    A = A ^ B

    You might say that reducing memory isn’t much of a use, but that’s extremely important in embedded systems. This trick is quite useful sometimes.

    • Avatar Image
      Dennis Suitters · 2 years ago

      I wouldn’t just say it’s important for embedded systems, but also for Web applications in general, esp. for systems that receive a lot of requests and data handling. Coming from having to learn to write ASM on the c64, and Amiga platforms, learning to write in confined memory space has helped me develop small footprint code. Ah, that brings back memory’s, lol.

  • Steve West likes codecrypter‘s activity   2 years ago · View

  • Steve West posted an update in the group AvatarProgramming Ideas:   2 years ago · View

    This group could examine areas that are at the fringe of development and see if any could benefit from having a standardized ”framework” built around them. That seems to be popular these days.

  • Steve West posted an update:   2 years ago · View

    The development team and I had our best daily Scrum meeting yet. Rather than ask what each person did, we pointed to each task and asked if anyone had worked on it, was going to work on it, and whether or not there was anything blocking it.

    It really helped the process of ”swarming” around tasks, and made the it a lot less like a status meeting.

  • Do you want any help tackling the issues, or would it be more helpful if I just observed and reported things as I find them?

    • Avatar Image
      Sandra Jüssen · 2 years ago

      Steve, we prefer that bettercodes.org will be created thru the users. We are working on bug fixing and than we will release the source code. We are a small team. I think the release will take place by end of May or early June… We will send out a notification when the code is released. Is this okay for you?

  • It looks like when I send a message to someone, it shows up with both “From” and “To” set to my name.

    A message sent to me correctly had the senders name in the “From” field, and my name in the “To” field.

    • Avatar Image
      Sandra Jüssen · 2 years, 1 month ago

      Dear Steve, thanks for the hint. Is a bug I put this into our looooong issue log and we fix this soon. But it is only the wrong field. The messaging system itself is working properly.. Reg. Sandra

  • Steve West posted an update:   2 years, 1 month ago · View

    FYI, the certainty factor ties back to the java.Math.BigInteger class. That contains a method that will return true if it determines that a given number is prime with a probability of 1-(1/2^[certainty]). The recommended value of 80 makes this extremely close to 1.

  • Steve West posted an update:   2 years, 1 month ago · View

    I’m currently looking at the BouncyCastle JCE source code so that I can learn what the ”certainty” factor is when generating DSA keys.

Friends

bettercodes.org is released as free software without warranties under GNU Affero GPL v3