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

    Exclamation Ways to make code easily reviewable and extendable

    I sometimes lose the thread within my code.

    This is mainly because of pbp's missing opportunity of using real functions. Speaking of which: That is what I like about visual basic. To structure my code in pbp

    - I use colons to put multiple orders in one line
    - I use semi-colons to comment my code
    - I use indents
    - I use variables like
    - I print the code 4 pages/a4 page

    Which additional ways do you know to make the code easily reviewable and extendable?

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    I have 3 dialects of BASIC (mikroE, Swordfish and Oshonsoft) for PIC's and have been considering adding PBP to the list. Interesting to note that functions are not supported. Thanks for the heads up.

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


    Did you find this post helpful? Yes | No

    Default

    Consider this
    http://www.picbasic.co.uk/forum/show...58&postcount=4

    And look at how Darrel has for example Instant Interrupts and LCD Any Pin.

    Not quite the same as in other languages, but when you get right down to it it is.
    This is the nice thing about PBP, with a little learning you can make it do whatever you want.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Mack, I think I understand LCD Any Pin, the 3 compilers mentioned above allow connecting an LCD to any port/pin combination - also for graphic LCD's. Correct?

    What is the purpose of instant interrupts? Thanks.

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


    Did you find this post helpful? Yes | No

    Default

    I do not use the other compilers. Can not comment on their abilities. I was referring to VB, C whatever and the like.

    Instant Interrupts are basically as the name implies. Look at all of the features.
    http://www.picbasic.co.uk/forum/showthread.php?t=3251

    The point I am trying to make, it seems like any language you use, there is always some thing that would be nice to have but does not. When the language is learned and the hardware or machine is understood, then you can always find a work around. Maybe this thinking comes from the time when a Hacker was still considered a good think to be called. (now days it seems the world is full of "crackers") . The ability to take a language, pieces of hardware, do a little tweaking, and do something new is all the fun.

    The longevity of PBP and the things that can be done with it is what keeps me using it. I gave up on the point and click VB and VB like stuff years ago. To constrained. Sure, a simple function to pass a couple of variables is nice, but that also seems to make more overhead.

    Give PBP a try, I think there is still a demo available. You will be suprised with what it can do.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Thanks, Dave. Will take a closer look at PBP.

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