Syntax and naming conventions?
Posted: 13 Feb 2018, 12:12
What sort of naming conventions and syntax do you use(if any) when writing your code. I find myself changing portions of my code until "I like it."
Just wanting to get some different perspectives here, because I see all sorts of variations out there. I know Autohotkey is case-insensitive, and so it doesnt usually matter how you write things.
Variable & Function Names:
I always use camelCase
I always use the := operator, even when it's not necessary.
I always put spaces around the operators.
Others:
I'll add more after I get off work, just wanted to start the discussion for now.
Just wanting to get some different perspectives here, because I see all sorts of variations out there. I know Autohotkey is case-insensitive, and so it doesnt usually matter how you write things.
Variable & Function Names:
I always use camelCase
I always use the := operator, even when it's not necessary.
I always put spaces around the operators.
Code: Select all
firstName := "John"
lastName := "Doe"
firstLast := firstName " " lastName
I'll add more after I get off work, just wanted to start the discussion for now.