Codesmith与手编码 [英] Codesmith vs. Hand coding

查看:81
本文介绍了Codesmith与手编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试着让我的脑袋围绕着我与开发人员进行的一次对话

。我们谈论的是Codesmith vs. Hand编码。他的职位是

Codesmith适用于初级到中级开发人员,他们更喜欢巫师。为他们写下

代码。这些类型的代码生成器产生了不合格的开发人员,他们没有真正的技能。在我获得更多信息之前,我没有一个位置或者另外一个位置,但是如果我要采取

的其他观点......利用Codesmith

之类的东西来生成某些代码的基础然后从那里自定义它是否有价值?

解决方案

John,


如果不存在,你应该自己编写。

(无论你做什么,做自己的课程,控制,组件,

jus复制或其他什么)


永远不会一次又一次地写相同的代码。

但是,我不会说一个解决方案是最好的。


我想到你的问题。


Cor


" M.Siler" < Jo ****** @ NoSpam.comschreef在bericht

新闻:e0 ************** @ TK2MSFTNGP06.phx.gbl ...


我正试图让我的脑袋围绕着我与开发人员进行的一次对话

。我们谈论的是Codesmith vs. Hand编码。他的职位

是Codesmith适用于初级到中级开发人员,他们更喜欢巫师。到
为他们编写代码。这些类型的代码生成器产生了b
不合格的开发人员,他们没有真正的技能。我没有位置

,直到我有更多的信息,但如果我要

采取另一种观点..是否有价值使用像

Codesmith来生成一些代码的基础,然后从

那里定制它?



" M.Siler" < Jo ****** @ NoSpam.com>'狂野的想法是

发布于2006年8月23日星期三08:58:46 -0400

关注水果:


>我正试图让我的头脑与我开发者之间的谈话有一天
。我们谈论的是Codesmith vs. Hand编码。他的立场是
Codesmith适合初级到中级开发人员,他们更喜欢巫师。为他们写代码。这些类型的代码生成器会产生不合格的开发人员,他们没有真正的技能。我没有一个位置或另一个位置,直到我有更多信息,但如果我要采取
其他观点...是否有价值利用像Codesmith
生成一些代码的基础,然后从那里自定义它?



回到VB6我总是使用向导生成基础

我的usercontrols代码。我用过的每个其他巫师都会使用

生成的代码是垃圾,所以这个代码就是一个

例外我总是自己编写代码。


如果向导为你节省了时间,那么这是件好事,但是如果

你最终会重写大部分内容,那么就不要打扰了。


Jan Hyde(VB MVP)


-

完美:将羊毛拉过配偶的眼睛。 (Cynthia MacGregor)


我认为代码生成然后定制是好的。如果你的很多项目都很相似,就是这种情况



我从数据库编写了自己的代码生成工具(SQL

Server)产生:


tableAdapter +数据访问层

业务对象

windows窗口


我然后为每个应用程序定制这些,并发现它确实加速

我的开发。


Jan Hyde写道:


" M.Siler" < Jo ****** @ NoSpam.com>'狂野的想法是

发布于2006年8月23日星期三08:58:46 -0400

关注水果:


我正试图让我的脑袋围绕着我与开发人员进行的对话

。我们谈论的是Codesmith vs. Hand编码。他的职位是

Codesmith适用于初级到中级开发人员,他们更喜欢巫师。为他们写下

代码。这些类型的代码生成器产生了不合格的开发人员,他们没有真正的技能。在我获得更多信息之前,我没有一个位置或者另外一个位置,但是如果我要采取

的其他观点......利用Codesmith

之类的东西生成一些代码的基础然后从那里定制它是否有价值?



回到VB6我总是使用向导为我的usercontrols生成基本的

代码。我用过的每个其他巫师都会使用

生成的代码是垃圾,所以这个代码就是一个

例外我总是自己编写代码。


