你应该如何去学习ASP.NET作为一个ColdFusion开发人员? [英] How should you go about learning ASP.NET after life as a ColdFusion developer?

查看:146
本文介绍了你应该如何去学习ASP.NET作为一个ColdFusion开发人员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为使用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?

我想要在一个位置,我可以建立基本的web应用程序相当快,所以我可以学习更多的做

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.

推荐答案

我只有六个月左右的路径,但这里有一些从我的经验的想法far:

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库。

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:


  1. ASP.NET服务器控件 - 在ColdFusion中,你真的有
    直接控制HTML;你
    与页面非常紧密地工作。

    ASP.NET中没有这么多。服务器控制是
    ,意思是为了减轻你的很多
    tedium,但是可能有一些
    的直接控制。作为一个CF程序员,
    我非常特别的什么获得
    实际输出到浏览器;和
    在第一个ASP.NET沮丧我
    ,因为它吐出了很多额外的
    代码。但是,控制是
    真的很强大,它支付给
    熟悉他们。
    表单和验证控件,特别是
    ,节省了大量的
    在处理post
    的CF中的tedium和验证。 W3Schools
    实际上有一个不错的 web
    服务器控件列表

  2. 页面模型 - ColdFusion在页面
    流程方面非常不可知。 ASP.NET非常面向使用post backs
    ,是
    非常事件驱动。如果你不是
    使用一个框架CF(例如
    模型胶水),这可能是外国的
    你。 .NET负责处理
    的许多回复行为。另外,不是说
    ColdFusion不能是对象和
    函数驱动的良好使用
    CFC的,但ASP.NET真的尝试
    推下你的OO路径
  3. 数据库访问 - 使用ASP.NET真的让我感谢如何
    强大的cfquery真的是。
    csharp-station站点还有一个很好的
    教程,用于使用本地的
    .NET db工具。我没有工作在
    足够的项目,开始寻找
    周围的DB访问扩展;我是
    肯定Jeff推荐
    他们用于
    构建这个网站,所以你可能
    检查出来。否则,我真的
    建议你熟悉自己
    DataSet对象。它的
    有点类似于CF中的查询对象
    ,并允许你运行查询
    查询等等...循环超过
    在CF中的查询是很常见的,但它

    ASP.NET中不会因为数据绑定而发生。
  1. 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.
  2. 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.
  3. 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.

这篇关于你应该如何去学习ASP.NET作为一个ColdFusion开发人员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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