DNAnalyzer
DNAnalyzer copied to clipboard
Refactor Properties.isRandomDNA(String)
I've selected Properties.isRandomDNA(String) for refactoring, which is a unit of 12 lines of code and 5 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! đ
Here's the gist of this guideline:
- Definition đ Limit the number of branch points (if, for, while, etc.) per unit to 4.
- Whyâ Keeping the number of branch points low makes units easier to modify and test.
- How đ§ Split complex units with a high number of branch points into smaller and simpler ones.
You can find more info about this guideline in Building Maintainable Software. đ
âšī¸ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the đ˛ next to them. The risk profile below the candidates signals (â ) when it's enough! đ
Good luck and happy coding! :shipit: :sparkles: :100:
is this issue still open?
Yes, do you want me to assign it to you?
Sure I will look into it
@Verisimilitude11 I have observed that there is an exactly same issue with a PR that is rejected here why is that so?
@Verisimilitude11 I have observed that there is an exactly same issue with a PR that is rejected here why is that so?
I don't think that I rejected that PR, for me it shows that it is merged. How far are you on this issue?
Issue #73 is a clone of this issue and that is already done. So does this still need a PR?
Yes, it does as that PR didn't fix the issue @sanjeev0210. Also, could you please star this repository and join our Discord server (https://discord.gg/5ShCNmyp) to support our mission? Thank you.
okay! Will do
Sounds great!
@sanjeev0210 how far are you on this issue?
Hello @Verisimilitude11. I'm still looking into it. Will let you know once I'm done.
Sounds good @sanjeev0210.
Hi there,
I hope this message finds you well. I noticed that it has been over a month since you last contributed to the DNAnalyzer project, and I wanted to check in with you to see if you are still interested in being a part of the team.
If you are still interested in working on DNAnalyzer, please let me know and we can discuss how you can get re-involved with the project. If you are no longer interested, I understand and will unassign you from the project for now. However, if you change your mind and want to get involved again in the future, please don't hesitate to reach out â I'll be happy to add you back to the team.
Thank you for your previous contributions to DNAnalyzer, and I hope to hear back from you soon.
Best, @Verisimilitude11
Hello!
Thank you for the acknowledgement of my contributions. I would say that I have my plate full right now. And therefore, I would not be picking it up at the moment. But I would surely contribute to the repository once I get some time.
Thanks and Regards, Sanjeev.
You're welcome! Thank you for considering contributing to the repository. I understand that you're busy right now, so don't feel any pressure to contribute. Whenever you do have some free time and feel motivated to contribute, we would love to have your input. In the meantime, if you have any questions or need help with anything, feel free to reach out to me.
Best regards, Piyush Acharya (@Verisimilitude11)
Stale issue message
IntStream diffs = IntStream.of(Math.abs(a - t),
Math.abs(a - g),
Math.abs(a - c),
Math.abs(t - g),
Math.abs(t - c),
Math.abs(g - c));
return diffs.allMatch(diff -> diff <= 2);
You could generate the pairwise distances programmatically too, if you'd like.
You can also do things like
"atgc".chars().map(c -> nucleotidePercentage(nucleotideCount.get(c), dna));
if you want more DRY code
Oh that's a great idea! Would it be possible for you to open a new PR for this real quick? Thanks! (Also I would really appreciate it if you could support us by starring the repository đ)
@xlxs4