Programing code - need a "best practice" advice


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Programing code - need a "best practice" advice

    Thanks Dave, that quite comforts me

    Now about creating code.

    Sometimes, making a kind of "truth table" of the inputs/outputs is helpful - at least, I it so to me.

    But I'm stuck when it comes to "conditions" (like IFs, ORs, etc).

    I don't know how to make this "on the paper", if this is possible at all
    Roger

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


    Did you find this post helpful? Yes | No

    Default Re: Programing code - need a "best practice" advice

    This page might give you some ideas.
    http://www.logicgenerator.com/AboutL...Flowcharts.htm

    Basically you could do something like this:

    Code:
    Check "A"
        |
    Check "B"
        |
    Does A = B ?
        |
    [if A = B THEN ]---------------|
        |                          |
    Do this                 ELSE----- Do This
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Programing code - need a "best practice" advice

    Okay, I'll have a look in there

    Thanks for the link.
    Roger

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 03:32
  2. Replies: 3
    Last Post: - 15th October 2012, 08:06
  3. Replies: 0
    Last Post: - 18th September 2012, 14:34
  4. Need "PIC16F84A" Controler schematic Advice...
    By Kyo_89 in forum Schematics
    Replies: 1
    Last Post: - 27th May 2009, 23:03
  5. convert code "c" lcd graphic to pbp
    By nicolasronan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th June 2006, 15:49

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