Wonder what the equivalent "Coding Rules to Disregard" might be.
If you know of any coding rule that is universally true, I'd like to hear. Maybe... Don't use goto to jump to the middle of a different block of code? I don't know any exception to this one, but it's also prohibited on all modern languages, so I don't think it's a "coding rule" anymore.
Writing Rules to Disregard
11–16 of 16 posts
Re: Writing Rules to Disregard
#12Usually when I see someone strictly adhering to those rules (particularly not ending a sentence with a preposition), it sets of a warning flag that the writer is trying too hard to follow imaginary rules, and maybe isn't someone whose opinion I want to take much stock in.
Re: Writing Rules to Disregard
#13This is an example of how the HN rule about stripping out the "Three" in the title has resulted in ambiguity: I thought the term "writing rules" was present-participle verb + object, but it turned out to be gerund-as-adjective + noun. (I might have the grammatical labels wrong.)
Re: Writing Rules to Disregard
#14Wonder what the equivalent "Coding Rules to Disregard" might be.
Single point of return from a function? No more than X lines of code in a function? Object oriented programming?
Recommended function/class/file size, when to abstract vs when to copy, even size/names of function arguments.
There are "rules" about all of these, but the best codebases have tons and tons of violations. Not because they are bad, but because the devs working on it know when to break those rules, and know that they are mostly guidelines.
Re: Writing Rules to Disregard
#15Wonder what the equivalent "Coding Rules to Disregard" might be.
If you know of any coding rule that is universally true, I'd like to hear. Maybe... Don't use goto to jump to the middle of a different block of code? I don't know any exception to this one, but it's also prohibited on all modern languages, so I don't think it's a "coding rule" anymore.