J
Joe Cipale
Asfand said:How can I be a troll for asking advice from experienced
programmers? Style is a very important issue in C++ programming,
and, if anything, I was asking experts to impose their style on me.
The important thing about indentation style is consistency. Nothing
more, nothing less.
Each person has their own preference. Some have a preference 'imposed'
on them where they work (i.e company standards). The default standard is
a 'tab stop' = 8 characters. Many editors allow you to choose your own,
however. My personal preference is 4 characters.
As long as you are consistent acroos the board (this applies to other
langagues as well: Perl, HTML, etc) people know that any code they
receive from you will be consistent and well 'spaced' and easily
readable.
Now... the 'quality' of your code is another matter altogether. That
is something that only comes from working with a language on a daily
basis to learn the nuances and improve your coding effiency.
Joe
--
#----------------------------------------------------------#
# "Don't fear the penguin!" #
#----------------------------------------------------------#
# Registered Linux user: #309247 http://counter.li.org #
#----------------------------------------------------------#