in reply to Re^5: quickness is not so obvious
in thread quickness is not so obvious
The coding guidelines my colleageues and I are required to follow include:
There are also guidelines that specify that an assignment or assignment-like operator must be the left most operator in expressions and only one is allowed. These are also to avoid non-obvious side effects.
There are many other guidelines. When we violate a guideline we are required to document and justify the violation (unless there is an exception granted in the guidelines).
As a practical matter, my colleagues and I don't make as many violations of the guidelines as we should because of the time and effort to justify the violations. Getting more exceptions added is possible but is very difficult. The do { } while (--i); exception was among the easiest as we were able to show assembly language listings, generated by the compilers, which clearly showed the difference. Even then, it involved 5 or 6 presentations and reviews to get all the needed approvals.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: quickness is not so obvious
by LanX (Saint) on Jan 24, 2015 at 19:55 UTC | |
by GrandFather (Saint) on Jan 24, 2015 at 22:05 UTC | |
by RonW (Parson) on Jan 26, 2015 at 06:39 UTC | |
by RonW (Parson) on Jan 26, 2015 at 18:04 UTC | |
by LanX (Saint) on Jan 26, 2015 at 19:37 UTC | |
by RonW (Parson) on Jan 26, 2015 at 21:21 UTC | |
by BrowserUk (Patriarch) on Jan 26, 2015 at 23:05 UTC | |
|