If developing web applications using ASP.NET MVC or Ruby on Rails make the application use the MVC design pattern, then if I build my application using only HTML5/Javascript + backend webservices (like WCF rest), then which design pattern will my application follow?

  • 1
    I think that would be the Client-Server architecture. – Sean McMillan Mar 5 '12 at 21:39

The modern web idea which you are talking about does not really have a specific name (it probably should). I generally try to use backbone.js or ExtJS or the like to do an MVC in the browser and treat the server as a data source that can have its own logic as well.

Don't worry so much about what it is called as much as how to write good code and make something that does the job.

  • 2
    It does have a name, it's called building a client/UI (or multiple clients) and consuming a webservice. In fact the html5/javascript is just a presentation layer in the MVC pattern, but with Asp.NET mvc (no idea about ruby) you have tools to easily export to xml,json, etc instead of html – Mihalis Bagos Mar 5 '12 at 10:02
  • 1
    I think rails does as well. As do most major web frameworks (yaws, yesod, symfony etc) – Zachary K Mar 5 '12 at 11:08

I call that "web app" development or "fat client" where you are including all your GUI interactivity on the client-side and the server is only providing data. MVC is more akin to "Enterprise Web Applications" or as I call them "pretentious layers of software".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.