组件重用需要专人负责

【解决】ArgumentException: GetComponent requires that the requested component ‘XX‘ derives from... 开发平台:Unity 2020编程平台:Visual Studio 2020使用语言:CSharp。 阅读详情

不知道诸位所在的公司如何,至少在我现在的公司,代码的重用性是很差的。同一个模块在多个项目组之间重复开发,甚至同一个模块在同一个项目的不同版本之间也是不同的人重复开发......我们把大量的时间放在了做重复性的工作上面,所以就谈不上什么创新了,因为根本没有时间了。

真诚的希望,哪一天我们的工作就像建筑一座大厦,只需要做设计,买来相应的材料就可以组装起来了。无法想象,如果每一个砖头都要亲自打造,何时能够完工。

作为一个普通的开发者,也许我无法改变现实。但是,如果你是一位主管,也许你就可以考虑考虑了。

Component Reuse Requires a Manager

Paul Harmon Archive
Visit the Paul Harmon archive for the complete collection of all past Bottom Line columns.

Most companies are blundering into component development without a clear plan. That makes sense, when you consider that senior managers don't usually focus on technologies. They focus on results. Today, most companies are focused on the Internet and on developing e-commerce and eBusiness applications. To facilitate the development the new B2C or B2B applications, companies decide to adopt Java, buy EJB application servers, or rely on MTS and COM+. Depending on the tools and servers they buy, they may acquire some components for reuse. If they do, however, those components are already implemented as COM or EJB components.

Making quick decisions and moving fast may solve some of the short-run demands that senior executives are placing on IT, but it won't prepare IT for long-run success.

The first step to planning for IT success is to recognize that the move to e-commerce and the Web is in fact a software technology transition. Of course it is also a business process transition and of course senior executives are more focused on implementing new eBusiness processes, but that doesn't change the way the CIO and senior IT managers should look at the transition. When you start using object-oriented languages like Visual Basic, C++, and Java, you are moving toward object-oriented development. When you start developing COM+ and EJB components and acquire an MTS or EJB application server, you are committing your company to component-based development. Once you face this fact, then the question that follows is: Are you going to do it right, or are you going to try to blunder your way through a major technology transition?

"Are you going to do it right, or are you going to try to blunder your way through a major technology transition?"

Assuming you decide you'd rather do it right and master component-based development, you need to begin by creating a new job position. You need a Manager of Component Development, and he or she needs to report to the CIO or to the manager in charge of software development. Put another way, your Manager of Component Development needs clout and he or she needs to be located high enough to have a comprehensive overview of what the organization is doing.

The Manager of Component Development should not be responsible for developing component-based applications. Your whole IT group will eventually be developing component-based applications. The Manager of Component Development should be responsible for two things. First, he or she should be responsible for planning the transition. Second, he or she should end up managing the group within IT that is responsible for reusable component resources.

In effect, once an organization commits to transitioning to component-based development, it should begin to move toward an organizational structure that divides those who create and maintain reusable components and those who assemble components into applications. Moreover, until you have this kind of organization, and some component resources to reuse, you can't practice effective component-based development. Without it, you create a development team to create a new e-commerce application from scratch. The team decides on a language and an application server and then creates a design and starts creating components. They may buy some components from the server vendor or an outside resource, but usually they are under such time pressure that they don't have time to figure out how to acquire components for reuse. Besides, not being trained or disciplined to reuse components, most find it easier to create new components than to work through the significant learning curve that the transition to reuse necessarily requires.

"It's rarely a matter of simply taking a component that was developed for one application and using it in another application."

The only way an organization can get ahead of this game is to appoint a Manager of Component Development and assign that person to manage the transition. The new manager will need to choose his or her targets carefully. First there will be staff training and an evaluation of just what component resources exist. Usually it's a matter of identifying some components from outside sources and other components that will need to be developed internally. Typically, someone will propose that component x (Personnel Record Update, Part Order, Account, or some such) is frequently used and ought to be standardized for reuse. It's rarely a matter of simply taking a component that was developed for one application and using it in another application. Instead, at this point our Manager of Component Development will begin to acquire a team of component developers who will specialize in creating, testing, and maintaining components for reuse.

The component development team will need special skills and they need to be isolated from the contingencies that make it hard for people working on specific projects to take a long range perspective. The component development team is charged with building a library of reusable components. They will buy some and develop others, often starting with existing components but typically modifying them quite a bit. There are lots of issues these developers will face. Do you design components in the abstract (UML specifications) and then implement them in specific languages as COM+ or EJB components, or focus on implementations right from the start? How do you test components? Who is responsible for approving changes in the components and how do you control versions? Figuring out how to develop and manage component resources will take time.

