How do you explain that purely functional web servers like Ring and Yesod are not MVCs?

Traditionally people think of web applications as an MVC - which assumes an Object Oriented context.

Functional programming critiques this - and offers a model using higher order functions and immutable data structures.

My question is: How do you explain that purely functional web servers like Ring and Yesod are not MVCs?

Answers


l will try to answer this with respect to Yesod.

How do you explain that purely functional web servers like Ring and Yesod are not MVCs?

Yesod is not a web server. Yesod is a web framework. warp is the recommended web server for using alongside Yesod.

How do you explain that purely functional web servers like Ring and Yesod are not MVCs?

That's not necessarily true. You can use the templates as view, persistent as model and routing and handing as Controller. In fact, the scaffolding site loosely follows the MVC approach.

Functional programming critiques this - and offers a model using higher order functions and immutable data structures.

This has nothing to do with this MVC. MVC is just a design pattern. Higher order functions and immutable data structures doesn't stop you from following some architecture or a design pattern.


Need Your Help

How to create a new instance of Sql Server 2005

sql-server sql-server-2005

I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution

joomla developing question

joomla1.5

Can someone give me some insight on a scenario like this.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.