|
| 19 Mar 2012 03:11 PM |
I prefer using 0.1, 0.2, etc.
It just bugs me if I don't, in which case I waste time going back and changing it to appease my OCD brain. |
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 19 Mar 2012 03:12 PM |
i haven't really tried at all, but i think i'm supposed to upload a script to roblox and using its id for the linkedsource property.
it would probably allow me to do stuff like reversible bans and such(still manually set-.-) |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2012 03:12 PM |
| i use 0.1 or 00.1 ,just toi verify i have codeblocks working for the sentamatic climax's of the code injector/linker. |
|
|
| Report Abuse |
|
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 19 Mar 2012 03:13 PM |
| Think of it this way: for every zero you're putting in, you're adding another 8 bits to the length of your code. Eight whole bits. That's a monstrosity! |
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 19 Mar 2012 03:16 PM |
Think of it this way: every player has 4.5 megabytes avaiable for data persistance. 4.5 megabytes. That's a monstrosity! |
|
|
| Report Abuse |
|
|
Xcelbug
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 1 |
|
|
| 19 Mar 2012 03:30 PM |
| I make sure my code explains itself rather than placing comments everywhere. |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2012 03:57 PM |
Use 1/10, not 0.1!
Nah, kidding. |
|
|
| Report Abuse |
|
|
vexStudio
|
  |
| Joined: 18 Mar 2012 |
| Total Posts: 55 |
|
|
| 19 Mar 2012 04:38 PM |
@Ozzypig
Adding in an unneeded zero may be eight extra bits, but think about comments.
{ Scripting level - intermediate. } |
|
|
| Report Abuse |
|
|
Varp
|
  |
| Joined: 18 Nov 2009 |
| Total Posts: 5333 |
|
|
| 19 Mar 2012 04:41 PM |
I don't frequently use Lua. That's how I write good code. :P
Although in Lua, I: -Indent all blocks of code. -Use local variables and functions -Throw in the occasional semicolon. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 19 Mar 2012 05:31 PM |
| I like your setup thing. Makes it easier to edit code structure / what operates. That does work, right? |
|
|
| Report Abuse |
|
|
vexStudio
|
  |
| Joined: 18 Mar 2012 |
| Total Posts: 55 |
|
|
| 19 Mar 2012 05:36 PM |
Some good coding habits (in (RBX.)Lua) I tend to use are as follows:
a. Indenting/tabbing new chunks. b. Putting a zero in front of decimals below one (for instance: 0.5). c. Using GetService whenever possible. d. Utilizing anonymous functions whenever possible.
{ Scripting level - intermediate. } |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2012 05:36 PM |
| Wait, we can put a ; at the ends of lines in Lua? I didn't know that... |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2012 05:39 PM |
| Roblox REALLY needs auto-tabbing |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 19 Mar 2012 05:49 PM |
Wait, if you run:
print(x)(a or b)(c);
wouldn't that mean that print would return a function and then a or b would also return a function?
Otherwise, what is the point of saying:
(a or b)(c)
??? |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 19 Mar 2012 06:05 PM |
So you dynamically create or destroy functions? As a data structure?
O_o |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 19 Mar 2012 06:15 PM |
| Ahh. Fast coding. I guess ROBLOX is inefficient enough that only loops really create lag. |
|
|
| Report Abuse |
|
|