+ 6

Using proper coding etiquette!!!

Hello community, Maybe is my bad luck but it seems that many users are posting code without the most basic formatting such as - including comments - spacing and indentation - meaningful naming of variables While this may seem convenient at first it may cost the programmer more time and effort in the long run... Happy coding to all !! Cheers!!!

12th Oct 2017, 12:43 AM
Red Hawks
Red Hawks - avatar
6 Respuestas
+ 4
now, why var names
12th Oct 2017, 12:54 AM
Joshua
Joshua - avatar
+ 2
Hello Joshua, If a variable stores the width of a rectangle it is best to name it width rather than x or w. This is not as critical as using comments and spacing but it may prove helpful... just my two cents...
12th Oct 2017, 1:13 AM
Red Hawks
Red Hawks - avatar
+ 1
It can be that they are coding on Mobile: https://m.youtube.com/watch?v=cphNpqKpKc4
12th Oct 2017, 5:20 AM
seamiki
seamiki - avatar
+ 1
I, as a beginner, do agree the difficulty of typing on a phone, I struggle even right now. based on my code(outside of the app) I do like to believe that I do have good format, except for commenting code. I do agree to this that there is a problem with this and i try my best to comment. Getting good format is something we need to encourage each other to do and something to get used to
12th Oct 2017, 3:32 PM
SomeoneAwesome78
SomeoneAwesome78 - avatar
0
by the way, for the record, I have never named a variable "var". there is literally no reason in my opinion to name a variable var. You are just making your own code harder to write and read in the future. self defeat
12th Oct 2017, 3:36 PM
SomeoneAwesome78
SomeoneAwesome78 - avatar