All Questions
Tagged with source-code coding-style
12 questions
1
vote
5
answers
146
views
Should docs of extended methods include documentation of the base method?
Let's say some method of a parent class is reimplemented in a child class.
This child method is intended to do the same that the parent method, with a minor change.
In this case, in the documentation ...
2
votes
3
answers
645
views
How to track temporary fixes
Whenever I do temporary fix I want it to really be temporary.
However, there is no way to come back to it later, as the fix might be a part of a bigger issue.
Let's imagine that we have for some ...
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 ...
2
votes
2
answers
439
views
Organization of C++ source code for reusable components
I'm implementing a custom templated container as part of a learning project in C++. The container makes use of different components like serialization, memory management, iterators. I am wondering ...
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 ...
8
votes
4
answers
1k
views
Where to archive code
Say for example I have some unused code that I want to use in the future and does not work with the rest program,or say that I come across some interesting code online. Is there any good program that ...
4
votes
2
answers
1k
views
Are there coding standards for whether procedural programs should have source code listed top-down or bottom-up? [closed]
Let's say I have a basic procedural program which is well structured into decomposed functions. For example, a main() function which calls functions a and b, which in turn each call functions c and d, ...
2
votes
2
answers
3k
views
What are good ways to measure project size? How do I compare the size of my project to other projects? [closed]
Background
I am currently working for a quite large (relative to what I have done before) hobby project. I would like to compare the size of this project to other open-sourced projects but I cannot ...
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 ...
0
votes
1
answer
123
views
Return values and exceptions [closed]
I wrote simple function that returns a string depending on which condition is TRUE. Here is my code:
private String getMyString() {
if(!mStrigMember.isEmpty()) {
return mStrigMember;
}...
8
votes
3
answers
1k
views
Does studying other people's programs help in self growth? [closed]
Should I be studying big softwares written by other people in our company? My work may be a small sub module on the top of that software, and I may not be required to know what goes beneath the hood, ...
34
votes
9
answers
19k
views
What are your thoughts on Periods/Full Stops in code comments? [closed]
I saw this asked in the SO Tavern, so I'm posting the question here. I thought it an interesting question. (Of course it doesn't belong on SO, but I think it's OK here.)
Do you add periods (or, as ...