IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New I'm seeing comments that "Code Complete" addresses that
and argues that your approach (open brace stays with the statement) is best.

Cheers,
Scott.
(Who hasn't read CC but probably should one of these days...)
New Where?
By my recollection Code Complete is pretty neutral on the topic. Perl Best Practices, however, takes a stand, prefering my style.

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New CC2, pp 740-743
-YendorMike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
New I should finish reading it then
I got bogged down in comments...
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New Ar
I read it like a book -- not a reference manual -- some number of months ago. As the novel progressed, I became more and more disappointed and disillusioned by what my company (at the time) was not doing correctly.

A change of company in the interim has not changed the outlook for what's being done correctly, either.
-YendorMike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
New I read the first one that way, the first time
I've read the first one multiple times. I was going through the second one with a fine-toothed comb, and lost energy to continue around 11 months ago.

It wasn't the book that was at fault. :-)

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New E.g.
[link|http://www.sitepoint.com/blogs/2005/08/08/coding-style/|Here], by Noam A., ~ 2/3 of the way down. Unfortunately, the example is broken at that web site so it's not terribly clear what Noam prefers.

The CC discussion is apparently on page 734 of the 2nd edition, according to the index shown at Amazon.

A discussion on various indentation and brace styles is at [link|http://en.wikipedia.org/wiki/Indent_style#K.26R_style|WikiPedia].

My preference, with no substance behind it, is something approaching GNU Style at the moment.

FWIW. HTH.

Cheers,
Scott.
New What I see on that page:
By way of example:


K&R
[image|http://www.mr-anderson.net/images/knr-csr.png||||]

BSD
[image|http://www.mr-anderson.net/images/bsd-csr.png||||]

Whitesmith
[image|http://www.mr-anderson.net/images/whitesmith-csr.png||||]
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I see.
[edit:] (I didn't initially see the images at home either, but was able to on loading the URLs directly, and then on refreshing the page the images all came up. Weird...)

I remember when you first talked about your condition. It certainly is interesting! It must make your love of reading quite a challenge these days. :-(

I see why you'd prefer the BSD-style. Do you use a "code folding" mode in emacs also? I like the idea of bending stuff out of the way when I don't need it, but I wonder if it's worth the trouble.

Cheers,
Scott.
(Who uses the IDE editor in Borland C++ Builder 5 and UltraEdit and the built-in editor in FileCommander but hasn't done any code folding...)
Expand Edited by Another Scott Oct. 31, 2005, 07:25:29 PM EST
New Dunno what to tell you...
Direct links if that helps:

http://www.mr-anderson.net/images/knr-csr.png
http://www.mr-anderson.net/images/bsd-csr.png
http://www.mr-anderson.net/images/whitesmith-csr.png
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New www.mr-anderson.net could not be found...
Dunno. Adblock isn't blocking anything on Z. I'll try at home after the monsters are gone.

Cheers,
Scott.
New Can you dig it?
As in:
ophelia:~/Temporary peter$ dig www.mr-anderson.net\n\n; <<>> DiG 9.2.2 <<>> www.mr-anderson.net\n;; global options:  printcmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29858\n;; flags: qr; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\n\n;; QUESTION SECTION:\n;www.mr-anderson.net.           IN      A\n\n;; ANSWER SECTION:\nwww.mr-anderson.net.    38400   IN      A       66.80.246.91\n\n;; Query time: 12 msec\n;; SERVER: 10.200.1.50#53(10.200.1.50)\n;; WHEN: Mon Oct 31 22:10:47 2005\n;; MSG SIZE  rcvd: 53


Peter
[link|http://www.no2id.net/|Don't Let The Terrorists Win]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New They work here. Check your browser/adblock.


Peter
[link|http://www.no2id.net/|Don't Let The Terrorists Win]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New For some reason reading text isn't so bad.
Most of the time the left eye just gives up and I see only ghosts. For whatever reason, code brings it to the fore.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Would you be better off wearing a patch?
New Tried that for a bit.
And while it appeals to my inner pirate, after a while I get a raging headache.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Checking for the existence of a directory in Perl - (pwhysall) - (53)
         I use: - (admin) - (52)
             Context - (pwhysall) - (51)
                 Re: Context - (admin) - (5)
                     Moochos grassy arse. -NT - (pwhysall)
                     And I would point out that... - (ben_tilly) - (3)
                         How to do that... - (admin) - (2)
                             That works but... - (ben_tilly) - (1)
                                 Ah, good. Thanks. -NT - (admin)
                 Minor points - (ben_tilly) - (44)
                     Re: Minor points - (pwhysall)
                     Slightly OT: on brace style: - (admin) - (42)
                         That's what I've been doing, but I'm a noob. - (Another Scott)
                         No way, this is the shizzit - (jake123)
                         Yes, that is the correct form - (tuberculosis)
                         I've heard arguments for and against that - (ben_tilly) - (38)
                             The arguments are simple - (tuberculosis) - (13)
                                 Ah, an open mind. - (Yendor) - (1)
                                     Yeah, but he's right. - (pwhysall)
                                 Yes, we know you're strongly imprinted - (ben_tilly) - (10)
                                     I'm interested in research too - (tuberculosis) - (4)
                                         so K&R is wrong? Heretic BURN HIM! -NT - (boxley) - (1)
                                             :-\ufffd :-\ufffd :-\ufffd :-\ufffd -NT - (jb4)
                                         There's a lot of stuff at scholar.google.com - (Another Scott)
                                         I think it depends on your visual habits. - (static)
                                     Sidenote - (Simon_Jester) - (4)
                                         Automate that Jalopy - (Yendor) - (2)
                                             That's okay... - (Simon_Jester) - (1)
                                                 np - (Yendor)
                                         Yes, that's a PBP recommend :-) - (ben_tilly)
                             I'm seeing comments that "Code Complete" addresses that - (Another Scott) - (15)
                                 Where? - (ben_tilly) - (14)
                                     CC2, pp 740-743 -NT - (Yendor) - (3)
                                         I should finish reading it then - (ben_tilly) - (2)
                                             Ar - (Yendor) - (1)
                                                 I read the first one that way, the first time - (ben_tilly)
                                     E.g. - (Another Scott) - (9)
                                         What I see on that page: - (admin) - (8)
                                             I see. - (Another Scott) - (7)
                                                 Dunno what to tell you... - (admin) - (2)
                                                     www.mr-anderson.net could not be found... - (Another Scott) - (1)
                                                         Can you dig it? - (pwhysall)
                                                 They work here. Check your browser/adblock. -NT - (pwhysall)
                                                 For some reason reading text isn't so bad. - (admin) - (2)
                                                     Would you be better off wearing a patch? -NT - (broomberg) - (1)
                                                         Tried that for a bit. - (admin)
                             It's not just "bad vision" - (admin) - (5)
                                 I'm *so* playing you at pool, for money. -NT - (pwhysall) - (4)
                                     Bastard. - (admin) - (1)
                                         :-D -NT - (Another Scott)
                                     ICLRPD: I'm *so* playing you at pool, for money. (new thread) - (Steve Lowe)
                                     You're English. Isn't that advantage enough? -NT - (ben_tilly)
                             It's a pretty print problem... - (ChrisR) - (1)
                                 Code Complete reserves special criticism for that one -NT - (ben_tilly)

Why sure I'm a billiard player!
115 ms