How should you go about learning ASP.NET after life as a ColdFusion developer?(作为 ColdFusion 开发人员,您应该如何学习 ASP.NET?)
问题描述
作为一个使用 Adobe 的 ColdFusion 编写 Web 应用程序大约 10 年的人,我决定将 ASP.NET 作为字符串添加到我的弓上.
As someone who has spent around 10 years programming web applications with Adobe's ColdFusion, I have decided to add ASP.NET as a string to my bow.
对于长期使用 CF 和底层 Java 的人来说,ASP.NET 对我来说似乎有点陌生.我应该如何开始使用 ASP.NET,这样我才能真正危险地使用它?我需要非常详细地了解 C# 吗?
For someone who has spent so long with CF and the underlying Java, ASP.NET seems a little alien to me. How should I go about getting up to speed with ASP.NET so that I can be truly dangerous with it? Do I need to know C# at any great amount of detail?
我希望能够快速构建基本的网络应用程序,这样我就可以学习更多做棘手的事情.
I want to be in a position where I can build basic web apps fairly quickly so I can learn more doing the tricky stuff.
推荐答案
我可能只有六个月的时间走同样的路,但以下是我迄今为止的经验中的一些想法:
I'm only maybe six months down the same path, but here are some thoughts from my experience so far:
如果您完全有 Java(甚至 CFScript)方面的经验,那么 C# 语言应该不会给您带来太多问题.不过,作为参考,当我开始时,我发现 csharp-station 是一个很好的语言入门基本.就 ASP.NET 而言,它对您没有多大帮助;但它对语法有好处.更多您将熟悉 .NET 库.IDE 实际上可以在这里提供巨大的帮助.
The C# language shouldn't give you much problem if you have very much experience with Java at all (or even CFScript). As a reference, though, when I was starting, I found csharp-station a good primer for language basics. It won't help you much as far as the ASP.NET side goes; but it is good for syntax. More you'll be familiarizing yourself with the .NET libraries. The IDE actually can be an enormous help here.
以下是我在进行过渡时发现的三个最大差异:
Here are the three biggest differences I found making the transition:
- ASP.NET 服务器控件 - 在 ColdFusion 中,您确实拥有漂亮的直接控制 HTML;你与页面密切合作.情况并非如此ASP.NET.服务器控件是旨在减轻你的很多乏味,但可能要付出一些代价直接控制.作为一名CF程序员,我对得到的东西很挑剔实际输出到浏览器;和起初 ASP.NET 让我很沮丧因为它会吐出很多额外的东西代码.尽管如此,控件仍然是真的很强大,而且值得熟悉他们.表单和验证控件,尤其是,让你免于很多CF中处理帖子的乏味返回和验证.W3学校实际上有一个不错的 网络列表服务器控件.
- 页面模型 - ColdFusion 在页面方面是相当不可知的流动.ASP.NET 非常适合倾向于使用后背,并且是非常事件驱动.如果你不是使用带有 CF 的框架(例如模型胶),这可能是陌生的你..NET 负责处理很多回发行为你.还有,不是说ColdFusion 不能成为对象并且良好使用驱动的功能CFC 的,但 ASP.NET 确实试图将您推向 OO 路径比较以我的经验为 CF.
- 数据库访问 - 使用 ASP.NET 真的让我很感激强大的cfquery 真的是.这csharp-station网站也有不错的使用本机的教程.NET 数据库工具.我没有工作足够的项目尚未开始寻找用于数据库访问扩展;我是很确定杰夫推荐他们用来做的东西建立这个网站,所以你可以检查出.不然我真的建议你熟悉一下与 DataSet 对象.它是有点类似于查询对象在 CF 中,并让您运行查询查询等...循环CF 中的查询很常见,但它几乎没有发生ASP.NET 因为数据绑定.
- ASP.NET Server Controls - In ColdFusion, you really have pretty direct control over the HTML; you work very closely with the page. This isn't so much the case in ASP.NET. The server controls are meant to relieve you of a lot of the tedium, but at a cost of maybe some direct control. As a CF programmer, I'm very particular about what gets actually output to the browser; and at first ASP.NET frustrated me because it spits out a lot of extra code. Still, the controls are really powerful, and it pays to familiarize yourself with them. Form and validation controls, especially, save you from a lot of the tedium in CF of handling post back and validation. W3Schools actually has a decent list of web server controls.
- The page model - ColdFusion is pretty agnostic in terms of page flow. ASP.NET is very much geared towards using post backs, and is very event driven. If you're not using a framework with CF (e.g. Model Glue), this may be foreign to you. .NET takes care of handling a lot of the post back behavior for you. Also, not to say that ColdFusion can't be object and function driven by good use of CFC's, but ASP.NET really tries to push you down the OO path compared to CF in my experience.
- Database access - Using ASP.NET really made me appreciate how powerful cfquery really is. The csharp-station site also has a good tutorial on working with the native .NET db tools. I haven't worked on enough projects yet to start looking around for DB access extensions; I'm pretty sure Jeff recommended something that they used for building this site, so you might check that out. Otherwise, I really suggest you familiarize yourself with the DataSet object. It's somewhat similar to a query object in CF, and lets you run query of queries, etc... Looping over queries in CF is very common, but it doesn't happen nearly as much in ASP.NET because of data binding.
这篇关于作为 ColdFusion 开发人员,您应该如何学习 ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:作为 ColdFusion 开发人员,您应该如何学习 ASP.NE
基础教程推荐
- 将 XML 转换为通用列表 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- 如何激活MC67中的红灯 2022-01-01