I can name some very good conventions that will apply to all programming languages.
1. Name your variables something sensible. Nothing is worse then revisiting projects and wonder what the ******** BLAHBLAH was meant to do.
2. Pay attention to the reserved words in your language to avoid accidentally naming variables as them and then wondering why your program went wrong. Reserved words are words reserved by the language for specific purposes. For example, If and Else are reserved for selection loops
3. Plan. Plan. Plan. Plan what your program will do and how it will do it. This includes any "modules" or APIs that you might be using or referring to. After you've planned out what the program will do, write it down in what is known as structured language. Sample given below for a dice roller.
Structured language sample
Create variable "rollDice"
Create variable called "modNumber"
Create a variable called "total"
Bring up a message asking the user what dice they want to roll and then refer to the rolling module to get it and bring it back here.
Bring up a message asking the user what they wish to add to the result of the rolls and put that into the variable "modNumber"
total = rollDice + modNumber
Bring up a message saying "You rolled (total) on this roll"
I would say more but I have to go get in the shower and plan Saturday's concert events as the driver.