If you break up your code into smaller pieces, then you should be mostly free of naming conflicts. This is under the assumption that your code is also scoped to their own blocks and files.
When it comes to sharing libraries or scoping your code, then prefix or affix everything with a namespace as Ahmed Ghanem pointed out.