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


Groups > comp.programming > #1762

Re: If "rigid rules" are the wrong way...

From "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
Newsgroups comp.programming
References <aa7173cd-2019-4e33-aa93-36b9344bee21@l10g2000pbi.googlegroups.com> <CuWdnfNWK9cfwE3SnZ2dnUVZ8iudnZ2d@bt.com> <e119c7a2-596e-4c80-a4a1-6dd504b4569f@ra8g2000pbc.googlegroups.com>
Subject Re: If "rigid rules" are the wrong way...
Date 2012-06-09 11:05 +0100
Message-ID <xZ-dnbNFEL16vE7SnZ2dnUVZ7vqdnZ2d@bt.com> (permalink)

Show all headers | View raw


mike3 wrote:

> However, you have to first know what perfection _IS_ to do that. How
> do you
> know what good code IS first? How can you gauge the "goodness" or
> "badness"
> of your own code?

Very fair question.  To which I don't have an equally good answer.

However...

Adding to Patricia's suggested answers, I'll say that you don't need to know 
what perfection is before starting -- in fact I assume that you (and I) never 
do find out what perfection is.  In a sense that's what we are learning as we 
go along.

More precisely, you start off able to see that your code is *as you undertand 
it then* not ideal.  That is, that you see flaws in it according to your 
current best standards and possibly incomplete understanding.  You try to learn 
how to do better according to those standards (ruthlessly criticising your code 
according to the standards that you suspect /are/ still naive).  As you 
progress you will discover not only ways to approach your current ideals, but 
also new ideals that are more general, more insightful, or whatever.

Of course there is a risk that you'll end up going down a wrong path, following 
your own ideas into a quagmire ("going up your own bum").  There are two things 
which should protect against going weird like that:

One is that you are a person, and in fact a programmer, which means that you 
are, in a lot of very essential ways, similar to the other people who will work 
with your code.  That means that your judgements of what is good communication 
will be pretty strongly correlated with what actually works for them /as/ 
communication.

The second is this: if you were working alone, and no one would ever see your 
code, then it wouldn't /matter/ if you had developed standards that were 
idiosyncratic to the point of wierdness!  But in reality you will be working 
with other people's code, so you always have a check against eccentricity.  "Is 
what I'm doing different because it is /better/ (in some way that I can 
justify), or is it just wierd ?"  You can't be better without being different, 
but only eccentrics (and fashion designers) think that different is better ;-)

    -- chris 

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

If "rigid rules" are the wrong way... mike3 <mike4ty4@yahoo.com> - 2012-06-06 23:32 -0700
  Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-07 08:50 +0100
    Re: If "rigid rules" are the wrong way... "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2012-06-07 09:55 +0200
      Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 11:25 +0100
    Re: If "rigid rules" are the wrong way... mike3 <mike4ty4@yahoo.com> - 2012-06-07 01:39 -0700
      Re: If "rigid rules" are the wrong way... Patricia Shanahan <pats@acm.org> - 2012-06-07 06:43 -0700
      Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 11:05 +0100
        Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 11:24 +0100
      Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 11:15 +0100
    Re: If "rigid rules" are the wrong way... "BartC" <bc@freeuk.com> - 2012-06-07 10:55 +0100
      Re: If "rigid rules" are the wrong way... "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-09 10:44 +0100
        Re: If "rigid rules" are the wrong way... "BartC" <bc@freeuk.com> - 2012-06-09 12:35 +0100
  Re: If "rigid rules" are the wrong way... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-07 09:38 -0700
    Re: If "rigid rules" are the wrong way... mike3 <mike4ty4@yahoo.com> - 2012-06-07 14:26 -0700
      Re: If "rigid rules" are the wrong way... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-07 16:52 -0700

csiph-web