"Team managers will need to be educated to require and reward reuse rather than the rapid development of code."

Then, once the manager and the team feel that they are on top of that, they, or others, will need to train the actual application developers in the reuse of existing resources. This will also take time. Team managers will need to be educated to require and reward reuse rather than the rapid development of code. Individuals will need to be available to help developers design applications to take advantage of reuse. Its never the case that all of the components needed for an application can be reused. It would be impossibly inefficient to aim for such a thing. The key is recognizing what elements of an application can be handled by reusable components and what will require one time development.

I don't want to try to lay out the entire transition here. The key, however, is a Manager of Component Development, and a group that is focused on acquiring, creating, and maintaining reusable components. When I critique an organizations and find a dozen component development projects underway, each trying to figure out how to handle the various problems they face without any high-level help, I know the organization hasn't figured out what its doing yet. It has blundered into a major software transition without realizing it or planning for it. One or two teams, by shear hard work and individual brilliance may produce a great e-commerce application. But the company isn't ready to systematically duplicate that effort when it seeks to create another eBusiness application. Nor will it be ready to modify that and other applications as new technologies and eBusiness processes emerge in the years ahead.

On the other hand, when I visit organizations and see such individuals in place, I know the company has thought about what it is doing and has a transition plan. With a little luck, the organization with the manager is going to get better and better at systematically creating component-based applications. And, at the same time, I expect they will start reducing the time and cost of application development while simultaneously increasing the quality of the applications. They have a plan to take advantage of what the component transition really offers.

<!-- end text --><!-- Discussion Bar --><!-- Discussion Bar -->
Win10安装和配置IIS web服务器环境来运行ASP(动态服务器页面)脚本 Win10安装和配置IIS web服务器环境来运行ASP(动态服务器页面)脚本 安装IIS 1.打开控制面板,选择【程序和功能】选项 2.选择【启用或关闭Windows功能】,为Windows开启web服务器功能 3.弹出Windows功能框中选择【Internet information Services】,点击左侧【+】号,勾选上FTP服务器,Web管理工具,点击【万维网服务】左侧【+】号,选择【应用程序开发功能】,勾选ASP和ASP.NET 3.5/4.8,或者直接像我一样全都勾选 4.然后点击【确定 阅读详情

相关推荐

ASP.NET MVC登陆后跳转到原页面

ASP.NET MVC登陆后跳转到原页面的方法 一、功能描述: 当打开一个web页面,该页面需要登陆时,跳转到登陆页面; 登陆页面验证成功之后,再自动跳转到将要打开的web页面; 图示: 二、解决方案 思路: 1)、构造一个抽象过滤控制器,该控制器用于判断用户是否已登陆和登陆后跳转到原页面,所有需要登陆的页面均继承该控制器, 该控制器跳转登陆页面时,会把原页面的地址值作为参数传入到登陆页...

weixin_43191476的博客 5585

ArgumentException: GetComponent requires that the requested component ‘GameObject‘ derives from Mono

ArgumentException: GetComponent requires that the requested component 'GameObject' derives from Mono GetComponent要求被请求的组件“GameObject”来自MonoBehaviour或component,或者是一个接口。

作孽就得先起床的博客 3279

ASP.NET使用HttpHandler进行页面静态化(自动生成页面)

这次的Demo是,一个根页面,点击链接创建子页面,子页面都是一个Template页面进行替换的 一个根页面 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Static.List" %> <!DOCTYPE html> <html xmlns="...

南 墙 9454

EJB

EJB Interview Questions Q: How EJB Invocation happens? A: Step 1: Retrieve Home Object reference from Naming Service via JNDI.step 2: Return Home Object reference to the client.step 3: Create me a...

技术的死亡 237

ASP.NET跨页面的控件调用

ASP.NET3.5可以很简答的实现一个很有用的功能,既跨页面传送,传统的提交窗体只会将窗体提交给它自己。而跨页面的提交,会将page1的内容传送个page2,并在page2中使用page1中的控件。 ① 跨页面传递的简单实现    页面一(Default.aspx)中的控件                            PostBackUrl="~/PostBac

人在天涯,不倦求索。。 3829

关于ASP.NET页面与代码分离

1.我们先创建一个页面看看具体如何: 2.来看它的后台文件 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.

每天进步一点点 6362

尽量少用GetComponent

http://www.cnblogs.com/murongxiaopifu/p/4284988.html上面链接时有提到有人做了个测试:用GetComponent()获取Transform组件,比预先保存其引用后再调用要慢得多。我搜了下,找到那个测试。即下面的链接。http://forum.unity3d.com/threads/cachedmb.130365/代码拿来跑了下,结果确实类似。所以在经

