One file that contains design, layout, code, and remote server code.

I'm not totally sure how to debug server actions but its a whole bunch of functionality in one place.

No shifting between different files, just doing what you set out to do in one context.