You got me all wrong! ; -) => Re: Simple programming language anyone?

Andy Harrison aharrison at gmail.com
Fri Jun 15 15:18:34 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 6/15/07, Derek Broughton  wrote:
> It does, but I used to work in COBOL in the days when COBOL was just going
> free-form, and I used to force my teams to format: not "'x' goes in
> column 'n'", but at least with indentation and one period per paragraph.

I can see why our perspectives vary so much.  You're coming from a
real programming background, I'm coming from a background of "ok, I
need to write a script that generates 32,000+ dns records and shell
scripts are too effing slow..."   ;)

> > Besides, sometimes you get people coming up with clever ways to use
> > that unenforced formatting.
> > http://perl.4pro.net/perlish_coding_style.html
>
> I like that - a lot.  I tend to code that way myself, but the leading
> semicolons were a suprise :-)

Yes, that's an odd one with the semicolons, but it's an interesting
idea and it would certainly make it glaringly obvious when you forget
one.  If I was the type that forgot them often, I'd probably switch to
that method myself, but it's so ingrained that I even find myself
trying to use semicolons in shell scripts at times...  doh!

>
> Sure you can, but I'm a firm believer in limiting the ways the beginner can
> screw up, and I just feel perl makes it too easy to shoot yourself in the
> foot.

No argument there.  If I had a nickel for every time I blew my foot
off...  ;)  But I did learn a lot from doing it though.

And also, don't forget that unreadable code can actually be an art.  ;)

http://perlmonks.org/index.pl?node_id=45213

(For those not familiar with the camel code, yes, that's valid perl
and it actually runs and does something interesting.)

- --
Andy Harrison
public key: 0x67518262
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGcq3LNTm8fWdRgmIRAlraAJ9PCCtBiIAgFNIZLoOxMxNQA2M5TwCgwYVw
BKTjLTjc2f35E8qG8c6X5vU=
=G+1j
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list