Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 5
    What difference in behavior is there between two nucleotides of different types? Commented Aug 26, 2013 at 14:50
  • Nothing, yet. A grouping of nucleotides will eventually represent a codon (a genetic instruction), but the nucleotides themselves don't do much. Nucleotides in a strand will get read/parsed and transcribed, but the nucleotide is just data and doesn't do anything itself. But, to be honest, my knowledge of this is still incomplete, so it is quite possible that the nucleotides types will each eventually have distinct behaviours. Commented Aug 26, 2013 at 14:57
  • 1
    Your "Not too great IMO" solution is my favorite. What caused you to dislike it? Commented Aug 26, 2013 at 15:21
  • I don't like the idea of "definition" information being stored in an object instance. Using singletons minimizes the ick-factor. I imagine this must be a fairly common problem, so I assume brighter people than me have found better solutions :) Commented Aug 26, 2013 at 15:23
  • 2
    It occurs to me that a nucleotide might not deserve its own class at all: If it has no significant behavior, then represent it with, e.g., a character. Commented Aug 26, 2013 at 15:36