Tagged Questions
The coding-style tag has no wiki summary.
about the coding-style tag | top users | new answers | synonyms
1
vote
3answers
134 views
What are pros and cons of using temporary "references"?
In C and C++ (and I guess other languages that allow taking a "reference" to an array element or something similar), when you have an array like type, accessing individual elements of such an array …
1
vote
2answers
430 views
What is the difference between K&R and One True Brace Style (1TBS) styles?
I have read the Wikipedia article on Indent Styles, but I still don't understand. What is the difference between K&R and 1TBS?
0
votes
0answers
39 views
What are the main principles and pitfalls which an iOS programmer should understand? [closed]
I am a beginning iPhone programmer. What are the main issues and problems involved in iOS development? What are the primary methods for increasing execution speed and general effectiveness of code on …
2
votes
5answers
338 views
Minimising little coding mistakes
I make a fair amount of small mistakes when I code (things such as getting an angle bracket to the wrong direction). It adds a fair amount of time to my coding because I have to debug several times …
2
votes
1answer
73 views
Where can I find coding style guides for Wikipedia examples? [closed]
One of the Wikipedia entries I've started has been edited with an edit adding this-> to each member access (and changing the indentation style).
I don't want to start an edit war so I'm looking …
1
vote
7answers
370 views
Have C and C++ Permamently Influenced Programming? [closed]
I can't help but notice that whenever I think out any programming problem in my head, I think it out in a c-like syntax (C++ too if using OOP). Most people write pseudo-code in a c++-like syntax, …
-2
votes
6answers
118 views
Memory-aided development vs. document-aided development [closed]
Possible Duplicate:
Is it important for a programmer to memorize the syntax of the language ?
Do you usually refer to documents to write code, or do you have almost everything in mind? For …
4
votes
6answers
312 views
How are multiple values returned in Java?
Sometimes you want to return multiple values from a function. How is this normally done in Java?
One option is to use an array, like this Python snippet that returns a list or tuple:
value, success …
0
votes
5answers
219 views
how do I motivate tech and geek type programmers in my organization? [closed]
Possible Duplicate:
How do you motivate peers to become better developers?
Many are less driven by money than others.
What do you recommend be used to motivate them to stay and be high …
0
votes
2answers
358 views
Why are people afraid to die()?
I have seen a lot of people (first comment) hating die(); instead of exit;
As the follow-up comments on that post note, die and exit are the same - the attitude appears to be one of perception, with …
2
votes
6answers
234 views
Line break before/after operator
While Sun's Java code convention suggests to put line break before the operator many other guidelines disagree with it. I do not see any obvious pros and cons, so are there advantages of using one of …
4
votes
3answers
282 views
Should I use default access modifier or not — Coding practice?
Normally when creating new global variables I do not define its access modifier. So as per java it will adopt property default access modifier. When I'm need to access that variable in out of default …
-1
votes
3answers
90 views
The Best Coding Style for C++ [closed]
Each programmer use an individual coding style, moreover coding style 'defined' by the company where he works. Some of them are good to me, and rest are the worst.
Can you define/describe a coding …
3
votes
5answers
215 views
Best practice in setting return value (use else or?)
Whenever you want to return a value from a method, but whatever you return depends on some other value, you typically use branching:
int calculateSomething() {
if (a == b) {
return x;
} else …
-1
votes
3answers
109 views
How can you learn to code faster? [closed]
Possible Duplicate:
How to Code Faster (Without Sacrificing Quality)
I think I code pretty well. I'd say I'm in the top 20% of the folks doing what I do (ASIC verification using System …