如果向导为你节省了时间,那么这是件好事,但是如果

你最终会重写大部分内容,那么就不要打扰了。


Jan Hyde(VB MVP)


-

完美:将羊毛拉过配偶的眼睛。 (Cynthia MacGregor)


I''m trying to get my head around a conversation I had with a developer the
other day. We were talking about Codesmith vs. Hand coding. He''s position is
Codesmith is for junior to mid level developer who perfer "wizards" to write
code for them. That these types of code generators produce substandard
developers who don''t have real skills. I don''t have a position one way or
the other until I have a bit more information, but if I was to take the
other point of view... Is there value in utilizing something like Codesmith
to generate the bases of some code and then to customize it from there?

解决方案

John,

If it is not there, you should write it yourself.
(Whatever way you do that by making your own classes, controls, components,
jus copying or whatever)

It will never be clever to write forever again and again the same code.
However, I will not say that one solution is the best.

Just my thought about your question.

Cor

"M.Siler" <Jo******@NoSpam.comschreef in bericht
news:e0**************@TK2MSFTNGP06.phx.gbl...

I''m trying to get my head around a conversation I had with a developer the
other day. We were talking about Codesmith vs. Hand coding. He''s position
is Codesmith is for junior to mid level developer who perfer "wizards" to
write code for them. That these types of code generators produce
substandard developers who don''t have real skills. I don''t have a position
one way or the other until I have a bit more information, but if I was to
take the other point of view... Is there value in utilizing something like
Codesmith to generate the bases of some code and then to customize it from
there?



"M.Siler" <Jo******@NoSpam.com>''s wild thoughts were
released on Wed, 23 Aug 2006 08:58:46 -0400 bearing the
following fruit:

>I''m trying to get my head around a conversation I had with a developer the
other day. We were talking about Codesmith vs. Hand coding. He''s position is
Codesmith is for junior to mid level developer who perfer "wizards" to write
code for them. That these types of code generators produce substandard
developers who don''t have real skills. I don''t have a position one way or
the other until I have a bit more information, but if I was to take the
other point of view... Is there value in utilizing something like Codesmith
to generate the bases of some code and then to customize it from there?

Back in VB6 I always used the wizard to produce the base
code for my usercontrols. Every other wizard I''d used
produced code that was rubbish and so with that one
exception I''ve always coded things myself.

If the wizard saves you time then it''s a good thing, but if
you end up rewritting most of it then don''t bother.

Jan Hyde (VB MVP)

--
Consummate: To pull the wool over the eyes of a spouse. (Cynthia MacGregor)


I think code generation then customisation is good. This is the case
if a lot of your projects are similar.

I wrote my own code generation utility which from a database (SQL
Server) produces:

tableAdapter + data access layer
business objects
windows forms

I then customise these for each application, and find it really speeds
up my delveopment.

Jan Hyde wrote:

"M.Siler" <Jo******@NoSpam.com>''s wild thoughts were
released on Wed, 23 Aug 2006 08:58:46 -0400 bearing the
following fruit:

I''m trying to get my head around a conversation I had with a developer the
other day. We were talking about Codesmith vs. Hand coding. He''s position is
Codesmith is for junior to mid level developer who perfer "wizards" to write
code for them. That these types of code generators produce substandard
developers who don''t have real skills. I don''t have a position one way or
the other until I have a bit more information, but if I was to take the
other point of view... Is there value in utilizing something like Codesmith
to generate the bases of some code and then to customize it from there?


Back in VB6 I always used the wizard to produce the base
code for my usercontrols. Every other wizard I''d used
produced code that was rubbish and so with that one
exception I''ve always coded things myself.

If the wizard saves you time then it''s a good thing, but if
you end up rewritting most of it then don''t bother.

Jan Hyde (VB MVP)

--
Consummate: To pull the wool over the eyes of a spouse. (Cynthia MacGregor)


这篇关于Codesmith与手编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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