Yea, that would be the fault of a stupidly verbose standard library.If your lines are too long it's not the tab size that is the problem.
Yea, that would be the fault of a stupidly verbose standard library.If your lines are too long it's not the tab size that is the problem.
Just because I don't care doesn't mean I don't understand.
voted everything
-Govtcheez
[email protected]
When you tab in Dev-C++, it puts multipule spaces according to the line above or below the line you are tabing. (I tab.)
I use tab, with any modern editor you can setup so much tab stuff it allows one to have their own spacing style.
NamespaceOriginally Posted by dwks
>> Class
>>>> Function
So you can only have one level deep if statements and loops. No if's in a loop or loops in an if, or a single nested if.
No one can really set a hard and fast rule like that. I always set the IDE to replace tabs with 4 spaces though. Using plain tabs makes a huge mess if someone else used spaces - if the tab size is set to 4 it might look ok, but if it's say 8, things get very ugly.
Good in theory, but I find that it is not always practical.Originally Posted by dwks
I use three. I find two to be too little (that was a fun sentence), and more than four excessively obnoxious. Between three and four, I prefer three.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
I voted 4 and 8 spaces. It all depends what platform I'm working on (either solo or in a team).
When writing for Windows I usually stick to the 4 space standard, and 8 for Linux.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
Stop using the Kernel style then, Allman all the way!Originally Posted by dwks
Also, don't mix spaces with tabs. Use one or the other, not both.
I use 3 or 4, whatever is standard in VC2003.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Coding standards at your house will decide. Left to me 4 spaces.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
8 space tabs all the way. Indentation is meant to make the code more readable, and IMO 4 spaces just isn't enough.
I also prefer tabs over spaces since it consumes less space (not a big issue though), and it lets whoever is working on my code display it how they like without having to re-indent the whole file.
Here's a tip for you VIM users who can't paste properly.
Code::set paste
Thanks for the VIM tip, I can never get it to past rightOriginally Posted by ^xor
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
2 for C and C++ and Perl and Java and HTML, 4 for Visual Basic. hehe.
Three spaces for me also. I tried two in another programming language I use, but never could get used to it, so I switched back to three.Originally Posted by Zach L.
4 spaces, though with a tab.
I find using an odd number of spaces odd, for some reason.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
4. Just typing this
Woop?