Tagged Questions
1
vote
2answers
213 views
Choosing between words with different spellings for function names
A question has been bothering me for a while: when developing international projects, it is common sense to use English as the reference language since it is the language that the most people ...
0
votes
1answer
177 views
Is C# namespace should be Project-Name?
I am working with multiple websites (freelancer) and a good amount of them I write using C# MVC4.
I created a very good boilerplace project that I plan to use on every next starting mvc4 application ...
27
votes
9answers
2k views
Is it considered poor practice to include a bug number in a method name for a temporary workaround?
My coworker who is a senior guy is blocking me on a code review because he wants me to name a method 'PerformSqlClient216147Workaround' because it's a workaround for some defect ###. Now, my method ...
2
votes
7answers
431 views
Should I refactor single letter variables for constructs like pointer/structure names?
And No, i am not referring to single variables in loops or exceptions. Lets say pointer/struct names in large c ,c++ programs . Are there any languages where this type of naming is acceptable or is ...
6
votes
2answers
169 views
Any recognized convention for repository changelogs?
We use TortoiseSVN, but we have no bug tracking system. I know, lame, but beyond my control.
There were times when svn wasn't in daily use.
Now I've had succeeded in pressing for using it regularly, ...
23
votes
17answers
2k views
Is it a good practice to name the returned variable “result”? [closed]
Is it a good practice to call the variable a method returns with a variable name result?
For instance:
public Zorglub calculate() {
Zorglub result = [...]
[...]
return result;
}
Or ...
6
votes
5answers
454 views
What do you call different user roles in software design?
I'm just curious, I'm building a web app with a User model which has role-based permissions.
I have the following roles:
Visitor (anonymous user)
?? (logged-in user)
Moderator
Admin
I'm having a ...