Ways to make code easily reviewable and extendable


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Thumbs down

    Nice excursion mackrackit, now move back to topic.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I sometimes lose the thread within my code.
    I find that folks with early-onset Alzheimer's generally find programming a challenge...

    Assuming you don't fall into that category...

    1. Comment what you're doing
    2. Comment what your program is doing
    3. Comment revisions and alterations
    4. Comment section headings

    Am I getting thru with this 'comment' business?...

    5. Put your subroutines in one place
    6. Comment your subroutines as to what they do
    7. Give Subroutines a meaningful name

    8. Put interrupt handlers in one place
    9. Comment Interrupt Handlers as to what they do
    10. Give Interrupt Handlers a meaningful name

    11. Assign meaningful names to aliases and variables
    12. Put your Hardware Defines all in one place
    13. Put your Hardware aliases all in one place
    14. Put your software defines all in one place
    15. Put EEPROM defines all in one place

    It's not that difficult to write neat and tidy code that can be logically followed.

    People wrote good logical code long before Visual Basic ever came on the scene!

    Ever thought of flow-charting your program first as an aid to your writing it? Rarely done because folks are just plain lazy, but it can be an aid if you're having difficulties as can donepezil hydrochloride.

  3. #3
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Ever thought of flow-charting your program first as an aid to your writing it?
    Yes and that is a good point. Do you know a flow-chart program which converts to pbp or is at least able to be customized to do so? I thought about this but my search was unsuccessful.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    donepezil hydrochloride wuld bi muy ferst option if onli i culd remenbe how to spel it...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

  6. #6
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ted's View Post
    Yes and that is a good point. Do you know a flow-chart program which converts to pbp or is at least able to be customized to do so? I thought about this but my search was unsuccessful.
    http://www.imagesco.com/microcontrol...-compiler.html
    It doesn't convert flowcharts to PBP code as you requested in THIS THREAD , but I believe this is somewhat what you're looking for.

    O/T -
    Bruce - You might want someone to spellcheck that book you're working on
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Bruce - You might want someone to spellcheck that book you're working on
    I'm good now. I found my donepezil hydrochloride prescription so I can remember most of it
    now...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  8. #8
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rhino View Post
    It doesn't convert flowcharts to PBP code as you requested in THIS THREAD , but I believe this is somewhat what you're looking for.
    Thank you. This looks interesting.

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ted's View Post
    Nice excursion mackrackit, now move back to topic.
    I was on topic, you mentioned functions and I addressed that.
    My apologies if you could not follow the subject.
    By the way, do you know trent? I bet he could help you.
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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