Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 11732

Questions for best practices for writing high quality code.

3
votes
In Python, a file is a unit of import. So it makes sense to put things that belong together in the same file, and things that don't, to separate files. Web frameworks like Django by default expect yo …
modified Apr 11 '17 by 9000
2
votes
One way to fight the large amount of parameters is a builder pattern + fluid interface. Consider: widget = makeWidget(100, 200) .withSize(384, 256) .withColors(foreground, backgrou …
modified Apr 1 '15 by 9000
23
votes
Copy-pasted and then edited test cases are often fine. Tests should have as few external dependencies as possible, and be as straightforward as possible. Test cases tend to change with time, and prev …
modified Sep 19 '12 by 9000
5
votes
Downsides, to my eye: You may impair the integrity of visual design. If you reuse styles from a carefully crafted CSS, your design has better chances to look consistent. Changing the visual design b …
modified Mar 6 '12 by 9000
3
votes
1answer
Consider a Python class with a number of @staticmethod methods and few instance methods. The static methods don't accept an instance of the defining class as parameters. Do you think that all these …
modified Oct 3 '11 by John Gaines Jr.