数据库驱动的网站,C#前端F#后端是什么意思? [英] Database Driven Website, C# front-end F# back-end meaning?

查看:88
本文介绍了数据库驱动的网站,C#前端F#后端是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用ASP.NET的实习生.

我当前的任务是创建一个网站,其中将包含一些jquery查看功能.在我看来,这个项目将主要处理从数据库中读取数据并从中制作图表的工作.这将需要我从客户端正在查看的内容中进行自定义查询.我认为这将是这个人称为 Ad hoc查询工具

我的计划是使它成为数据库驱动的网站.因此,我可以利用jquery的动态查看功能.我偶然发现了函数式编程范例,并发现了F#.我读到它的功能编程范例,使它成为执行异步功能的好语言.我了解了如何在 LINQ to SQL 中使用它,以及进行查询的难易程度无需实际使用查询语言.我了解MVC设计模式的概念.

但是 我不明白C#是前端,而F#是后端 的含义.有人可以向我澄清吗?您对以这种方式进行这个项目有什么想法?任何意见和想法都将不胜感激.我觉得学习F#对我来说将是一次很好的学习经历.

Hi I am an intern working with ASP.NET.

My current task is to make a website which will incorporate some jquery viewing features. This project seems to me will be primarily dealing with reading data from a database and making graphs out of them. This will require me to make custom queries from whatever the client is looking at. I think it is going to be what this guy calls an Ad Hoc Query tool

My plan for this is to make it a database-driven website. So I can utilize the jquery dynamic viewing capabilities. I stumbled upon the functional programming paradigm and found F#. I read that because of it''s functional programming paradigm, it makes it a good language to do asynchronous functions. I read about how you can use this with LINQ to SQL and how easy it is to make queries without actually putting the query language in. I understand the concept of the MVC design pattern.

But I don''t understand what they mean about C# being the front-end and F# being the back-end. Can someone clarify this to me? Also what are your thoughts about doing this project in this way? Any comments and thoughts are greatly appreciated. I feel as if learning F# will be a great learning experience for me.

推荐答案

对于前端和后端语言选择,我也有些困惑. >
我唯一能想到的是,您可能拥有一个用C#编写的网站,也许还有一个类库/服务(更可能的服务),它是F#为网站提供功能方面的内容.

在异步行为方面,似乎F#语言确实提供了要在.net 4.5中发布到c#和vb.net的asyc方法.因此,就此时的asyc而言,f#可能更好,但问题是,您创建的网站是否真的需要一种功能性(声明性)编程语言?

此时,c#和vb.net使用常规的.net线程方法,并在.NET 4中使用TPL(Task Parrallel库). TPL非常棒,确实提供了易于使用和理解的线程机制,这些机制可以提供非常规的行为.

f#是我尚需学习的东西,但是老实说,对于大多数网站而言,c#足以应付.

因此,考虑到这一点,我(根据您的情况)将专注于MVC,C#,并使用Linq to SQL或Linq to EF.

希望对您有所帮助.
I too am a little confused regarding the front and back end language choice.

The only thing I can think of is that you could have a website written in C# and maybe a class library / service (more likely service) that is F# providing functional aspects to the site.

In terms of asynchronous behaviour, it appears that the F# language does provide the asyc methods that are to be released to c# and vb.net in .net 4.5. So in terms of asyc at this point in time f# is probably better but, the question is, does the website you are creating really need a functional (declarative) programming language?

At this point in time, c# and vb.net use the normal .net threading methods and in .NET 4 with TPL (Task Parrallel library). TPL is fantastic and really does provide easy to use and understand threading mechanisms that can provide asyc behaviour.

f# is something I am yet to learn but to be honest for most websites, c# will be enough to deal with.

So with that in mind, I would (in your situation) focus on MVC, C#, with Linq to SQL or Linq to EF.

hope any of this helps.


这篇关于数据库驱动的网站,C#前端F#后端是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