Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Beyond the script editor line: Is it bad practice?
#3
Oh, I have seen plenty of scripts that go beyond the margin line but it is merely a guideline for you visually. Even Japanese scripters go beyond the margin line in the editor.

Can you really help it if performing complex math functions require your statements to go beyond the border? Maybe, but that could either require you to break your statement down to multiple lines or have extremely shortened variable names.

From a coder's point-of-view, your variables should have descriptive names, so your @backgroundtone_c value is pretty much correct. It could be shortened to @bkgrndtone_c, but that may not change your lines enough in some of these occasions.

I guess it comes down to cleanly write your code in a manner so the whole statement can be visible and understandable without having to scroll your
editor left to right.
Reply }


Messages In This Thread
Beyond the script editor line: Is it bad practice? - by DerVVulfman - 05-22-2009, 04:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   RPGmXP Editor Hotkeys MechanicalPen 2 5,572 10-06-2013, 12:02 AM
Last Post: MechanicalPen
   Pause Script Feature Requests? PK8 11 15,895 05-25-2009, 11:07 AM
Last Post: Kain Nobel



Users browsing this thread: