how to know that i want to write a particular code

how to know that i want to write a particular code in client side or server side code in meteor Todo app