[ale] flip flopping on programming, now interested in c++

Geoffrey Myers lists at serioustechnology.com
Tue Jul 3 10:45:11 EDT 2012


On 07/02/2012 08:59 PM, Ed Cashin wrote:
> Hmm. If whitespace shouldn't be significant, it's presumably because you
> value some unusual use of whitespace.

Neither is correct.  Whitespace is significant and I don't use 'some 
unusual use of whitespace.'

I think that code should be properly indented, but there is not exactly 
'only one way to do it.'  Such as the following comparison:

if (foo) {
	fprintf ....
}

if (foo)
{
	fprintf ....
}

I think either is acceptable, although I prefer the first.

>
> But saying one should know how to format one's code is to imply that
> there's some obviously proper way to do it that one should know.

There are certain acceptable approaches.

>
> Then why have braces, in that case, since the formatting already
> disambiguates the sybtax?
>
> On Monday, July 2, 2012, Geoffrey Myers wrote:
>
>     On 07/01/2012 01:11 PM, Stephen Haywood wrote:
>      > I have to second Python. Ruby is nice too but it has been so
>     coopted by
>      > the Rails people that it's hard to find good info that is not Rails
>      > related. Python is excellent for system programming and has an easy
>      > interface with C if you need it.
>
>     The thing I don't like about python, is the forced formatting.
>
>     If you don't format your code properly, you shouldn't be writing code.
>
>
>      >
>      > --
>      > Stephen Haywood
>      > Information Security Consultant
>      > CISSP, GPEN, OSCP
>      > T: @averagesecguy
>      > W: averagesecurityguy.info <http://averagesecurityguy.info>
>     <http://averagesecurityguy.info>
>      >
>      >
>      >
>      > _______________________________________________
>      > Ale mailing list
>      > Ale at ale.org <javascript:;>
>      > http://mail.ale.org/mailman/listinfo/ale
>      > See JOBS, ANNOUNCE and SCHOOLS lists at
>      > http://mail.ale.org/mailman/listinfo
>
>
>     --
>     Until later, Geoffrey
>
>     "I predict future happiness for America if they can prevent
>     the government from wasting the labors of the people under
>     the pretense of taking care of them."
>     - Thomas Jefferson
>     _______________________________________________
>     Ale mailing list
>     Ale at ale.org <javascript:;>
>     http://mail.ale.org/mailman/listinfo/ale
>     See JOBS, ANNOUNCE and SCHOOLS lists at
>     http://mail.ale.org/mailman/listinfo
>
>
>
> --
>    Ed Cashin <ecashin at noserose.net <mailto:ecashin at noserose.net>>
> http://noserose.net/e/
> http://www.coraid.com/
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list