只有偏执狂才能生存 1万+

asp.net中解决页面刷新后字体等变大的问题

今天在csdn上看到一篇博客,是讲解关于asp.net中解决页面刷新后字体等变大问题的,看了一下,感觉写的不是很详细。那么,我利用他的实例来具体了解一下:原文:  protected void Button1_Click(object sender, EventArgs e)        {             //Page.RegisterStartupScript("Se

wcsjsdn的专栏 2932

【GameObject 类】 (三)GetComponent获取组件

GetComponent 是访问游戏对象的组件的方法,由于Unity5采用模块化思想对底层进行了重写,能够减少用户负担,原来Unity4.x定义的一些便利属性访问器被取消,所以我们调用GetComponent来访问游戏对象和组件并调整参数,而且在制作过程中使用比较多。 格式: GameObject.GetComponent&lt;type&gt;() 说明: (1)GameObject ...

KillMeHealMe的博客 4万+

ASP.NET通过更改Url进行页面传值

这里,通过假数据,手动创建的一个类,然后创建的一个集合,放入下拉框,选好值以后,点确定 会在另一个页面产生对应的id,有不懂的欢迎评论 创建一个类: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1 { publi...

南 墙 9767

asp.net 加页面Loading效果

protected void Page_Load(object sender, EventArgs e)         {             if (!IsPostBack)             {                 Loading();             }         }         public static void L

5092

在.net的页面与asp的也面中可以传递session

ASPPage1.asp This is the page where we just set some Classic ASP Session Variables ASPPage2.asp is where the work is done.Session("username")="joeblow"session("email")="joe@blow.com"Session("userid"

Welcome to Chandler.C's blog 1202

ASP.NET Web程序设计 第五章 页面状态管理

一、Cookie对象(重点) 1、Cookie用于在客户端浏览器中存储少量信息,通常存放非敏感的用户信息,保存的时间可以设置。 **1)临时型:**如果没有设定Cookie的过期时间,则Cookie的过期时间,则Cookie的生命周期仅保持到关闭浏览器为止。 **2)持久型:**将 Cookie的过期时间设定为一个未来的时刻,则Cookie的生命周期会持续到设定的时刻结束,即使在此期间关闭浏览器甚...

高瑜的博客 4654

ASP.NET的跨页面控件传值常用方法

·ASP.NET 2.0开始有得一项新功能,是ASP所不具备的 ·可以理解为,被设置了PostBackURL的控件,将整个页面提交给服务器,服务器有了访问这个被提交页面上的空间的权限。 `IsPostBack(是否回发页面) IsPostBack是Page类有一个bool类型的属性,用来判断针对当前Form的请求是第一次还是非第一次请求。当IsPostBack=t

浓汤拉面的专栏 1262

用c#开发了一个asp.net网站,遇Session超时的问题

 正常操作情况下Session会无故丢失。因为程序是在不停的被操作,排除Session超时的可能。另外,Session超时时间被设定成60分钟,不会这么快就超时的。          这次到CSDN上搜了一下帖子,发现好多人在讨论这个问题,然后我又google了一下,发现微软网站上也有类似的内容。          现在我就把原因和解决办法写出来。                  原因:    

yjmtv0817的专栏 984

aspx页面调试(asp.net)

在做aspx页面开发时,可能由于马虎出现以下的错误:情况一:1.错误   “ASP.operatepages_exam2testmanage_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写双击会跳到这样一段代码:public override int GetTypeHashCode() {            return 69778660;        }2.错误

任游.Abraham.Wei.rEny0u.pRince 2936

ASP.NET 页面间传值全攻略:8 种方法详解与实战场景选择

在 ASP.NET Web 应用开发中,页面间的数据传递是高频需求。无论是电商网站的购物车跳转、多步骤表单的流程控制,还是后台系统的筛选条件共享,都需要高效可靠的数据传递方案。本文将全面解析 ASP.NET 中 8 种主流传值方式,通过代码示例、性能对比和场景分析,助你选择最佳实现方案。利用服务器会话状态存储用户级数据,生命周期为整个用户会话。利用缓存机制临时存储数据,支持依赖项和过期策略。将数据存储在客户端浏览器,支持自定义过期时间。应用级别的全局存储,所有用户共享同一份数据。

记录学习的过程 1978

asp.net Temporary ASP.NET Files修改为其他位置解决阿里云报病毒问题

asp.net Temporary ASP.NET Files修改为其他位置

qq_36437991的博客 1109
上一篇: 不仅仅是Jabber----xICQ的革命?
下一篇: .NET对软件安装的冲击
optman
博客等级 码龄26年 64粉丝 128原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址