The Stack Overflow podcast is back! Listen to an interview with our new CEO.
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 78668

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

1
vote
I agree with those suggesting that the logger should be statically accessed rather than passed into classes. However if there is a strong reason you want to pass it in (perhaps different instances wan …
answered Mar 9 '15 by Jack Aidley
12
votes
Indented code must have arrived prior to 1958, since it was present - but not ubiquitous - in LISP and ALGOL. The earliest I can locate is COMTRAN which was introduced in 1957, although I can only fin …
answered May 22 '14 by Jack Aidley
2
votes
Code that looks fine on one IDE should look fine on another IDE. If it isn't then someone is mixing tabs and spaces or something equally misguided. Instead of trying to fix the problem in post, elimin …
answered Aug 25 '16 by Jack Aidley
29
votes
Your question "is it a good practice to eliminate a local variable if it is just used one time in the scope?" is testing the wrong criteria. A local variable's utility does not depend on the number of …
answered Jan 4 '17 by Jack Aidley