改进我的代码 [英] Improving my code

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

问题描述

您好:


我想知道我每次编码时能做些什么改进我的代码

我觉得可以做得更好。我几个月前开始使用c#

并且感觉很顺从但有时我需要查找一些东西。

也许有人可以推荐一本关于c#良好实践的好书? br />
干杯

Jo

Hi there:

I m wondering what can I do to improve my code, everytime I am coding
I feel like it could be done better. I started on c# a good months ago
and feel conformtable but sometimes I Need to look up stuff.
maybe someone can suggest a good book on good practices for c#?
Cheers
Jo

推荐答案

" Jo" < jo ******* @ gmail.comwrote in message

news:11 ********************** @ k79g2000hse.googlegr oups.com ...
"Jo" <jo*******@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...

我想知道每次编码时我能做些什么来改善我的代码

我觉得可以做得更好。我几个月前开始使用c#

并且感觉很顺从但有时候我需要查找内容。

也许有人可以推荐一本关于c#良好实践的好书?
I m wondering what can I do to improve my code, everytime I am coding
I feel like it could be done better. I started on c# a good months ago
and feel conformtable but sometimes I Need to look up stuff.
maybe someone can suggest a good book on good practices for c#?



改善代码的一种方法是同行评审。不时与同事一起度过几分钟,并让他看一下你的代码样本,

指出他会采取不同的做法,并解释为什么。请

提供回报优惠并查看他的代码。当你在

时,问问他为什么以他们的方式做事情的问题

每当你看到你会用不同的方式做的事情时。 br />

One way to improve your code is peer review. From time to time, spend a
few minutes with a colleague and have him look at a sample of your code,
pointing out things that he would do differently, and explaining why. Do
offer to pay back the favour and take a look at his code. While you are at
it, ask questions about why he did things the way that they are done
whenever you see something that you would have done in a different way.


6月22日上午9:23,Alberto Poblacion < earthling-

quitaestoparacontes ... @ poblacion.orgwrote:
On Jun 22, 9:23 am, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:

" Jo" < jodiep ... @ gmail.com写信息


新闻:11 ********************** @ k79g2000hse.googlegr oups.com ...
"Jo" <jodiep...@gmail.comwrote in message

news:11**********************@k79g2000hse.googlegr oups.com...

我想知道每次编码时我能做些什么来改善我的代码

我觉得可以做得更好。我几个月前开始使用c#

并且感觉很顺从但有时候我需要查找内容。

也许有人可以推荐一本关于c#良好实践的好书?
I m wondering what can I do to improve my code, everytime I am coding
I feel like it could be done better. I started on c# a good months ago
and feel conformtable but sometimes I Need to look up stuff.
maybe someone can suggest a good book on good practices for c#?



改善代码的一种方法是同行评审。不时与同事一起度过几分钟,并让他看一下你的代码样本,

指出他会采取不同的做法,并解释为什么。请

提供回报优惠并查看他的代码。当你在

时,问问他为什么以他们的方式做事情的问题

每当你看到你会用不同的方式做的事情。


One way to improve your code is peer review. From time to time, spend a
few minutes with a colleague and have him look at a sample of your code,
pointing out things that he would do differently, and explaining why. Do
offer to pay back the favour and take a look at his code. While you are at
it, ask questions about why he did things the way that they are done
whenever you see something that you would have done in a different way.



hola alberto:


这将是伟大的,问题是..我自己在这里这就是为什么我是

思维书

hola alberto:

That would be great, problem is.. I m on my own here thats why i was
thinking book


代码完整,第二版
http:// www。 amazon.com/gp/product/073...SIN=0735619670


这是许多人推荐的书。

不是C#具体。

我自己没看过(还是:))。


问候,Petar Repac


Jo写道:
Code complete, second edition
http://www.amazon.com/gp/product/073...SIN=0735619670

This is a book recommended by many.
It is not C# specific.
Did not read it myself (yet :)).

Regards, Petar Repac

Jo wrote:

6月22日上午9:23,Alberto Poblacion < earthling-

quitaestoparacontes ... @ poblacion.orgwrote:
On Jun 22, 9:23 am, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:

>" Jo" < jodiep ... @ gmail.com写信息

新闻:11 ********************** @ k79g2000hse.googleg roups .com ...
>"Jo" <jodiep...@gmail.comwrote in message

news:11**********************@k79g2000hse.googleg roups.com...

>>我想知道如何改进我的代码,每次我编码
我觉得它可以做得更好。几个月前我开始使用c#
并且感觉很顺从,但有时我需要查找内容。
也许有人可以推荐一本关于c#良好实践的好书?
>>I m wondering what can I do to improve my code, everytime I am coding
I feel like it could be done better. I started on c# a good months ago
and feel conformtable but sometimes I Need to look up stuff.
maybe someone can suggest a good book on good practices for c#?


改进代码的一种方法是同行评审。不时与同事共度几分钟,让他看一下你的代码样本,指出他会采取不同的做法,并解释原因。提供回报的好处,并看看他的代码。当你在它的时候,问问他为什么以他们的方式做事的问题
每当你看到你会用不同的方式做的事情。

One way to improve your code is peer review. From time to time, spend a
few minutes with a colleague and have him look at a sample of your code,
pointing out things that he would do differently, and explaining why. Do
offer to pay back the favour and take a look at his code. While you are at
it, ask questions about why he did things the way that they are done
whenever you see something that you would have done in a different way.



hola alberto:


这将是伟大的,问题是..我自己在这里这就是为什么我是

思维书


hola alberto:

That would be great, problem is.. I m on my own here thats why i was
thinking book


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

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