Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve comments in code #31

Open
jonblack opened this issue Jun 10, 2016 · 2 comments
Open

Improve comments in code #31

jonblack opened this issue Jun 10, 2016 · 2 comments

Comments

@jonblack
Copy link
Contributor

There are a lot of comments but they give much useful information. For example:

  ///
  /// Holds a single residue codon, and a list of its features
  ///
  struct Residue {
    Residue(std::string codon, std::vector<std::string> features) 
      : codon(codon),
        features(features) {}
    Residue(std::string codon) : codon(codon) {}
    Residue(){};

    std::string codon;
    std::vector<std::string> features;
  };

I recall you explaining the each "residue" in your fasta format has 3 values per residue. Is that what you mean by "codon" here? An example would help.

Another example:

  ///
  /// takes an alignment and residues to remove; returns an alignment with
  /// removed residues
  ///
  std::vector<fasta::SequenceList> move_residues(
      const std::vector<fasta::SequenceList>& alignment,
      const std::vector<MoveData>& move_data);

The function is called move_residues but the comment mentions removing. What I totally miss is why residues need moving or removing.

@joannalange
Copy link
Contributor

Will fix it (second one example is just me being stupid, that's a typo, function should be called remove_residues)

You mean comments should be improved in the whole code not just these two things, right?

@jonblack
Copy link
Contributor Author

Yup, everywhere. Concentrate on public functions first, in the headers. That helps to get an overview. Probably better to work on other issues in #32 first. And for that, we should probably sit down together for some pair-programming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants