Step 1: Use a good programming language, like PHP, everyone loves PHP!
Step 2: Write a library that's useful! If you think it is, then it is, regardless of what others say, they only have more experience, what could they know?
Step 3: Use a good coding style, name your variables to something that is completely the opposite of what the variable actually is, this way you'll prevent evil hackers from stealing your code!!!
Step 4: Don't bother indenting, it's a waste of precious bytes on your harddrive and a wate of your precious time!