Please Use CODE Tags 31 Jan 2016Welcome to the Programming and Software Design Section,
When asking for help with programming issues, please use the code tags to enclose your code, it makes things much more easily readable for the people trying to help you, thus improving your chances of actually getting help.
To add code tags, click the <> button on the editor toolbar, then enter your code in the code editor that appears. If you are on a mobile device, or prefer to use BBCode, you can use [code] // Your code here // It will be syntax highlighted, though not necessarily corectly. [/code] (but the code editor is more consistent and less buggy).
15 hours ago, leodaniel said:
Always whats more human (you and me ) readable.
Name your variables appropriately (having var1-var15 is bad, its hard to understand what they each represent), always step by step so that it's easy to understand.
Just try to make it simple. Imagine you would have to look at your script again in 10 years... how long would you take to understand it (goal is to shorten this time). I think it's important to always code with that in mind.
In the 2. code example it's really hard to understand what the code does, what the variables are. It takes quit some time to understand what it does.
i fixed it the code works it was pain in the ass, but it works
Recently Browsing 0 members
No registered users viewing this page.