My thoughts on this are that you should put in the bare minimum required to get your app up and running. For most JS API apps, this means creating a map, adding some layers and setting up your app's basic functionality and/or UI. That last point is wide open depending on what you're app does. Apologies if this is too vague/general but the answer will vary from app to app.