Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #36001
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Newsgroups | alt.comp.os.windows-10, alt.os.linux, alt.usage.english |
| Subject | Re: How a typo took down S3, the backbone of the internet |
| Date | 2017-03-04 16:43 +0000 |
| Organization | terraraq NNTP server |
| Message-ID | <87shmtouup.fsf@LkoBDZeT.terraraq.uk> (permalink) |
| References | (1 earlier) <o9bkes$9s3$1@dont-email.me> <o9boir$ob9$1@dont-email.me> <ehui8mFscv8U1@mid.individual.net> <hqnlbcp6rgklakf1mitg7mpivk7rf9lji5@4ax.com> <drudnQvUlt_sdifFnZ2dnUU78I3NnZ2d@brightview.co.uk> |
Cross-posted to 3 groups.
"NY" <me@privacy.net> writes:
> I've never forgiven Kernighan (or was it Ritchie) in their original
> book on C for perpetrating the mismatched braces style of C that so
> many people have copied:
>
> for (i=0; i<10; i++) {
> lines;
> }
>
> rather than the matched style
>
> for (i=0; i<10; i++)
> {
> lines;
> }
>
> And likewise for if statements.
>
> It makes it a lot more difficult to check for mismatched braces by eye
> if the opening and closing ones are not lined up at the same tab
> stop. Maybe it's my Pascal origins showing through!
If you check the brackets by eye then sooner or later you will miss
something, even if they follow your personal preferred style.
Instead, get a computer to do it - specifically, to indent the code so
it matches the brackets; if the indentation doesn’t match the structure
you expect, you have an error.
All modern code editors will do this for you.
--
http://www.greenend.org.uk/rjk/
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How a typo took down S3, the backbone of the internet Stijn De Jong <stijndekonlng@nlnet.nl> - 2017-03-03 09:05 +0000
Re: How a typo took down S3, the backbone of the internet Chris Ahlstrom <OFeem1987@teleworm.us> - 2017-03-03 05:28 -0500
Re: How a typo took down S3, the backbone of the internet Alek <alek.trishan@gmail.com> - 2017-03-03 05:46 -0500
Re: How a typo took down S3, the backbone of the internet "NY" <me@privacy.net> - 2017-03-03 11:51 +0000
Re: How a typo took down S3, the backbone of the internet "Carlos E. R." <robin_listas@invalid.es> - 2017-03-03 14:05 +0100
Re: How a typo took down S3, the backbone of the internet "NY" <me@privacy.net> - 2017-03-03 16:58 +0000
Re: How a typo took down S3, the backbone of the internet "Carlos E. R." <robin_listas@invalid.es> - 2017-03-03 20:00 +0100
Re: How a typo took down S3, the backbone of the internet Jasen Betts <jasen@xnet.co.nz> - 2017-03-08 10:27 +0000
Re: How a typo took down S3, the backbone of the internet Richard Heathfield <rjh@cpax.org.uk> - 2017-03-03 11:37 +0000
Re: How a typo took down S3, the backbone of the internet Peter Moylan <peter@pmoylan.org.invalid> - 2017-03-03 23:48 +1100
Re: How a typo took down S3, the backbone of the internet Mike Tomlinson <mike@jasper.org.uk> - 2017-03-03 13:42 +0000
Re: How a typo took down S3, the backbone of the internet William Unruh <unruh@invalid.ca> - 2017-03-03 21:38 +0000
Re: How a typo took down S3, the backbone of the internet Adam Funk <a24061@ducksburg.com> - 2017-03-03 13:32 +0000
Re: How a typo took down S3, the backbone of the internet Wolf K <wolfmac@sympatico.ca> - 2017-03-03 09:43 -0500
Re: How a typo took down S3, the backbone of the internet HASM <hasm@example.invalid> - 2017-03-03 07:39 -0800
Re: How a typo took down S3, the backbone of the internet Wolf K <wolfmac@sympatico.ca> - 2017-03-03 11:23 -0500
Re: How a typo took down S3, the backbone of the internet "NY" <me@privacy.net> - 2017-03-03 18:15 +0000
Re: How a typo took down S3, the backbone of the internet VanguardLH <V@nguard.LH> - 2017-03-03 19:06 -0600
Re: How a typo took down S3, the backbone of the internet Ken Blake <Ken@invalid.news.com> - 2017-03-04 08:41 -0700
Re: How a typo took down S3, the backbone of the internet Andy Burns <usenet@andyburns.uk> - 2017-03-04 15:47 +0000
Re: How a typo took down S3, the backbone of the internet "NY" <me@privacy.net> - 2017-03-04 16:29 +0000
Re: How a typo took down S3, the backbone of the internet Richard Kettlewell <invalid@invalid.invalid> - 2017-03-04 16:43 +0000
Re: How a typo took down S3, the backbone of the internet VanguardLH <V@nguard.LH> - 2017-03-04 19:12 -0600
Re: How a typo took down S3, the backbone of the internet "Carlos E. R." <robin_listas@invalid.es> - 2017-03-05 03:43 +0100
Re: How a typo took down S3, the backbone of the internet Johnny B Good <johnny-b-good@invalid.ntlworld.com> - 2017-03-13 00:22 +0000
Re: How a typo took down S3, the backbone of the internet Stijn De Jong <stijndekonlng@nlnet.nl> - 2017-03-03 14:45 +0000
Re: How a typo took down S3, the backbone of the internet VanguardLH <V@nguard.LH> - 2017-03-03 18:33 -0600
Re: How a typo took down S3, the backbone of the internet Lewis <g.kreme@gmail.com.dontsendmecopies> - 2017-03-03 18:36 +0000
Re: How a typo took down S3, the backbone of the internet Richard Heathfield <rjh@cpax.org.uk> - 2017-03-05 13:47 +0000
Re: How a typo took down S3, the backbone of the internet richard@cogsci.ed.ac.uk (Richard Tobin) - 2017-03-05 14:17 +0000
Re: How a typo took down S3, the backbone of the internet Andy Burns <usenet@andyburns.uk> - 2017-03-05 14:58 +0000
Re: How a typo took down S3, the backbone of the internet "Peter Duncanson [BrE]" <mail@peterduncanson.net> - 2017-03-05 15:07 +0000
Re: How a typo took down S3, the backbone of the internet Richard Heathfield <rjh@cpax.org.uk> - 2017-03-05 15:32 +0000
Re: How a typo took down S3, the backbone of the internet "Carlos E. R." <robin_listas@invalid.es> - 2017-03-03 20:05 +0100
Re: How a typo took down S3, the backbone of the internet burfordTjustice <burfordTjustice@tues.uk> - 2017-03-03 07:34 -0500
Re: How a typo took down S3, the backbone of the internet VanguardLH <V@nguard.LH> - 2017-03-03 18:03 -0600
Re: How a typo took down S3, the backbone of the internet Roger Blake <rogblake@iname.invalid> - 2017-03-04 02:09 +0000
csiph-web