I have been referring to many articles that show comparison between SharePoint Sandboxed Solutions and Farm Solutions plus demos of Visual Web Part (Farm based) and Web Part (Sandboxed Solutions) under Visual Studio 2010 and it seems like Farm Based Development (using Visual Studio) and its deployment is far more preferred way by developers. Correct me if I'm wrong
Moreover,Sandboxed Solutions are restricted that Farm Solutions. Hence in what scenario a developer would preferred to develop/deploy solutions using Sandboxed way?
This far, it has never been possible to me to develop sandboxed solutions because they are too constrained for almost anything. However, if you want to use SharePoint Online (which is a SharePoint environment hosted in a Microsoft cloud), sandboxed solutions are the only way to go.