Hi all, i have a couple small queries so i've slung them together.
Firstly, i follow all the proper coding conventions but is code style considered part of the proper coding conventions? When i talk about code style i am specifically talking about how curly-brackets are placed.
I write code like this:
public void doThis(){
// code
}
for(int i=0; i<size; i++){
// code
if (true){
// code
}
}
However, most code i see is written like this:
public void doThis(){
// code
}
for(int i=0; i<size; i++){
// code
if (true){
// code
}
}
Does it matter which way the brackets are placed as long as they are consistent or is the second the proper way it should be done? Does anyone share my style of code?
And my second question is my concern about how much to write for the design document. I don't want to bore the marker to bits and have him get irritated if i point out points which may be obvious. In the URlyBird assignment i think
alot of marks are awarded for this, by in mine, FBNS, there is very little in comparison. Is the design document mainly to help the examiner understand the program, or it is assess my abilities at documenting it? Sun told me NOT to go over-board on this.
If people aren't sure then chuck in a small post indicating how much you have or intend to write for it. I just wanna get a feel for how much people are writing for this.