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*
-
2Even if you're passing your indexes to an existing function (such as Array.Copy), it can still require thought to get bound conditions correct. Imagining what happens in a 0 length and 1 length and 2 length situations can be the best way to make sure you're not copying too few or too many.Bryce Wagner– Bryce Wagner2016-04-17 14:42:11 +00:00Commented Apr 17, 2016 at 14:42
-
@BryceWagner - Absolutely true, but without a clear idea of what problem is that you're actually solving you're going to spend a lot of time thrashing about in the dark in a 'hit and hope' strategy which is by far the OP's biggest problem at this point.James Snell– James Snell2016-04-17 15:24:40 +00:00Commented Apr 17, 2016 at 15:24
-
2@CodeYogi - you have and as pointed out by others you have broken the problem into sub-problems rather poorly, which is why a number of answers mention your approach to solving the problem as the way to avoid it. It's not something you should take personally, just experience from those of us who have been there.James Snell– James Snell2016-04-17 20:58:39 +00:00Commented Apr 17, 2016 at 20:58
-
2@CodeYogi, I think you may have confused this site with Stack Overflow. This site is the equivalent of a Q&A session at a whiteboard, not at a computer terminal. "Show me the code" is a pretty explicit indication that you are on the wrong site.Wildcard– Wildcard2016-04-19 19:53:53 +00:00Commented Apr 19, 2016 at 19:53
-
2@Wildcard +1: "Show me the code" is, to me, an excellent indicator as to why this answer is right and that maybe I need to work on ways to better demonstrate that it's a human-factor / design problem that can only be addressed by changes in the human process - no amount of code could teach it.James Snell– James Snell2016-04-20 11:35:28 +00:00Commented Apr 20, 2016 at 11:35
|
Show 4 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