| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Coding style |
Hi Auke, You wrote to Juha-Matti: AR> JT> I have tried to improve my coding practice and there has come up AR> JT> an issue that keeps bothering me. AR> JT> This is what I currently use: AR> JT> fread ( AR> JT> s[r[i]->target].typeid, AR> JT> sizeof (short int), 1, f ); AR>... AR>Hm ... I'd put everything on one line. It fits within my 74 AR>character right margin. But assuming it does not -- this is AR>an example anyway ;-) -- I'd do: My thoughts entirely (except I tend to have a 78 character right margin). AR> fread( s[r[i]->target].typeid, AR> sizeof (short int), 1, f ); AR>In other words I'd indent a follow-up line. By _more_ than the usual 4 AR>characters for normal indentation. Seconded! I indent follow up lines to 8 character increments. George * SLMR 2.1a * Computers eliminate spare time. --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4) SEEN-BY: 396/1 622/419 632/107 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 670/213 218 @PATH: 440/4 255/1 252/356 140/1 270/101 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.