Jump to content




Where Can I Find This?


  • You cannot reply to this topic
14 replies to this topic

#1 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 26 October 2013 - 01: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

#2 jay5476

  • Members
  • 289 posts

Posted 26 October 2013 - 02: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

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 26 October 2013 - 02: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 ...

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 26 October 2013 - 03: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]=]


#5 lieudusty

  • Members
  • 419 posts

Posted 26 October 2013 - 02:04 PM

Is it this?

#6 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 27 October 2013 - 02:55 AM

View Postlieudusty, on 26 October 2013 - 02:04 PM, said:

Is it this?

Unfortunateley, no.
I'm looking for a webpage with coding standards... I think theoriginalbit linked it a while ago..

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 October 2013 - 03:09 AM

View PostMackan90096, on 27 October 2013 - 02:55 AM, said:

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"

#8 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 27 October 2013 - 05:28 AM

View Posttheoriginalbit, on 27 October 2013 - 03:09 AM, said:

View PostMackan90096, on 27 October 2013 - 02:55 AM, said:

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!

#9 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

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 ;)

#10 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 October 2013 - 12:13 PM

View PostHellkid98, on 27 October 2013 - 12:10 PM, said:

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?

#11 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 27 October 2013 - 01:04 PM

View Posttheoriginalbit, on 27 October 2013 - 12:13 PM, said:

View PostHellkid98, on 27 October 2013 - 12:10 PM, said:

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.

#12 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 October 2013 - 01:10 PM

View PostHellkid98, on 27 October 2013 - 01:04 PM, said:

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.

#13 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 28 October 2013 - 05:05 AM

View Posttheoriginalbit, on 27 October 2013 - 01:10 PM, said:

View PostHellkid98, on 27 October 2013 - 01:04 PM, said:

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?

#14 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 28 October 2013 - 05:07 AM

View PostMackan90096, on 28 October 2013 - 05:05 AM, said:

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"

#15 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 28 October 2013 - 04:05 PM

View Posttheoriginalbit, on 28 October 2013 - 05:07 AM, said:

View PostMackan90096, on 28 October 2013 - 05:05 AM, said:

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users