Results 1 to 5 of 5

Thread: Guide to having perfect standards!

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default Guide to having perfect standards!

    This is going to be a fairly simple guide on how to have perfect standards!

    First of all, standards are ummm.. well the way your code is written.

    Example of bad standards:

    Simba Code:
    Program S;
    Procedure HelloWorld;
    Begin
    Writeln('hello')
    Begin
    Writeln('hello hi')
    End;
    End;
    Begin
    HelloWorld;
    End.

    Example of good standards:

    Simba Code:
    program S;

    procedure HelloWorld;
    begin
      Writeln('hello')
      begin
        Writeln('hello hi')
      end;
    end;

    begin
      HelloWorld;
    end.

    Now how to do it via the extension:

    Step 1) Go to Simba ---> View ----> Extensions, and enable formatter.sex



    Step 2) Now, to make your script look good go to parser ---> Format script



    Now your done! It is best that you learn how to use proper standards yourself without the extension, but if your just stuck it's better to use it then releasing a hard-to-read script! The secret to doing this is hitting "tab" after each begin and making sure each End; maches up with Begin!Post below if you have any questons

  2. #2
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Never knew there was an automatic formatter, thanks for the tip!

  3. #3
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Lol never knew off the formatter

    Creds to DannyRS for this wonderful sig!

  4. #4
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    LOL I thought this was a complete guide before opening the thread, so I was just gonna troll it by saying Parser>Format script, but turns out that's the guide itself.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  5. #5
    Join Date
    Dec 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    It deleted all comments in the code, making it very difficult to change things afterwards, especially if its a long script. Good standarts are fine but good looking isn't always the thing to go for... at least the result looks cryptic to me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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