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.
-
That was the goal that I aimed for and that was the stated object. Simplicity (or rather, the one function/operation per line) seemed to naturally follow from that goal. I'm trying to ascertain whether my understanding was invalid. When you're building a coding standards, establishing a set of rules and guidelines is the entire point of the exercise. Setting rules and guidelines that are too vague is useless. As such, this answer really doesn't help.Richard– Richard2011-12-05 22:29:23 +00:00Commented Dec 5, 2011 at 22:29
-
5My argument is that setting rules that are too strict is worse than useless and is actually harmful. Setting rules like one statement per line is stylistic. This is the thing that should definitely NOT be in the code guidelines. It provides not actual benefit and can be harmful to readability and maintainability if applied without thought.Loki Astari– Loki Astari2011-12-05 23:41:55 +00:00Commented Dec 5, 2011 at 23:41
-
3+1 (because I can't +10) A common mistake I see with new programming managers is that they try to codify every last detail. The best coding standards are more like fortune cookies than recipes.JohnFx– JohnFx2011-12-06 01:33:58 +00:00Commented Dec 6, 2011 at 1:33
-
"Coding styles and standards" was the name of the document. Obviously this isn't a standard (as in "Never use GoTo" or "Never use short ints") but a style. Unifying style is important to readability and maintainability.Richard– Richard2011-12-06 14:17:57 +00:00Commented Dec 6, 2011 at 14:17
-
1Style Guide: "This project uses tabs/spaces (choose one). This project uses the brace style K&R/Allman/BSD/GNU (choose one). Please don't not add empty spaces on the end of lines. Please keep your code neat and readable. Everything will be code reviewed by two team members and yourself: for readability/maintainability you need a majority 2/3 to check in code, For Reliability, and Performance you need 3/3 (Please provide appropriate tests to prove). More rules will be added if these are abused :-)" Done.Loki Astari– Loki Astari2011-12-06 16:44:51 +00:00Commented Dec 6, 2011 at 16:44
|
Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you