noliCAIKS
|
  |
| Joined: 08 Mar 2010 |
| Total Posts: 917 |
|
|
| 01 Sep 2013 10:53 AM |
I use an avarage of 35.466542462351 characters per line. How many characters do you use per line? |
|
|
| Report Abuse |
|
|
noliCAIKS
|
  |
| Joined: 08 Mar 2010 |
| Total Posts: 917 |
|
|
| 01 Sep 2013 10:53 AM |
| (I'm talking about ROBLOX Lua, of course.) |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 01 Sep 2013 10:55 AM |
| As many as I need to get the point across, really. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 01 Sep 2013 10:55 AM |
Bro, my whole script is on one line.
Heh, kidding. Possibly similiar. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 10:59 AM |
| In the past, complex mathematical operations have gone on one line, but occasionally I've experimented with a multi-line style with some indenting. |
|
|
| Report Abuse |
|
|
noliCAIKS
|
  |
| Joined: 08 Mar 2010 |
| Total Posts: 917 |
|
|
| 01 Sep 2013 10:59 AM |
@blocco The same goes for me, but I was just curious so I took a really big script of mine and divided the amount of characters (228,440, replication would disconnect players) by the amount of lines (6,441). |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 11:44 AM |
| As many as you need to finish the script. |
|
|
| Report Abuse |
|
|
| |
|
StudioTM
|
  |
| Joined: 06 May 2013 |
| Total Posts: 3454 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
StudioTM
|
  |
| Joined: 06 May 2013 |
| Total Posts: 3454 |
|
| |
|
|
| 01 Sep 2013 12:41 PM |
I seem to average around 25 characters per line including some comments. script1: 3,597/150 = 24 script2: 6,490/239 = 27 |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Sep 2013 01:36 PM |
| Well I normally use as much as I need but you can limit yourself. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 01 Sep 2013 01:40 PM |
I support putting everything on a single line
local clk,g = true, script.Parent.Parent.Parent script.Parent.MouseButton1Click:connect(function() if clk then clk = false local easeStyle = script.Parent:FindFirstChild("ease") if easeType then g.Frame:TweenPosition(UDim2.new(0.35, 0, -0.2, 0), "Out", easeStyle.Value) else g.Frame:TweenPosition(UDim2.new(0.35, 0, -0.2, 0), "Out", "Sine") end wait(2) g:Destroy() end end)
makes it easier to understand
|
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 01:49 PM |
I know right? So much easier to understand than:
local clk = true, local g = script.Parent.Parent.Parent script.Parent g.MouseButton1Click:connect(function() if clk then clk = false local easeStyle = script.Parent:FindFirstChild("ease") if easeType then g.Frame:TweenPosition(UDim2.new(0.35, 0, -0.2, 0), "Out", easeStyle.Value) else g.Frame:TweenPosition(UDim2.new(0.35, 0, -0.2, 0), "Out", "Sine") end wait(2) g:Destroy() end end)
~ end clk linelocal g.Frame:TweenPosition(UDim2.new(0.35, 0), clk easeType easeType "Sine") -0.2, |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 01 Sep 2013 01:53 PM |
Well mrgamesnwatch, your script would error at line two |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 01:55 PM |
hmm... i see. When tabifying that code i missed a space.... hmm
~ script script Well two two script would script would Well |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 01 Sep 2013 02:09 PM |
Why would you know the average characters per line?
I usually wrap long lines after 100 characters, and never wrap if/then/end all onto the same line, even for one line bodies.
I also use this formatting for especially long if conditions: if (condition or condition) and (condition) and (finalcondition) then >> body end |
|
|
| Report Abuse |
|
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
| |
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 02 Sep 2013 03:42 AM |
29.612481857765, not including new line characters
|
|
|
| Report Abuse |
|
|
HEAT507
|
  |
| Joined: 31 Aug 2012 |
| Total Posts: 429 |
|
|
| 02 Sep 2013 04:48 AM |
for index,kazu in pairs(game:children())do kazu:destroy();end; l0l |
|
|
| Report Abuse |
|
|