A simple question
As I plan to learn by my own for the rest of this summer(read: No projects available around my skill level that I know of), are there any decent set of ideal rules for the indenting & general format of code for others working with you to see? The last time I showed a friend he thought my format was atrocious
.
Any advice would be appreciated
. Any advice would be appreciated
There are so many different ways of doing it, and everyone seems to be attached to their own. Google around a bit and you'll find a few (the GNU coding standards come to mind) and you can check indent and similar programs. Other than that it pretty much comes down to personal style... TMTOWTDI
Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
As a rule I indent my code every time there is a seperate loop, if statement, function, or just a set of commands that go together. How you Indent is up to you, I like using tabs.
Basically seperating the different workngs of the program. But everyone has there individual style, like where they put the curly brackets.
Code:
program {
declare stuff
declare more stuff
function() {
do stuff in function
}
get input()
if (input == this) then
do this
and this
and this
else
do this
function()
end
print("I like waffles")
}
I think that is the greatest program I've ever seen
That's it, Steven! From now on all unusual acronyms have to be linked to the definition! KWIM?!
"Yes, well, that's the sort of blinkered, Philistine pig-ignorance I've come to expect from you non-creative garbage."
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Simple file class question | KiroNeem | 1 | 1,850 |
May 20, 2006 03:38 PM Last Post: backslash |
|

