Indentation level woes

  • Thread starter Asfand Yar Qazi
  • Start date
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 #
#----------------------------------------------------------#
 
J

Jerald Fijerald

E. Robert Tisdale said:
This is an obvious troll.

Indentation is purely a style issue.
It is a private matter between you and God.

Any attempt to impose a particular style on another programmer
is megalomaniacal mischief.

Thanks for the alert! Hopefuly the discussion about style was
prevented.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,458
Latest member
Chris#

Latest Threads

Top