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*
- 4If you use that method to solve small to medium tasks, then, as others told you in their answwers, I'd say there is nothing wrong with it, preferrably with some unit tests as additional quality measure. If you intend to create the architecture of some big solution this way I'd recommend to rethink the approach.Thomas– Thomas2013-04-28 20:15:43 +00:00Commented Apr 28, 2013 at 20:15
- 1I suggest you read Code Complete 2 (or at least the relevant parts), which talks a lot about the non-programming aspects of programming. You may try to plan more before you start coding so you have an idea of what your goals are, what the restrictions on the inputs are, etc. One strategy mentioned is to write pseudo-code before writing the actual code. You'll be able to see the same problems you see with real code, but will be able to get to that point much quicker.mowwwalker– mowwwalker2013-04-28 22:41:42 +00:00Commented Apr 28, 2013 at 22:41
- Another suggest is Clean Code. The book maybe doesn't have the exact answer to your question, but there are some principles that you can use after make your code work. amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/…yfklon– yfklon2013-04-29 10:37:05 +00:00Commented Apr 29, 2013 at 10:37
- 1"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-ExuperyBobson– Bobson2013-04-29 18:12:38 +00:00Commented Apr 29, 2013 at 18:12
- possible duplicate of When to refactor and of Prototyping vs. Clean Code at the early stagesgnat– gnat2013-04-30 22:38:52 +00:00Commented Apr 30, 2013 at 22:38
Add a 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