All Questions
3 questions
4
votes
4
answers
345
views
Measuring the success of coding dojos
I'm interested in starting coding dojos at the company I work at (during or after working hours). I think it will help to spread knowledge on how to write clean, concise and consistent code. I've been ...
3
votes
3
answers
791
views
Is there a way to have four possible outcomes without repeating the two conditions? [duplicate]
In a generic sense, my question goes something like this:
if (p) {
if (q) {
a();
} else {
b();
}
} else {
if (q) {
c();
} else {
d();
}
}
There ...
1
vote
3
answers
275
views
What is the most readable way of passing arguments to the function? [closed]
I'm using JavaScript but the question can be generalized to all the languages.
In a nutshell - I'm checking if a browser connecting to my site is a microwave and cater for that accordingly.
What ...