你应该如何去生活后学习ASP.NET为ColdFusion开发者? [英] How should you go about learning ASP.NET after life as a ColdFusion developer?

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

问题描述

正如有人谁花了大约10年的编程与Adobe公司的ColdFusion web应用程序,我已经决定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.

推荐答案

我只是也许半年下来相同的路径,但这里是从我的经验的一些想法至今:

I'm only maybe six months down the same path, but here are some thoughts from my experience so far:

C#语言不应该给你多少的问题,如果你有在所有(甚至CFSCRIPT)与Java非常多的经验。作为参考,不过,当我开始,我发现 CSHARP站的语言基础知识的好底漆。作为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:


  1. ASP.NET服务器控件 - 在ColdFusion的,你真的有pretty
    在HTML直接控制;您
    与页面密切合作。
    这是没有这么多的情况下
    ASP.NET。服务器控件
    为了减轻你不少的的
    乏味,但在一些可能成本
    直接控制。作为一个CF程序员,
    我很讲究得到什么
    实际上输出到浏览器;和
    在第一个ASP.NET我感到沮丧
    因为它吐出了很多额外的
    code。尽管如此,控制是
    果然厉害,而且它支付
    熟悉他们。
    形式和验证控件,
    尤其是,节省您大量的
    在处理后的CF单调
    背部和验证。 W3Schools的
    实际上有网络体面的名单
    服务器控件
    的。

  2. 页面模型 - ColdFusion的是页面而言pretty无关
    流。 ASP.NET是非常面向
    对使用后背上,并
    非常事件驱动的。如果你不
    使用框架,CF(例如
    型号胶),这可能是陌生的
    您。 .NET负责装卸的一
    很多帖子后面行为的
    您。另外,不是说
    ColdFusion的不能对象
    函数通过良好的使用驱动
    CFC的,但真的ASP.NET尝试
    推你下来比较OO路径
    在我的经验CF。

  3. 数据库访问 - 使用ASP.NET真的让我AP preciate如何
    强大的CFQUERY确实是。该
    CSHARP站现场也有不错
    教程与本地合作
    .NET数据库工具。我还没有工作的
    足够的项目还没有开始寻找
    周围DB访问扩展;我
    pretty肯定杰夫推荐
    的东西,他们用于
    建立这个网站,所以你可能
    检查出来。否则,我真的
    建议您熟悉
    与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天全站免登陆