Results 1 to 10 of 10

Thread: Revisting Code

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Location
    Best Place on Earth
    Posts
    363

    Revisting Code

    Hands up those of you who can read your own code when you have to
    rewrite it for a major update after not looking at it for a year or two?

    At least I code better than other people, I hear some people cannot read
    their own code after six months, and any one using C or one of its
    descendants cannot read their own code after five minutes.
    Signature Under Construction

  2. #2
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Revisting Code

    Depends on what I was on at the time

    I can usually understand it, but anyone else has no chance
    Life is one big rock tune

  3. #3
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Revisting Code

    I can always read and understand my code because I follow The 7 secrets of successful programmers...although sometimes I can't work out why I wrote a particular application in the first place.

  4. #4
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Revisting Code

    But if anyone else can use my code then they can get rid of me, with the code in its current intelligble state they need me to maintain it
    Life is one big rock tune

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Revisting Code

    Quote Originally Posted by Torc
    At least I code better than other people, I hear some people cannot read
    their own code after six months, and any one using C or one of its
    descendants cannot read their own code after five minutes.
    Says Mr. OMFGItIsntVBItSucks.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Location
    Best Place on Earth
    Posts
    363

    Re: Revisting Code

    I wouldn't say that Penagate.

    I prefer Pascal oover VB, and Modula-2 over Pascal.

    I find the problem with C is that it does not seem to be very well designed.

    Hmm, perhaps I shouldn't have said better than other people, I just reaslied that you can probably read that several different ways.

    What I meant was that I could code better than some, probably most people,
    but that is just because I try to write code I can understand.

    Unfortunately I am not at the level where I can c0d yet.

    Maybe in another three or four lifetimes.
    Signature Under Construction

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Revisting Code

    Oh, you're being serious.

    The problem with C is that, being a very versatile language, it makes it easy to write unintelligible code. It is therefore your responsibility as a skilled c00der to make it clear and self-documenting. Just as with any language, there is code, and there is c0d, as you so humbly allude.

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Revisting Code

    I can read my code ... if I can find it.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  9. #9
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Revisting Code

    I eat spaghetti therefore I can

  10. #10
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Revisting Code

    I always comment my code to death. Its often easier to write out an algorithm in comments first (plain english description of what needs to happen). Then go back and code the individual things that were highlighted.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width