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.
-
1This implies that there are no differences between best practices and other practices other than how it "feels." This is how you wind up with unmaintainable balls of mud--because to many developers, reaching out across Class boundaries, etc., "feels" just freaking wonderful.Amy Blankenship– Amy Blankenship2013-04-25 20:39:50 +00:00Commented Apr 25, 2013 at 20:39
-
@Amy Blankenship, I would say unequivocably that there is no one "best way" to make the choices the OP is asking about. It depends on a million things, and there are a million degrees of freedom. However, I do think there is a place for "Best Practices," and that is in a team environment, where certain choices have already been made, and we need the rest of the team to stay consistent with those earlier choices. In other words, in a specific context, there might be reasons to label certain things "best practices." But the OP hasn't given any context. He is building something and ...Charlie Flowers– Charlie Flowers2013-04-26 03:36:04 +00:00Commented Apr 26, 2013 at 3:36
-
... he faces all these possible choices. There is no one "right answer" to those choices. It is driven by the goals and the pain points of the system. I guarantee you that Haskell programmers don't think all methods should be instance methods. And Linux kernel programmers don't think making things accessible to TDD is very important at all. And C++ game programmers would often rather bundle their data into a tight data structure in memory than encapsulate everything into objects. Every "Best Practice" is only a "best practice" in a given context, and is an anti-pattern in some other context.Charlie Flowers– Charlie Flowers2013-04-26 03:43:25 +00:00Commented Apr 26, 2013 at 3:43
-
@AmyBlankenship One more thing: I disagree that reaching out across Class boundaries "feels just freaking wonderful." It leads to unmaintainable balls of mud, which feel horrible. I think you're trying to solve the problem that some workers are sloppy/unmotivated/very inexperienced. In that case, someone who is careful, motivated & experienced should make the key choices, & call them "Best Practices." But, the person choosing those "Best Practices" is still making choices based on what "feels right," and there are no set right answers. You're just controlling who makes the choices.Charlie Flowers– Charlie Flowers2013-04-26 03:48:10 +00:00Commented Apr 26, 2013 at 3:48
-
I have worked with several programmers who thought of themselves as senior level and were thought of that way by management who firmly believed that statics and Singletons were absolutely the right way to handle communication issues. The static part of this question would not have even been asked if reaching out across Class boundaries like that "feels" wrong to developers, nor would the answer that advocates the static alternative receive any up votes.Amy Blankenship– Amy Blankenship2013-04-26 14:52:20 +00:00Commented Apr 26, 2013 at 14:52
|
Show 7 more comments
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
default