Talk:Lua Style Guide: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs
>MrNicNac
No edit summary
Line 7: Line 7:
I believe the part that says they should write their code in lowerCamelCase is completely biased. There are many scripters that use camelCase and many scripters that use PascalCase and neither is better than the other. There are recommendations that are universal, such as indenting, but camelCase is definitively not. There are even users that use underscores (I sometimes do), or no spaces at all (which I'd name luacase, as that's how the Lua libraries actually work: gsub, newproxy, getfenv, setmetatable, etc). I think we should remove that part. {{User:JulienDethurens/signature|date=17:53, 22 January 2012 (UTC)}}
I believe the part that says they should write their code in lowerCamelCase is completely biased. There are many scripters that use camelCase and many scripters that use PascalCase and neither is better than the other. There are recommendations that are universal, such as indenting, but camelCase is definitively not. There are even users that use underscores (I sometimes do), or no spaces at all (which I'd name luacase, as that's how the Lua libraries actually work: gsub, newproxy, getfenv, setmetatable, etc). I think we should remove that part. {{User:JulienDethurens/signature|date=17:53, 22 January 2012 (UTC)}}
:camelCase is much easier to look at, and almost all professional programmers use it. It's a good habit. PascalCase just looks ugly, and it's much less typing-efficient. If you were typing Hello all the time instead of hello, it's slower. If you were typing HelloWorld, it's again slower, but if you were typing helloWorld, you can see where the word begins, so it's a visual aid, and also not have to press shift twice.<div style="border-top: 1px solid #AAA; color:#000000; font-size:10px">Trappingnoobs <span style="color:skyblue">(Writer)</span><span style="color:red"> Have I done something bad? Good? Tell me on my [[User_talk:Trappingnoobs|talk page]]</span><span style="color:grey;float:right">  17:58, 22 January 2012 (UTC)</span></div>
:camelCase is much easier to look at, and almost all professional programmers use it. It's a good habit. PascalCase just looks ugly, and it's much less typing-efficient. If you were typing Hello all the time instead of hello, it's slower. If you were typing HelloWorld, it's again slower, but if you were typing helloWorld, you can see where the word begins, so it's a visual aid, and also not have to press shift twice.<div style="border-top: 1px solid #AAA; color:#000000; font-size:10px">Trappingnoobs <span style="color:skyblue">(Writer)</span><span style="color:red"> Have I done something bad? Good? Tell me on my [[User_talk:Trappingnoobs|talk page]]</span><span style="color:grey;float:right">  17:58, 22 January 2012 (UTC)</span></div>
::It does not matter what looks ugly or what '''most''' people use. It should never be said that one '''should''' be used over another. They should both be presented with no compliments or arguments. Just how they are. No biased nature on Wikis. [[User talk:MrNicNac|<font color="#007BA7" size="4">☩</font>]][[User:MrNicNac|<font color="#E52B50" size="3" face="Harlow Solid Italic">MrNicNac - Wiki Editor</font>]] [[Special:Contributions/MrNicNac|<font color="#007BA7" size="4">☩</font>]]

Revision as of 18:05, 22 January 2012

I wrote mine first =P These two articles should be merged. This is the better title.

Merlin11188 | Talk | Send Message | E-mail | Wiki Writer
15:07, 22 January 2012 (UTC)
Yours isn't the same. The style guide is all about how to name identifiers and typeset code. Yours is more about writing code that does things in the right way, and how it is valuable to comment.
15:23, 22 January 2012 (UTC)
That's true. I'll leave mine up, and redirect them here when they just have bad style :D
Merlin11188 | Talk | Send Message | E-mail | Wiki Writer
15:37, 22 January 2012 (UTC)

lowerCamelCase

I believe the part that says they should write their code in lowerCamelCase is completely biased. There are many scripters that use camelCase and many scripters that use PascalCase and neither is better than the other. There are recommendations that are universal, such as indenting, but camelCase is definitively not. There are even users that use underscores (I sometimes do), or no spaces at all (which I'd name luacase, as that's how the Lua libraries actually work: gsub, newproxy, getfenv, setmetatable, etc). I think we should remove that part.

camelCase is much easier to look at, and almost all professional programmers use it. It's a good habit. PascalCase just looks ugly, and it's much less typing-efficient. If you were typing Hello all the time instead of hello, it's slower. If you were typing HelloWorld, it's again slower, but if you were typing helloWorld, you can see where the word begins, so it's a visual aid, and also not have to press shift twice.
Trappingnoobs (Writer) Have I done something bad? Good? Tell me on my talk page 17:58, 22 January 2012 (UTC)
It does not matter what looks ugly or what most people use. It should never be said that one should be used over another. They should both be presented with no compliments or arguments. Just how they are. No biased nature on Wikis. MrNicNac - Wiki Editor