Tagged Questions
46
votes
15answers
3k views
Working on someone else's code
I have hardly a year's experience in coding. After I started working, most of the time I would be working on someone else's code. Either adding new features over the existing ones or modifying the ...
9
votes
5answers
755 views
Zero as a constant?
I have come across this programming idiom recently:
const float Zero = 0.0;
which is then used in comparisons:
if (x > Zero) {..}
Can anyone explain if this is really any more efficient or ...
2
votes
4answers
233 views
Linking in code comments (to other unique anchors/comments)
How would you recommend creating "anchors" in code comments, so that during maintenance, developers can easily cross-reference other code comments.
I realise that software should be intelligently ...
10
votes
9answers
388 views
How have you found, refined and maintained your coding style?
Recently, I've been switching between several projects and development environments. The expectations for coding style in each is different.
Now, my question is three part, the first, just of ...
9
votes
5answers
427 views
Evolution in coding standards, how do you deal with them?
How do you deal with evolution in the coding standards / style guide in a project for the existing code base? Let's say someone on your team discovered a better way of object instantiation in the ...
0
votes
1answer
172 views
Tips for a novice PHP developer to drive down long-term maintenance costs
I'm an experienced Java developer who is just starting up a project for an NGO. I will be working on the project for at least 6 months, following which the NGO will have to pay or find a volunteer to ...