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.
Required fields*
- 1Of course, "take out the trash" and "bring in the mail" as the two separate and isolated parts of "do your chores" also perfectly illustrate the cost of abstractions: It removes chances to take advantage of the nitty-gritty details to eliminate wasted work, in this case duplicate running-around. Does the loss of efficiency matter? Only if the numbers say so.Deduplicator– Deduplicator2019-12-27 02:32:10 +00:00Commented Dec 27, 2019 at 2:32
- Deduplicator true. But that 'wasted work' is clear and obvious. Thus if optimization is required later you know where to find it. Also, if trash day and mail delivery day become different days it's not hard to tease them apart.candied_orange– candied_orange2019-12-27 02:36:22 +00:00Commented Dec 27, 2019 at 2:36
- I appreciate how this answer highlights that naming (or readability) is really the key concept here. The point is not how much your code does but whether it's organized into a clear, traceable line of thought. And, of course, cramming too many lines into a single code block fails to meet that goal.jschmitter– jschmitter2023-11-02 20:06:43 +00:00Commented Nov 2, 2023 at 20:06
- I am struggling to understand para 4 and 5. Please help to understand.novice– novice2024-01-30 13:06:36 +00:00Commented Jan 30, 2024 at 13:06
- 1Did you ever find a method name that's neither jarring nor leaks implementation details but still nicely groups the two chores? ;-)Christian– Christian2024-04-18 08:47:48 +00:00Commented Apr 18, 2024 at 8:47
| Show 9 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