I've found such a paragraph in one of programming tutorials:
Ruby strings are simply sequences of 8-bit bytes and they are objects of class String. Double-quoted strings allow substitution and backslash notation but single-quoted strings don't allow substitution and allow backslash notation only for \ and \'
What I have problem with:
- "class String" instead of "the String class"
- "substitution" instead of "the substitution"
- "backslash notation" instead of "the backslash notation"
- no articles before "\" and "\'"
On the other hand, in the same tutorial we have a sentence:
Constants defined within a class or module can be accessed from within that class or module, and those defined outside a class or module can be accessed globally.
Where we have "a class".
So my question is: are these sentences written correctly? And what rules should I obey with articles as a programmer writing about programming stuff?