Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #43013

Re: How a typo took down S3, the backbone of the internet

From VanguardLH <V@nguard.LH>
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 19:12 -0600
Organization Usenet Elder
Message-ID <ei1700Fdr9nU1@mid.individual.net> (permalink)
References (2 earlier) <o9boir$ob9$1@dont-email.me> <ehui8mFscv8U1@mid.individual.net> <hqnlbcp6rgklakf1mitg7mpivk7rf9lji5@4ax.com> <drudnQvUlt_sdifFnZ2dnUU78I3NnZ2d@brightview.co.uk> <87shmtouup.fsf@LkoBDZeT.terraraq.uk>

Cross-posted to 3 groups.

Show all headers | View raw


Richard Kettlewell wrote:

> "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.

There may also be company-established coding guidelines that you must
follow.  I remember when the developers did Java that they were required
to have a comment on every line so Javadoc could extract them to compile
documentation on the program.  The programmers hated documenting their
own code.  They were writing in one language but didn't want to write in
their own language.  Go figure.

Even if you don't use and IDE or editor with automatic scope matching
and perhaps colorization for indication, there were code beautifiers
through which you ran your code to makek sure it follow some rules
regarding syntax and style.

I do remember that I still preferred a readable style not just for me
but for others.  I wasn't try to secure my job by writing code that only
I could decipher.  Even when IDEs were available, I still wrote code in
Notepad, edlin, sed.  As I recall, vim was the first I used that did
some scope matching.  I remember using some Pascal editor that could
complete a command by showing you what was its syntax or how many
arguments were defined for a function and a whole bunch of other stuff.
It really slowed me down having to backspace and just do the typing
myself.  For newbies, yeah, it was handy.  Rather than preview the
guessed syntax within the line, some popped up a bubble hint (think
VStudio was like that).  At least the hint was out of your way and you
could ignore it (or turn it off).

Real programmers don't use syntax-helping editors or IDEs, but then real
programmers code in assembly or machine code, they don't eat quiche (no
time, just scramble it), don't write specs or documentation, don't read
manuals, don't care who, if anyone, uses their software, think
structured or object-oriented programming is a Communist plot, don't
need a pretty screen to play a game (walk forward steps 4, turn right,
walk forward steps 2, door open), don't use APL unless the program can
be written in one line, don't use LISP (only sissy programmers use more
parens than actual code), don't work well with others (i.e., their
loners with no social life, too), don't believe in schedules and will
ignore them, are so intimate with the hardware that you want to mostly
leave the two alone, and don't bring bag lunches but eat stale moldy
sandwich bricks or twinkies from a vending machine.

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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 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