Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 19561

Coding style is a set of guidelines that helps readability and understanding of the source code.

1 vote

Function parameter names

You are right that the name input doesn't communicate it's intention really well. Uncle Bob talks about "Boy Scout Rule" in his book Clean Code: "Leave the campground cleaner than you found it." The i …
simoraman's user avatar
  • 2,358
12 votes
Accepted

Are all boolean arguments flag arguments, and thus a code smell?

No rule is absolute in software development and everything depends on context. That being said, I would not consider your example to be necessarily a good case for boolean arguments. An API like show …
simoraman's user avatar
  • 2,358
5 votes

Should coding standards be enforced by the continuous integration server?

It's not completely unheard of and you will know if it will work for you only by trying it out. There are some steps that you could be taken before that. First the team should decide on the standard …
simoraman's user avatar
  • 2,358