This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mackan90096's profile picture

Where Can I Find This?

Started by Mackan90096, 26 October 2013 - 12:12 AM
Mackan90096 #1
Posted 26 October 2013 - 02:12 AM
Hi there!
A little while ago, I saw a link to some kindof coding standards. With for example using single quotes instead of double.

Now, I want to get to that page again.
So, if anyone have a link to that, please post it here.

Thanks //Mackan90096
jay5476 #2
Posted 26 October 2013 - 03:29 AM
Different people/company's have different coding standards ask TheOriginalBIT as he put up the coding standards for craftnaughts ( but is now gone so i can not retrieve for you ). Also some coding standards can be really long

Edit: :/ really i tried because i know your a bit OCD about your name
theoriginalbit #3
Posted 26 October 2013 - 03:52 AM
There is no exact rule as to how to do strings, you can do them however you wish, you just need to remember that if you want to have the same quote in the string you either need to escape it, use the other one, or use what I like to call the trump :P/>


'single quote string'
"double quote string"
[["trump" string]]
'single quote with " double quote'
"double quote with ' single quote"
'single quote with \' single quote'
"double quote with \" double quote"
[["trump" doesn't need escaping for quotes]]

@jay *ahem* TheOriginalBIT or theoriginalbit or BIT …
Lyqyd #4
Posted 26 October 2013 - 04:21 AM
The reference manual refers to them as long brackets, for clarity. I usually call them block quotes.


[[This is in level zero long brackets]]
[=[and this is in level one long brackets]=]
lieudusty #5
Posted 26 October 2013 - 03:04 PM
Is it this?
Mackan90096 #6
Posted 27 October 2013 - 02:55 AM
Is it this?

Unfortunateley, no.
I'm looking for a webpage with coding standards… I think theoriginalbit linked it a while ago..
theoriginalbit #7
Posted 27 October 2013 - 03:09 AM
I'm looking for a webpage with coding standards… I think theoriginalbit linked it a while ago..
This one? o.O I don't ever remember linking that…..

also if it is that one, I really suggest you have a read of this Searching Google More Efficiently for Help & Code since I found that link on the first Google search, it was even the first link! All I Googled was "lua coding standards"
Mackan90096 #8
Posted 27 October 2013 - 05:28 AM
I'm looking for a webpage with coding standards… I think theoriginalbit linked it a while ago..
This one? o.O I don't ever remember linking that…..

also if it is that one, I really suggest you have a read of this Searching Google More Efficiently for Help & Code since I found that link on the first Google search, it was even the first link! All I Googled was "lua coding standards"

I think it was the one you linked now. Thanks!
TheOddByte #9
Posted 27 October 2013 - 12:10 PM
If it was the one TheOriginalBIT put up awhile back I still have an old copy of that if you'd like ;)/>
theoriginalbit #10
Posted 27 October 2013 - 12:13 PM
If it was the one TheOriginalBIT put up awhile back I still have an old copy of that if you'd like ;)/>
Which one is that?
TheOddByte #11
Posted 27 October 2013 - 01:04 PM
If it was the one TheOriginalBIT put up awhile back I still have an old copy of that if you'd like ;)/>/>
Which one is that?
Well I think it's the last one you sent over skype, So it's a bit different from the last one that was on GitHub I think.
theoriginalbit #12
Posted 27 October 2013 - 01:10 PM
Well I think it's the last one you sent over skype, So it's a bit different from the last one that was on GitHub I think.
Oh you mean the one I made for CraftNauts. Definitely not the one that Mackan90096 was referring to.
Mackan90096 #13
Posted 28 October 2013 - 05:05 AM
Well I think it's the last one you sent over skype, So it's a bit different from the last one that was on GitHub I think.
Oh you mean the one I made for CraftNauts. Definitely not the one that Mackan90096 was referring to.

Maybe it was..

Can I get a link to that?
theoriginalbit #14
Posted 28 October 2013 - 05:07 AM
Maybe it was..
Can I get a link to that?
I can tell you now, unless you deliberately went to the CraftNauts GitHub repo and clicked the link to download it from my GitHub it wasn't it, 'cause I didn't like that to anyone outside of the CraftNauts development team, there is no point it was the "teams guidelines" not "Luas guidelines"
Mackan90096 #15
Posted 28 October 2013 - 04:05 PM
Maybe it was..
Can I get a link to that?
I can tell you now, unless you deliberately went to the CraftNauts GitHub repo and clicked the link to download it from my GitHub it wasn't it, 'cause I didn't like that to anyone outside of the CraftNauts development team, there is no point it was the "teams guidelines" not "Luas guidelines"

Ok, that wasn't it then